You've Seen This in the Movies by matt9837
NOTE: I left a bug in there, you can jump once in mid-air, but only if you WALK off a platform. It IS mentioned in-game, and you DO have to use it once, at the first room, because I decided not to take it out, as
NOTE 2: In order to use the source, you're going to have to have to set up the SDL library.
http://lazyfoo.net/SDL_tutorials/lesson01/index.php
Okay, so... It's not really (at all) my best work, as I'm only starting out with C++ and the SDL library. But here it is...
You wake up in a cell all alone, a mysterious voice coming from, seemingly, nowhere.
Controls:
Left/Right - Move.
Up - Jump.
Z - Shoot.
NOTE 2: In order to use the source, you're going to have to have to set up the SDL library.
http://lazyfoo.net/SDL_tutorials/lesson01/index.php
Okay, so... It's not really (at all) my best work, as I'm only starting out with C++ and the SDL library. But here it is...
You wake up in a cell all alone, a mysterious voice coming from, seemingly, nowhere.
Controls:
Left/Right - Move.
Up - Jump.
Z - Shoot.
Ratings
| Coolness | 2% | 246 |
| Overall(Jam) | 2.00 | 70 |
| Audio(Jam) | 1.13 | 67 |
| Community | 2.88 | 161 |
| Fun(Jam) | 1.80 | 69 |
| Graphics(Jam) | 2.00 | 77 |
| Humor(Jam) | 1.30 | 65 |
| Innovation(Jam) | 1.57 | 82 |
| Theme(Jam) | 2.20 | 71 |
Need someone to test it to be 100% certain, but it should work fine on most distributions.
Some advice: don't use the standard Windows backslash '\' in your code. Windows accepts '/' in most places (including in code), but Linux is less friendly with '\'. That's really the only thing I had to change in your code to make it compile. You might also consider making it issue an error message when it fails to load resources.
Also, best practice is to have only class declarations in .h files and class/function definitions in their own .cpp files. ie. You should have Timer.h which contains "class Timer{/*Stuff*/};" and Timer.cpp which contains Timer::Timer(){/*Constructan!*/} and Timer's other functions. It's not really critical for something like an LD, just wanted to make sure you knew. If you don't understand there's a crowd of people on IRC who would be more than willing to help you if you're interested. :D
@Vede: Thanks for porting it! Should be very helpful, indeed.
And thanks for the advice, the whole .h files thing is mostly me being a complete noob here, as I only picked up SDL about a month ago.
@snesgaard: Thanks for the feedback, I really appreciate it, I'll pick this up at some point this next week and try to make it better, as, quite frankly, I rushed everything here XD