After the UI, I'm improving (that's a huge improvement, you'll see :)) the units... some of you told me the magician walking without moving his feet is not a proof of high technology... (who is impressed by someone walking with his feet ??).
So here is the attack of the sheep clones (I don't know how to draw but I can make them jump...) There are other models too and will be many more soon (It's funny how many object you can make jump :))
After some weeks without working at all on my projects (got a job, and I'm now preparing my travel to Australia). I decided to fix my lost algorithms.
The one you can see is my plant generator (an simple alpha version... and yes all is alpha in this game but i'm gonna fix that too).
The conclusion for today is : Don't feed your plant too much or they gonna eat your screen.
Ps : my Liquid Crystal UI is getting better. I'll soon show a preview of it.
I wanted to try if a 3D mode would be cool for the game. I played during 2 days with Irrlicht and decided to implement it for the game (as another View, which allows me to use the 2D or 3D view anytime I want). Irrlicht is maybe not the best (I don't like how they code and there are many mistakes, like the returning a full object instead of a const ref some times... and missing optimization like using a list instead of a vector is sometime useless). I'll move to another engine if I need it.
The Alpha Version is now released for private testing !!
No real improvements but it will allow some of you to test it.
The game engine is working well (I hope) without crashes and memory leaks. The sound engine is done (missings sounds :p). About the graphic Engine, it is not perfect but I'll change it to a better one (not made by me this one) soon. This is the main reason why I'm releasing this alpha version.
The multi-player mode is disabled for this version, but... I added two maps : Jungle & Long-road
My max level on Big-One is 15 (I tried only few times). I'm waiting for yours !!
Now I have some music/sounds to add to the game (see the next post), I need to implement the Sound Engine. After looking for a library on Google, my final choice was Fmod. It's quite easy to use and seems to be fast. I'll not show you how to use it, there are some tutorials easy to follow on Internet.
However, this is a big step in the game development. The sounds and the music really increases the game sensations.
I'm always looking for performances (too much I guess) and everybody knows that a malloc/free is expensive. That's why I was using a Object (can be Unit, Towers, Ammos....) array as a fixed memory and a vector of Object pointer as a list pointing to some of the array objects. The only problem was about the constructor. I didn't find a way to call it without "new"
Implementing Multi-player was an easy task. I only changed the "Player* player" to a "vector players".
Actually the game is in cooperative mode. But it can be easily changed to another multi-player mode. The money is individual but the rewards are shared whoever killed the unit.
The number of players in-game is not limited, which is a good news for my mmorpg version (will come in a long long time I guess)
The font is an important part of the graphics. It has to be clear, easily readable and small enough.
The previous version, as described in one of my first post was using a bitmap pre-generated and a metric file.
I still beleive it's a good idea, except for the pre-generated part (how a waste of time it is !). So I looked at some OpenGL good GUI and found good articles about Freetype2. For those who don't know yet, it's a library generating font bitmap from true type fonts. (The article on Nehe Tutorials is a good way to start to use it).
The new shader example is about how to simulate a shock-wave over a texture.
It is really useful for my explosion. The result is pretty cool. It looks like a transparent shock-wave, and I think I could use it for water wave. If you can make a better version of it, I'll appreciate to get it :)
I could have used 2 textures (the real texture + a normal-like map) to implement it. However I'm not sure if the multi-texture is part of all the almost recent devices, I use a distance algorithm.
Video from YouTube to show the effect of the shockwaves :
Today, You have the choice between the "start", an excellent button to start the party. Followed by the resume one, which is for those who likes to go ahead, a nice choice. The Option and About choice of today are missing, but will be back soon. And if don't like our menu you can just take the Exit one.
After spending many hours to get a good button design on Photoshop I finally got a pretty good result. This is the main menu.