Commit Graph

14 Commits (vashram)

Author SHA1 Message Date
kts b45862f351 Windows PTime now uses native (non-SDL) millisecond precision for acquiring and delaying time. 2014-04-03 19:54:29 -07:00
kts e3941fa552 Updated devcpp project. Engine runs fine on win64. 2014-03-13 16:29:13 -07:00
kts 1ebb045fef Fixed the freezing issue on Windows - apparently it does not handle type conversions as fluidly as *nix. Changed SDL_GetTicks in getPTime to be assigned to int64_t rather than int. I suspect bugs still exist, but this will likely become a non-issue once a high precision timer(or as close as we can get) is implemented for Windows. Also it is a mystery why fps is capped to 60 - perhaps some Windows-specific OpenGL voodoo. 2014-03-03 13:14:23 -08:00
kts 13df61167d Added dev-cpp project for the engine. It kind of works. For some reason, as soon as the fps goes over 60, the engine freezes. I've tried adding SDL_Delay(s), removing most of the engine, as well as tweaking both renderers, but the outcome is the same. No clue as to why it would stop responding after a couple seconds, but work fine during those initial moments. 2014-03-02 23:28:49 -08:00
kts 49ce932ece data.c/.h added to devcpp project. Tile editor runs fine on win32/64. 2014-01-21 00:15:02 -08:00
kts 8570a9cca5 devcpp project files now updated to compile with parser types and functions. Also added the tile editor project, which produces a working win32/64 tile editor. 2014-01-09 21:54:53 -08:00
kts 4e6f983db8 win32/64 uncovered out-of-bounds reading/writing for getpixel/putpixel in interface/sdl.c, so both functions now check if x/y is greater than or equal to 0 and less than or equal to the surface's width/height. 2013-11-17 16:37:10 -08:00
kts 2776c9a91c Updated devcpp projects to use inventory.c and inventory.h - works ok. 2013-11-16 16:22:43 -08:00
kts 68beec3d2b sockets now work on windows, also discovered that echo is completely broken between timesynk instances running on multiple systems - telnet works fine still tho. Will have to recode netcode to see what's wrong. Also added sendall function which should guarantee the send()ing of a buffer (no waiting). 2013-11-07 01:11:49 -08:00
kts df73d846d8 Both SDL and curses clients work on WIN32/64. The SDL client is fully working, as is expected, but the gameLoop timer/signal system does not work. The code is in place via preprocessor conditions but it would require a fake window to be created so the messaging system can be used. 2013-11-04 11:59:49 -08:00
kts 1f641bb92e Due to various errors on windows, along with much rage, it was decided that it is far more sensible for consoleGetCommand to simply return command[0] as the command string and command[1] as the remainder, leaving the task of distinguishing one argument from another to the function that consoleProcessCommand passes it to. This is, of course, up for remodeling in the future (possibly by using a variable amount of arguments such as in printf), but for now it'll do. Also added C preprocessor conditions for strndup to allow on Win*. 2013-10-23 21:05:29 -07:00
kts 675e6862c5 Modified the devcpp projects to incorporate the many changes that have occurred since the last devcpp update. Also had to initialize the next and prev properties of Tiles created by newTile, as the generated executable segfaulted due to non-initialized pointers. 2013-10-19 23:28:31 -07:00
kts 3d1fb1de41 Added game.c, game.h, player.c, and player.h to the devcpp projects and successfully tested both the SDL and curses clients on Windows. 2013-09-19 23:13:11 -07:00
kts 82e63acdc0 Added the devcpp/ subdirectory, containing two Dev-C++ projects corresponding to the SDL and PDCurses clients. The PDCurses project assumes curses.h and pdcurses.lib to be in "../../PDCurses/" and the SDL project assumes SDL's lib/ and include/ to be in "../../SDL-1.2.15/". Once either executables are compiled, PDCurses.dll and/or SDL.dll must be copied into the same directory as the corresponding executable. 2013-09-18 02:11:19 -07:00