kts
|
42de0d491c
|
Fixed up potential bugs and warnings revealed by clang.
|
2014-04-29 13:08:08 -07:00 |
kts
|
6b0ef6fd83
|
Lots of fun abounded with segfaulting. Fixed it eventually - was accessing a state after it had already been freed, thus wreaking havoc in the next state. Maps and Tiles implemented now. Animation is a thing as well, but still a work in progress. It will likely be managed entirely by the Tile's doThink VM function. With modules now (partially loading) and Maps/Tiles figured out, the limited virtual machine will soon take shape.
|
2014-03-13 03:25:17 -07:00 |
kts
|
d42b12885f
|
Added a load module state that provides a button list of modules found in the ../modules directory. When clicking on one, it will attempt to load ../modules/MODULE_NAME/MODULE_NAME.tsd into struct Data* g_tile_data. If it succeeds, it switches to a test state where I will be tweaking stuff like tile movement and similar. I will also add spritesheet loading in the load module state.
|
2014-03-11 23:56:23 -07:00 |
kts
|
2f596f4d50
|
Fixed PTime on OS X. OpenGL performance still terrible on OS X.
|
2014-02-26 16:36:12 -08:00 |
kts
|
ffa74bd574
|
Fixed the high precision timer and renamed it to PTime. It seems a bit silly to use nanoseconds for game tickrate, as many systems only have microsecond precision at best - but why not. Still have to add support for higher-than-millisecond precision on Windows - will likely run with microsecond, but more research is needed.
|
2014-02-26 14:22:02 -08:00 |
kts
|
9b5a1ed4b3
|
Added rendering code for sprite and fonts, made a pretty bad high precision timer - while being higher precision than SDL_GetTicks, it has a few problems that I must sort out. Also need to make it crossplatform.
|
2014-02-25 02:45:10 -08:00 |
kts
|
b3f50776e8
|
Lots of stuff added since last commit. ASCII-based Font system and Element system(similar to tile_editor)s now partially in place. State management now more flushed out, but still likely to be tweaked. Now sports two renderers - software-mode SDL and hardware-accelerated OpenGL mode. At the moment code is not in place to switch between the two renderers in-program (managed by a call to interfaceSetRenderer), but it will be added later with the appropriate freeing of surfaces and textures. A more generalized binary to .c/.h program was added to the new tools subdirectory - it takes a binary file as an argument and creates the appropriate .c/.h files. It also can handle the append flag, -a.
|
2014-02-22 00:20:44 -08:00 |