A game written in Java, as a homework to CSE389
Was intended to run in terminal, but Java does not support terminal related functions natively
So turn to JFrame
See design.txt
for game object design
In your terminal, run:
javac *.java
java Game
Select a level, hit ENTER
in window and start playing
Esc
or close window to stop the game (Esc
is recommended)W
orUP
to move upA
orLEFT
to move leftS
orDOWN
to move downD
orRIGHT
to move rightSpace
to shoot
Generate documentation of this project by:
javadoc -d documentation *.java
Survive for 5 rounds and you'll see a boss fight!
- Add inertia to enemies' movements, so that they move more fluently
- Enemy may learn to avoid the bullets
- Improve the shape and variety of enemies
- It's never a good idea to render on a GUI-purpose interface (not optimized for speed)
- Also not a good idea to treat it as a terminal (I render the screen using text). I'm just too lazy to learn to use internal drawing components in
java.awt
and design new enemies. - I knew that there are many more professional options (such as LWJGL) for game rendering, but I don't want to add additional dependencies to this project (supposed to be light-weight).