Bonsai v0.2

256x256x256 8 - 9 FPS.. Need Optimisation already...

After hours spent on struggling with the VBO’s and GLSL I have managed to draw my first voxel based model.. the bonsai tree *fanfare*.
File loading time and processing takes about 20seconds, 8.3 FPS without culling or optimisation.. primitive brute force.. get all the points process them through marching cubes algorithm and then draw on the screen.. barbarity I know. but I had to start somehow.
Camera system allow to move around which is kind a nice..

Good night.

Deffme – 2D Terrain Protection Game

At this stage I can’t say I have done much – Uni, work, life :), but I have something:

First of all I have spent about half an hour on thinking how to write this game, mechanic and engine..

so the idea of game is pretty similar to famous “Plants vs Zombie”

2D game, we can place “tower/flower/anything that shoot” on a map, and there is horde of evil things trying to bypass our things – lets be clear at this stage this can be anything.. that’s just matter of sprites/sounds. hope that will be enough.. but if not – changing to 3D should be fairly easy anyway.

Our “things” can shoot bullet goes from left to the right and horde is going from right to the left.
every object at the map has life points.

My game is future proof and I have thought about different types of objects – eg slowing down bullets, faster enemies, more life points – upgrades etc,

lets remember about simple rule – everything on a map has to move with some speed.. and we need to make that the same for all devices – delta time 🙂

I am thinking about adding some sort of currency – sun, gold, points,tokens – whatever that will allow player to buy upgrades or new things and place it on the map

anyway.. lets see some code!
Continue reading Deffme – 2D Terrain Protection Game