Cubenemy : Android game
Moderator: Moderators
Cubenemy : Android game
I was going to start a mini dev log of my progress on my first ZGE game on here. It is actually my first 3d game , but as I have created several 2d games previously and am experienced in 3d, it is not too much of a stretch ZGE is making it a nice easy transition...
The game is called "Cubenemy" and is being developed specifically for Android small screen sizes with very simple controls as I hate onscreen buttons! The concept is very simple, with the aim to avoid oncoming obstacles/enemies and pickup ammo to destroy them when possible. This negates the need for having a separate fire button as the ammo only lasts a short burst before having to pick up another.
I think of it somewhere between the simple one button avoidance phone games of today mixed with the classic 80's scrolling shooters. A mashup of Galaga and Jetpack Joyride if you will
Free Android version at the Google PlayStore: https://play.google.com/store/apps/deta ... d.cubenemy
Windows version download at my site:
http://fracteed.com/cubenemy.html
The game is called "Cubenemy" and is being developed specifically for Android small screen sizes with very simple controls as I hate onscreen buttons! The concept is very simple, with the aim to avoid oncoming obstacles/enemies and pickup ammo to destroy them when possible. This negates the need for having a separate fire button as the ammo only lasts a short burst before having to pick up another.
I think of it somewhere between the simple one button avoidance phone games of today mixed with the classic 80's scrolling shooters. A mashup of Galaga and Jetpack Joyride if you will
Free Android version at the Google PlayStore: https://play.google.com/store/apps/deta ... d.cubenemy
Windows version download at my site:
http://fracteed.com/cubenemy.html
- Attachments
-
- 2a_3.png (772.57 KiB) Viewed 30005 times
Last edited by fracteed on Sat Jun 06, 2015 8:59 am, edited 6 times in total.
Thanks Rado and Ville! I am having fun with it, just need to find more time to put into it. Loving how easy it is to export and test to Android from ZGE.
My aim is to do a cut down version freebie for the Google Play store initially. Then keep working on tons of levels for either a paid version or an ad supported one. Was thinking of trying to wrap an apk from ZGE with appwrapper for ad support. Not sure if anyone has tried that or not?
And yeah, I will post an apk/exe on here in the near future. It is still very WIP at the moment.
My aim is to do a cut down version freebie for the Google Play store initially. Then keep working on tons of levels for either a paid version or an ad supported one. Was thinking of trying to wrap an apk from ZGE with appwrapper for ad support. Not sure if anyone has tried that or not?
And yeah, I will post an apk/exe on here in the near future. It is still very WIP at the moment.
I have been very sidetracked on other projects, but just a small update on where I am up to with Cubenemy.
- I have attached a more recent screenshot of a current build. As I abandoned any notion of writing my own shaders for glows, I ended up using a very simple technique of creating glowing shapes in gimp or inkscape and using them as a texture with alpha on quad planes in ZGE. Then it is just a matter of layering up several planes and parenting them to objects. A little trickier when the object is rotating, but just a matter of creating the correct hierarchy. Since my game is 2.5d and has a fixed camera this works really well.
- Since there is no support for animated sprites, I came up with a technique that I am using for the particle streak effect around the player ship. After creating an animated loop for the particles in a 3d package, I rendered this to a horizontal sprite sheet. Then I mapped this to a square plane in ZGE and used an expression to offset the uv's each frame. There are some limitations with this technique but in general it works really well and I intend on using this for other animated sprites.
- I added 2 levels of parallax with some offset scrolling backgrounds and a 3rd level for star particles. Not using the particle system, just creating and destroying images mapped to quads. This gives much more of a feeling of depth and since the BG offset amount remains constant between levels, there is no break visible to the player even though all models are destroyed/recreated between levels .
- I have attached a more recent screenshot of a current build. As I abandoned any notion of writing my own shaders for glows, I ended up using a very simple technique of creating glowing shapes in gimp or inkscape and using them as a texture with alpha on quad planes in ZGE. Then it is just a matter of layering up several planes and parenting them to objects. A little trickier when the object is rotating, but just a matter of creating the correct hierarchy. Since my game is 2.5d and has a fixed camera this works really well.
- Since there is no support for animated sprites, I came up with a technique that I am using for the particle streak effect around the player ship. After creating an animated loop for the particles in a 3d package, I rendered this to a horizontal sprite sheet. Then I mapped this to a square plane in ZGE and used an expression to offset the uv's each frame. There are some limitations with this technique but in general it works really well and I intend on using this for other animated sprites.
- I added 2 levels of parallax with some offset scrolling backgrounds and a 3rd level for star particles. Not using the particle system, just creating and destroying images mapped to quads. This gives much more of a feeling of depth and since the BG offset amount remains constant between levels, there is no break visible to the player even though all models are destroyed/recreated between levels .
- Attachments
-
- cubenemy jawvaders1.png (807.82 KiB) Viewed 31216 times
Last edited by fracteed on Tue Aug 19, 2014 7:26 am, edited 1 time in total.
!
Thanks for the comments guys Imerion, to do the glow effects I am just using a meshbox(quad2d) with a basic feathered circle rendered from Inkscape. If you use Alpha/One mode in the material settings it will give you that very blown out effect as it is additive. Parent the quad to your geometry via the render transform group and you are good to go...very simple but effective! Of course the planes need to face the camera and you need to setup your expressions accordingly.
I have attached a png that I am using for half of my glows. It is amazing how much use you can get from one image when you scale and layer it. Tends to look like a different hue depending on which geo it is being added over.
I have attached a png that I am using for half of my glows. It is amazing how much use you can get from one image when you scale and layer it. Tends to look like a different hue depending on which geo it is being added over.
- Attachments
-
- ammo_glow_v1.png (12.7 KiB) Viewed 31143 times
Re: !
Hi fracteed,
K
Alternatively you can use the BitmapExpression component to generate such texture procedurally ( which saves a couple of bytes ), it's ZGameEditor afterall For example ..fracteed wrote:I have attached a png that I am using for half of my glows.
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<ZApplication Name="App" Caption="ZGameEditor application" CameraPosition="0 0 2">
<OnRender>
<UseMaterial Material="GlowMaterial"/>
<RenderSprite/>
</OnRender>
<Content>
<Bitmap Name="GlowBitmap" Width="3" Height="3">
<Producers>
<BitmapExpression>
<Expression>
<![CDATA[// Set color to white ( yellow hue is done using Material )
Pixel.R = 1;
Pixel.G = 1;
Pixel.B = 1;
// Calculate alpha using sine driven by radius from center
float u, v;
u = 0.5-X;
v = 0.5-Y;
Pixel.A = sin((1-sqrt(u*u+v*v)*2)*PI/2);]]>
</Expression>
</BitmapExpression>
</Producers>
</Bitmap>
<Material Name="GlowMaterial" Shading="1" Color="1 0.84 0 0.78" Light="0" Blend="2">
<Textures>
<MaterialTexture Texture="GlowBitmap" TexCoords="1"/>
</Textures>
</Material>
</Content>
</ZApplication>
It is not that I don't enjoy the procedural workflow. In my day job I love putting together procedural setups in tools like C4D, Houdini, Ice etc. It is just that when I have to do it purely in code, that I often hit a wall.
For me, the ideal workflow for proceduralism is a mix of nodal networks and bits of code to glue it together. Would love to see ZGE develop more towards the nodal side. The mesh component is a good start, but relies very heavily on the mesh expression to do all the heavy lifting. Likewise if the shading/texturing workflow went in a nodal direction, it would be much more usable. Anyway, I realise this is a one man project so I don't have unrealistic expectations!
I am forcing myself to learn more of the shader code workflow as I really need it in a 2d Gamemaker game that I have been working on for a while. Slowly but surely getting my head around it
For me, the ideal workflow for proceduralism is a mix of nodal networks and bits of code to glue it together. Would love to see ZGE develop more towards the nodal side. The mesh component is a good start, but relies very heavily on the mesh expression to do all the heavy lifting. Likewise if the shading/texturing workflow went in a nodal direction, it would be much more usable. Anyway, I realise this is a one man project so I don't have unrealistic expectations!
I am forcing myself to learn more of the shader code workflow as I really need it in a 2d Gamemaker game that I have been working on for a while. Slowly but surely getting my head around it