Saturday, February 28, 2015

Moving Objects and Sprite Manager - Part 10

This is part 10 of the series. You are suggested to read the whole series from the beginning. You may find the whole series in the Featured page.


The Game of Space Invader

For a brief explanation of the source code, please visit Teach Yourself Java Programming in 21 Games

Attribution

"Space Ship Shooter Pixel Art Assets" by ansimuz / CC0
You may download the file space_shooter_pack.zip at opengameart.org.
Alternatively, you may download an unmodified version of the zip file here.

Compile and Run

You will need Scroller.java, Sprite.java, ShipSprite.java, EnemySprite.java, FireboltSprite.java, ExplosionSprite.java, LaserSprite.java and space_shooter_pack.zip Place everything in the same folder and type:
javac *.java
java Scroller


Scroller.java



EnemySprite.java



FireboltSprite.java



ExplosionSprite.java

LaserSprite.java



ShipSprite.java



Sprite.java

No comments:

Post a Comment