kts
|
c1397f62fc
|
Fixed addTablePair bug wherein a new TablePair would overwrite the old rather than add itself to the end of the TablePair linked list. Also moved timer.c/.h from engine/sdl/ to engine/. If compiling on Windows, getPTime and doNanoSleep still require SDL.
|
2014-03-13 16:13:35 -07:00 |
kts
|
0842a2252e
|
Updated xcode project to compile the engine. tile_edtior and old engine probably will not compile in xcode at the moment, but this will be remedied later. Need to make modules directory definable in some way.
|
2014-03-13 04:10:59 -07:00 |
kts
|
b33b2a534c
|
Added some (pretty bad) module loading code. At the moment modules/module_name/CONF is loaded (if not, it bails) into g_module_conf and the list of sprites and default scale is acquired. From this, g_module_spritesheets is malloced for (spritesheet count) * sizeof(struct Spritesheet*) and Spritesheets are created and loaded into their respective positions. NOTE: Spritesheets should be set up by the renderer in part - probably via function pointer, similar to Elements. After these are loaded, ../modules/module_name/module_name.tsd is attempted to be loaded as well. Not much error checking done yet, so eggshells abound. Module CONF error checking will probably be handled by some function when we first generate the list of modules in modules/ dir. ALSO, Spritesheet loading does not check sprites/CONF for width, height and columns - this will be fixed on next commit.
|
2014-03-12 03:46:46 -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
|
f9f65cd376
|
Added the linked list struct, LList, along with two functions for initializing and freeing a single LList. Also added the fio.c/.h files that will contain all functions pertaining to more complicated file or directory access. At the moment it provides two functions: dirToLList, which populates a linked list with the contents of the directory (as explained in the source), and fileExists, a simple function that checks if the file exists.
|
2014-03-03 22:48:00 -08:00 |
kts
|
452bdf4a1d
|
Cleaned up code in data.c and organized it. Current and future code will be formatted in adherence to the current draft of KCS. Also added datatype-specific writing and reading functions for TablePair values. This reduces the chance of unexpected behaviors when one datatype is interpreted as another.
|
2014-03-03 12:11:19 -08:00 |
kts
|
bbcd6cd0aa
|
More stuff added - how nondescript. In particular, data.c/.h now includes a function for loading in a .tsc, or timesynk configuration file, into a Table. This adheres to the information regarding the timesynk Configuration Syntax on the wiki. This feature has been implemented in the engine, as video width, height, and other similar options are loaded from the settings.tsc file relative to the engine. Also added a modules directory with a basic skeleton for the Xibalba module.
|
2014-03-02 22:10:49 -08:00 |
kts
|
478090d7c4
|
Began work on complete client rewrite within the engine/ subdirectory. This new client is written with game states in mind (i.e., main menu, net lobby, game) and a more expandable structure for multiple interfaces. Old code in the main directory will be removed entirely or reintegrated with the new engine. Majority of the code related to Tile(s) will be removed, as their properties are now dynamically loaded from TSD files (as generated by the tile_editor). Tiles will also have a local x and y coordinate for positioning within their currently occupied tile (or something very similar) - this will allow for smooth movement and more precise collision detection (according to quarters of tiles). Much more to come\!
|
2014-02-14 06:46:11 -08:00 |