A simple two handed racing game I've been working on
Code can be found in SDL_2dot_game/SDL_2dot_game and a UNIX executable is in SDL_2dot_game/Build/Product either Debug or Release should work
If you want a version for Visual Studio with prebuilt windows exe files there is one in the 2Dot_VS repo
User Note: If you are using a mac keyboard dont use "J", "H", and "Space" simultaneously for keybinds, there is a weird keyboard blocking issue
Changed the main game loop arc to involve a progression through 4 different levels
- Added four new levels to the game; low level representation of them are show in the level selection screen
- Adding level progression, the main game loop now consists of progressing through 4 seperate levels. The leaderboard now displays total run time across all levels.
- Adding level selection sceen with each level show in png rep.
- Fixing several collision detection issues, Dot now rarely teleport through the level
- Dramatically improved performance, fixed a stuttuer inssue causes by VSync
- You can now quit to main menu by hitting esc while playing the game
- Cleaned up the initialization loops to make them more readable.
Older Changes
- Added a 'Reset' option to leaderboard screen
- Increase deceleration of player dots slightly to add more control
- Updated globals
- New larger map; original map still included in assets under "level_0.map" change the value of levelMapFile in globals
- Fixed dot (-)y axis collision bug that would sometimes cause the dot to get stuck in the wall
- Fixed a bug that would cause the boost function to accelerate the dot without user input 3a. Currently you can only choose "Space" of a normal key as the boost key, working on adding support for shift etc.
- Touched up the interface for added a new name to the leaderboard
- Added sound effects to mouse selection events in Settings and Menu so they didn't feel left out compared to key events 5a. Added sound effects to the growth effect as well
- Corrected a documentation issue in the SDL lib (no more documentation warnings!)
- Corrected error where y-axis velocity would not normalize correctly
- Added capability to handle different endzone sizes (they still have to be square)
- You can now generate your own maps in the repo wcole/2Dot_map_gen (see readme there)
- Added speed boost to control scheme (default key = 'Space')
- Changed dot velocity and decel values to make movement more responsive
- Added SOUND!!
- Changed timing system from countdown to countup, now every run will finish, but not everyone gets on the leaderboard!
- Some texture updates
- Red checkerboard tile now causes the dots to swell in size making navigation much more difficult
This was written using the SDL, SDL_IMG, SDL_TTF, and SDL_mixer libs and compiled using xCode for mac. The raw C++ files and headers are also given
This game is a culmination of the excellent LazyFoo Tutorials on SDL. The game is a racer where each hand controls WASD movement of a dot, with goal of getting each dot into the endzone before time expires.
There is leaderboard functionaility along with variable controls set by the user.
##Assets Information
##Fonts
- OpenSans-Regular.ttf : Obtained from https://www.fontsquirrel.com/fonts
##Audio (Royalty Free)
- Menu theme - "Sky_puzzle" from Soundimage.org
- Game theme - "Techno_caper" from soundimage.org
- Wall bounce - "pling.wav" from SoundBible.com
- Button Click - "Click" from SoundBible.com
- Victory Que - "Short_triumphal_fanfare" from SoundBible.com
- Game loss que - "Aww_sympathy" from SoundBible.com
##Textures
- All textures created in Paintbrush for mac; no expense was spared
Known Bugs: 4/2/19: There is a stuttering issue if you have USB peripherals plugged in. It is a bug in SDL caused by USB devices (any device besides mouse and keyboard). It causes a stutter every 3000ms