[RELEASED] Fast paced platform shooter
Posted: Sat Jan 24, 2015 9:25 am
You may have guessed after playing Crabator and UFO Race, I like fast paced action games
I started to work on my own object oriented game engine after reading this post, it works smoothly and doesn't use much RAM with 16 enemies and 16 bullets flying all around the screen, with 12 different weapons so far (rifle, pistol, grenade, RPG, mines, laser, etc.)
Find the final game here : Super Crate Buino.
Update, new graphics and more
So far the game is strongly inspired from Super Crate Box, but I will also take elements from Super Meat Boy and Farg later (I'm not a great game designer so I only mix existing games together haha)
I'm looking for an artist to help me with the sprites and animations, if any of you is interested please tell me
A few words about the engine :
First, I use only integers instead of floats, It saves a lot of RAM and makes the game much faster. I use a scale of 8 between the ingame distances and the screen distance to manage subpixel accuracy.
I have a base class named Box which contains the variables int x, y, vx, vy and that's all. All the other properties like width, height, gravity, friction, bouncing and all are gotten through virtual getter functions which can be overridden by the subclasses (Player, Enemy, Bullet).
The class Bullet, for example, has a variable byte subtype, which is used in the getter functions for the bullets to have different behavior depending on their type (1 for pistol, 2 for rifle, 3 for shotgun, etc.).
To sum up, only integers and everything that is common to several objects of the same type is returned by getter functions so it doesn't need a variable in RAM to store it. So far so good.
I started to work on my own object oriented game engine after reading this post, it works smoothly and doesn't use much RAM with 16 enemies and 16 bullets flying all around the screen, with 12 different weapons so far (rifle, pistol, grenade, RPG, mines, laser, etc.)
Find the final game here : Super Crate Buino.
Update, new graphics and more
So far the game is strongly inspired from Super Crate Box, but I will also take elements from Super Meat Boy and Farg later (I'm not a great game designer so I only mix existing games together haha)
I'm looking for an artist to help me with the sprites and animations, if any of you is interested please tell me
A few words about the engine :
First, I use only integers instead of floats, It saves a lot of RAM and makes the game much faster. I use a scale of 8 between the ingame distances and the screen distance to manage subpixel accuracy.
I have a base class named Box which contains the variables int x, y, vx, vy and that's all. All the other properties like width, height, gravity, friction, bouncing and all are gotten through virtual getter functions which can be overridden by the subclasses (Player, Enemy, Bullet).
The class Bullet, for example, has a variable byte subtype, which is used in the getter functions for the bullets to have different behavior depending on their type (1 for pistol, 2 for rifle, 3 for shotgun, etc.).
To sum up, only integers and everything that is common to several objects of the same type is returned by getter functions so it doesn't need a variable in RAM to store it. So far so good.