Rampage Prototype
A downloadable game
Scene Transitions and Stage Select!
Eat people from windows or the floor!
General Chaos!
This game is a remake of the classic Rampage.
The Player
The player uses 2 state machines! One is for the body movement, which handles the walking, jumping, flying and climbing, while the other SM handles the Arm. This way the player can be flying or climbing while punching in different directions. I really liked having 2 state machines on the same object. It feels like there is a lot of potential there for emergent behaviors. I will explore this in the future.
The Buildings
The buildings follow basic OOP. The Buildings have Floors, which have Rooms. A Building has a max life based off how many rooms it has; and a damage threshold for when it should collapse. Each time a room is destroyed, a signal emitted from the Room to the Building, reducing the building's life, and when it crosses the threshold, the collapsing sequence begins. Each building has a theme to it, which determines the tileset used in its style. I only made 2 tiles sets, but it's easily expandable.
The biggest problem with the buildings arose from when they overlapped. The player can climb, but the player doesn't know if a building is behind or in front of another building, so without certain checks, the player could climb the edge of a building in the layer behind the fore-most building. So when initially spawning the buildings I assigned a depth layer to each room, then when the buildings are done spawning, each room checks to see if it's overlapping with another room, and if so, and if the overlapping room has a higher depth score, then the room will turn off all its collisions. Then when a building is destroyed, it sends a signal to the building manager to have each room check again. And then if a room is not overlapping with another room, it turns on all the collisions. This works. Is it the best solution? I doubt it!
The Enemies
The enemies are the helicopters, and the little army guys in the rooms. There is an enemy manager that handles the helicopters and the army guys.
For the helicopters, they have a few states. They start off in the background, flying into the battle, which you can see in the second and third gif. Then they enter the stage, and fly to a random spot in the screen, and then level themselves out with the player, and attack if they're close enough.
The army guys have 2 flavors: rifle, and TNT. They both start out the same way: by having the enemy manager find and empty room, and spawn an army guy. They start off 'opening the window', and then either shoot their bullet or throw their dynamite in the direction of the player. The player's arm and feet can grab or knock the army guy out the window.
Published | 1 day ago |
Status | Prototype |
Author | johnschwarz |
Genre | Action |
Tags | 2D, Arcade |
Download
Install instructions
Download and unzip
WASD move
, and enter are the buttons
Leave a comment
Log in with itch.io to leave a comment.