Go to file
Pòsweg fd18bb5df8 SDL2_mixer binaries 2017-07-26 16:18:24 +02:00
Licenses cleaning and better system state handling 2017-06-17 14:13:03 +02:00
assets SDL2_mixer binaries 2017-07-26 16:18:24 +02:00
source SDL2_mixer binaries 2017-07-26 16:18:24 +02:00
textures Music and textures 2017-07-26 05:01:29 +02:00
.gitignore Music and textures 2017-07-26 05:01:29 +02:00
README.md Update README.md 2017-06-16 18:15:43 +02:00
SDL2.dll DLLs 2017-06-16 18:20:24 +02:00
SDL2_image.dll DLLs 2017-06-16 18:20:24 +02:00
SDL2_mixer.dll SDL2_mixer binaries 2017-07-26 16:18:24 +02:00
SDL2_ttf.dll Bug fixed and font inclusion 2017-06-21 22:03:11 +02:00
cooper-hewitt-medium.otf Better button handling 2017-06-22 19:36:18 +02:00
libFLAC-8.dll SDL2_mixer binaries 2017-07-26 16:18:24 +02:00
libfreetype-6.dll Bug fixed and font inclusion 2017-06-21 22:03:11 +02:00
libmodplug-1.dll SDL2_mixer binaries 2017-07-26 16:18:24 +02:00
libogg-0.dll SDL2_mixer binaries 2017-07-26 16:18:24 +02:00
libpng16-16.dll DLLs 2017-06-16 18:20:24 +02:00
libvorbis-0.dll SDL2_mixer binaries 2017-07-26 16:18:24 +02:00
libvorbisfile-3.dll SDL2_mixer binaries 2017-07-26 16:18:24 +02:00
overworld.map Music and textures 2017-07-26 05:01:29 +02:00
overworld2.map Bug fixed and font inclusion 2017-06-21 22:03:11 +02:00
pangolin.ttf Bug fixed and font inclusion 2017-06-21 22:03:11 +02:00
platform-test.exe SDL2_mixer binaries 2017-07-26 16:18:24 +02:00
smpeg2.dll SDL2_mixer binaries 2017-07-26 16:18:24 +02:00
zlib1.dll DLLs 2017-06-16 18:20:24 +02:00

README.md

alt text

This is my first semi-big or not-so-small project, made to get my hands dirty with SDL2, have fun and experiment how feels to make an actual game, with its structure and stuff.

So far I have implemented a regular platformer, with its player, player physics, powerups, walls/blocks, and a menu system. It's all messy and clunky but hey, it's my first time and I'm doing what I can so have patience with it if you watch some huge stupid mistake thingy. And of course if you see one of those, tell me, correct it and make a pull request or put an issue!

Controls

In the menu:

  • UP and DOWN to navigate
  • SPACE to accept

PD: the first button is to play, the third one quits the game and the second one... does nothing.

In-game:

  • ARROWS To move around
  • SPACE To jump
  • LSHIFT To run

Compiling

The Makefile it's very outdated and SDL2's header files path differs from windows so I would recommend to compile it on Windows. If you want to compile it in Linux you have to change the include path from <SDL.h> and <SDL_image.h> to <SDL2/SDL.h> and <SDL2/SDL_Image.h>.

This project uses the SDL2 and SDL2_Image libraries. You can find those here: https://www.libsdl.org/download-2.0.php

After making sure that you have SDL2 and SDL_Image installed use your favorite IDE or compiler to compile it. Don't forget to include the C++11 (-std=c++11), SDL2 (-lSDL2main and -lSDL2) and SDL2_Image (-lSDL2_Image) flags. I found out that if you're using MinGW to compile it you have to add its flag (-lmingw32) or it will throw weird errors.

References

Lazy Foo's SDL guide: http://lazyfoo.net/tutorials/SDL/index.php

Jorge Rodrigez's YouTube series on Math for Game Developers: https://www.youtube.com/playlist?list=PLW3Zl3wyJwWOpdhYedlD-yCB7WQoHf-My

Khan Academy's algebra series: https://www.youtube.com/watch?v=kpCJyQ2usJ4&list=PL7AF1C14AF1B05894