This game is a simple 2D shooter where an astronaut man has to defend himself against red and green slimes. He can collect powerups along the way that change the color of his projectiles, increase/decrease his speed, and give him extra lives.
Click here for a 1 minute demo video.
As the entire game file is very large, I chose to only include the game scripts and the prefabs in this repository. All scripts are written in C#.
- Player - All player movement, shooting, and animation is controlled by the Player Script
- Enemies - All enemy movement and animation is controlled by the Enemy Script
- Destruction - Ensuring an object is not deleted before an associated animation is finished is done by the Destruction Script
- Laser - Projectile behavior is controlled by the Laser Script
- Powerups - Powerups behavior is controlled by the Power Up Script
- Spawning - Powerup and Enemy spawning is controlled by the Spawn Manager Script
- UI - UI updates are controlled through the UI Script
- Game - Game starting, pausing, and spawn starting/stopping is controlled by the Game Manager Script
- Movement
- Walking - moving left and right are controlled through A and D or the Arrow keys
- Short Teleport - Q and E can be used to teleport a short distance
- Firing - shoot a laser bolt with space or an arrow with the J key
- Pause - pause and unpause are controlled through the P key
- Play - The space bar will start the game from the beggining or after death
Power ups will spawn throughout gameplay that have different effects
There are various projectiles in the game.
Projectile | Description |
---|---|
Base laser bolt | |
A green laser bolt activated through a power up | |
A purple laser bolt activated through a power up | |
An arrow projectile shot by using the J key |
The current player health is located in the lower right hand part of the screen and changes based upon the current number of lives.
Image | Lives Remaining |
---|---|
The player has all lives remaining | |
2 lives remaining | |
1 life remaining | |
No lives remaining |
There are two kinds of enemy slimes in the game.
Enemy | Description |
---|---|
A larger red slime that moves at a slower pace | |
A smaller green slime that moves at 1.5 times the speed of the red slime |
- Slime Enemy - Pixel Art by War
- Warped Shooting Fx by Ansimuz
- Free Cartoon Parallax Background by CPasteGame
- 2D Character - Astronaut by Copyspright