Go to file
Pòsweg e8975e7379 DLLs
For those who don't want or don't know to grab them by themselves. (I don't know if I'm allowed to do this)
2017-06-16 18:20:24 +02:00
source C::B , menu and better organization 2017-06-16 17:24:22 +02:00
textures C::B , menu and better organization 2017-06-16 17:24:22 +02:00
.gitignore DLLs 2017-06-16 18:20:24 +02:00
Makefile .gitignore and Makefile update 2017-06-16 17:26:46 +02:00
README.md Create README.md file 2017-04-29 21:21:20 +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
libjpeg-9.dll DLLs 2017-06-16 18:20:24 +02:00
libpng16-16.dll DLLs 2017-06-16 18:20:24 +02:00
libtiff-5.dll DLLs 2017-06-16 18:20:24 +02:00
libwebp-4.dll DLLs 2017-06-16 18:20:24 +02:00
platform-test.exe .gitignore and Makefile update 2017-06-16 17:26:46 +02:00
zlib1.dll DLLs 2017-06-16 18:20:24 +02:00

README.md

platform-test

Just a platform prototype that I made to get my hands dirty with SDL2 for the first time.

All that I have implemented is a smooth motion with keyboard input and "physics" of jumping and colliding with other objects. In this project I wanted to be as responsible as possible with classes and functions, but it's my first multifile project so it's all messy I guess.

Controls

  • W S D To move around
  • SPACE To jump
  • LSHIFT To run

Compiling

If you want to compile it make sure that you have SDL2 installed and run make and it will compile. I don't know how to compile programs in Linux with cross-compatibility with external libraries so it works fine in Linux but in Windows it's a little harder to do.

References

All the references that I have used are the LazyFoo' "SDL2 tutorials", "Maths for game designers" and the trigonometry series from Khan Academy for the collision logic.