|
|
Space Junk! Cleaning up the universe ...
File Details
| Downloads: |
1203 |
File Size: |
2.7MB |
| Posted By: |
NeilWinton |
Views: |
487 |
| Date Added: |
Tue, Nov 21 2006 |
|
This is a game of the "shoot 'em up" genre in which you attempt to destroy as much of the incoming (bizarre) space debris as possible. I wrote it in an attempt to understand and learn the "Phrogram way" of doing things.
The attached file is a Zip archive containing an installation package (created using InnoSetup). The source for the program is included, and you'll find it in the installation directory. It's about 1200 lines (including comments --- about 900 without). It has examples of how I tackled background scrolling, dynamically created objects (not relying on fixed-length arrays), extension via an external configuration file (you can add new levels without recompiling), optimizing movement for a large number of sprites (avoiding expensive maths calls) and probably some more stuff that you might find useful (if only to say, "don't do it like that!"). Have fun. And if you create any more levels, please let me know. Neil
|
|
|