Engine coding and head hurts
December 7th, 2006 by octobinzAs an official insomniac, i work on the engine during night (and sometimes during lunch time).
Edemptia net protocol is almost done. Compressed and optimized structures allow client to know where other players are and wich GFX to load/unload (this part is quite well optimized btw). Every X msec, engine ask server some king of sprite list containing position, animation index in internal animation system, orientation&direction according to current position in current map (all players are registered when entering a map and unregistered when leaving). After decompressing and decoding this info (they are pushed in some kind of stack to trace code) here are the engine steps :
- Check actully loaded GFX and compare to needed ones.
- Unload and load GFX according to previous animations and what server told me (”Who can i see ?”).
- Update sprites positions according to positions stack data and prefetch next data according to prediction.
- Flush data
- Empty stack
Ths is the “big idea” of the graphic code for sprites moves.
Now, this doesn’t works. I still have many things to code and to monitor/test. But this project is going to raise, slowly but it will.
BTW, i still looking for a main artist. The one who sent me pictures draws like a 5 years old.