- A major internal change (and surprisingly difficult to make happen), is that the user's ship, instead of being a unique, specialized (and therefore wasteful) data construct, is now identical to all of the computer controlled ships. Instead of computer-generated inputs to direction and thrust, however, the player directly manipulates the controls. But the ship itself is identical to the others. This ensures that the player's ship and the computer ships are subject to the exact same physics laws, and it also automatically makes the player ship vulnerable to pulverization by shots, asteroids and other ships, without a lot of extra code.
- An added nice side effect to the above change is that it's now trivial to change the camera view to show the viewpoint of any object in the game.
- There are now 3 different kinds of asteroids: small, medium and large size. The large and medium ones take damage when hit, and eventually crack apart into smaller asteroids.
- The asteroids "tumble" through space now instead of drifting without any rotation.
- Added more performance diagnostic text to the text bar. A "maxObj" display shows the maximum number of active objects seen during the game. This will help me to determine an optimal size for the object array.
Space Prisoner 1.4
Saturday, May 03, 2008
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2008
(31)
-
▼
May
(8)
- Upgraded text display - I use a bitmap font now in...
- Added rudimentary artificial intelligence to the e...
- As I knew would happen eventually, I've run into t...
- Items added:- Energy bar showing player energy- Le...
- Added flexibility to the arena structure; it can n...
- Finally got the movement and shot-firing direction...
- Many more additions to the basic structure this we...
- - A major internal change (and surprisingly diffic...
-
▼
May
(8)
No comments:
Post a Comment