Commit Graph

20 Commits

Author SHA1 Message Date
slipyx 954a4b8b51 Tile animations for world and entities. Implemented a fire timer for monsters to limit their fire rate. Preliminary sound support. 2018-08-10 23:19:28 -04:00
slipyx 985338f814 Added death for monsters and player on collision with each other as well as bullet collision. Added dead timer with explosion sprite drawing. Reverted monsters drawing with center origin. Added player lives functionality. Added hardcoded monster start for level 4. 2018-07-28 22:17:56 -04:00
slipyx cf8d944a80 Separated drawing routines to own files. Monster and bullet tiles are masked. Monster position is origin at center. Monsters dont fire if within solid tile. 2018-07-28 20:38:42 -04:00
slipyx 01617a251b Initial monster behavior implemented (moving and shooting). Updated README. 2018-07-24 02:16:37 -04:00
slipyx cdbff06856 Adjusted collisions with hazards and pickups (hazards more forgiving, pickups slightly less). Added support for falling off bottom of level and wrapping to above level. Offset drawing one tile from top. 2018-07-21 23:26:09 -04:00
slipyx 40dd8023d5 Implemented gun and jetpack functionality. Player tile frame changes depending on facing dir and jump/jetpack state. Skip drawing tile 0, instead drawing fullscreen black BG rect. 2018-07-20 01:40:51 -04:00
Slipyx e91c1f170d Majority of codebase refactor complete. 2018-07-18 02:24:38 -04:00
slipyx 352b6f481a Added P_Spawn which solely resets player's position to start of level. Added level select using number keys. Added W_ResetLevel which hard resets current level from original state. Added collision with tiles that kill, which for now simply respawns player to start of level. 2018-07-18 01:13:29 -04:00
slip 1e2e2f59ca Initial emscripten support. 2018-07-18 00:31:20 -04:00
Josh K baf1203cfe Initial state of codebase refactor. 2018-07-17 23:30:35 -04:00
Josh K 6f6a429163 Added 'res' dir from which resources are loaded. Level data loaded from util is now as a copy, so original data from EXE is preserved. Input events polled in a loop. Fixed start_level so jumping is completely reset. Z key can be used for jumping as well. Added rest of hardcoded player starts. 2018-07-17 06:43:58 -04:00
Slipyx 13ec0a5067 Trophy and level switching mechanics. Level view scrolling functionality. Jumping input detected as an event. More faithful jump timing. 2018-07-14 02:17:28 -04:00
Slipyx e4e59f4bcc Fixed jumping physics. 2018-07-13 03:24:53 -04:00
Slipyx bef9eeb447 Broken jumping. Pickups. Masked dave sprites. 2018-07-12 05:18:36 -04:00
Slipyx 69c3343160 Initial collision detection code. Collides left and right movement. 2018-07-12 00:50:40 -04:00
Slipyx 4fe16c1aae Initial dave player state code. Basic left and right movement. 2018-07-12 00:14:15 -04:00
Slipyx 7c72390767 Initial game loop implemented with fixed time step. Loads tiles and levels directly from uncompressed DAVE.EXE. Draws levels 20x10 tiles at a time with support for scrolling. Renderer is set to logical size of 320x200 with SDL automatically handling scaling and letterboxing. Makefiles work with MinGW now. 2018-07-08 01:31:03 -04:00
Josh K 952b7099fb Refactored util to be more lib-like, so its functionality can be used by the game too. This way the game can load and use the resources from the uncompressed DAVE.EXE without needing export. 2018-07-05 20:05:32 -04:00
Josh K 86354692fb
Create README.md 2018-07-05 15:46:03 -04:00
Josh K 619aa4ba82 Initial commit of Let's Make Dangerous Dave. Utility finished. Initial game code. 2018-07-05 15:24:47 -04:00