I tought about my game modelisation : no interfaces, no re-usable code … it’s was a mess. So I’ve made a new modelisation with interfaces (drawable, nameable …). All previous class were easier and faster to code since there’s less duplication of code.
Moreover, the creeps are now moving following the waypoints ! It’s a linear moving (quite ugly in fact). I will try to improve it later. Towers in range will now fire at the creep. Then when a creed is killed, 25 particles will be spawned.
Posted 5 months, 3 weeks ago at 13:30. Add a comment
I’ve accpeted a internhip at White Birds Production so the game will update slower. I will try to code the weekends.
Posted 5 months, 3 weeks ago at 10:07. Add a comment
Hi!
Just a few words about the project : now you can select a tower, upgrade it \o/ (but for the moment, the update button only change color of the tower …). There isn’t any textures in my game for the moment, just squares of different colors.
Posted 6 months ago at 12:56. Add a comment
This may be the easiest part of this morning … in 2 hours, I’ve done the waypoints implementation and the picking (mouse manipulation) of the game. You can now put some towers in the game and they cannot me superposed ! (yeah it’s just some maths …)
I may have to ask some help for the visual part, I’m not good enough to draw beautiful sprites. If you want to participate please feel free to ask to. (I may ask for some experiences …)
Time to put a HUD !
Posted 6 months ago at 12:58. Add a comment
It’s been now two days that I was thinking of the game. Here’s some of my results on one problem :
“How to get the C String path of a file in the app bundle ?”
Now that I work on MacOS, I try to make a Mac User Friendly application : all the software have to be in a .app bundle.
I’ve put some textures in the Resources folder (link to the tutorial) and try to load it with SDL. I’ve search for one hour before finding the way to do it.
With bundles, you can’t say “I want this file” but you have to ask “Hey nice bundle, can you find for me the file `name’ of type `type’?”. Yes it’s not obvious.
Here’s some code if you want :
CFBundleRef mainBundle = CFBundleGetMainBundle ();
// Look for a resource in the main bundle by name and type.
CFURLRef url = CFBundleCopyResourceURL (mainBundle,
CFSTR(“file”),
CFSTR(“type”),
CFSTR(“folder to look”));
char* filename = (char*)malloc(sizeof(char) * 1024);
CFURLGetFileSystemRepresentation (url, true, (Uint8*)filename, 1024);
Posted 6 months ago at 02:06. Add a comment
Yes I told you that … but it’s hard to know what’s interesting or not !
So this is the first update of what I’m doing.
I have nothing to do (except looking for a internship … which I hasn’t found yet …). I played video games all day long, slept a lot … not so funny … So I remembered what I spent my day before being in vacations : coding. Yes, it’s not funny at all to do a strlen or another Tiger compiler … so I found a interesting a challenging subject : make my own game.
It will be developed mainly for Apple Computers (Intel for the moment, maybe PPC if I have time), then it will be ported to Linux and if players like it why not make a paid version on Windows.
The game will be a futuristic Tower defense. I have no aim and the game will be as funny as my mind can imagine it (and my hand can code it).
If you want help me or just see the app, mail me via the mail in my VCard (in the About Me section).
Stay tuned !
Posted 6 months ago at 23:47. Add a comment
Welcome to the 4th blog of mine. I will try to put as many updates as I could.
Posted 6 months, 2 weeks ago at 20:06. 1 comment