Go to file
posweg 61730209be
Powerup update
2017-05-06 18:01:20 +02:00
textures Powerup update 2017-05-06 18:01:20 +02:00
.gitignore Bug fixes 2017-05-06 09:52:25 +02:00
Makefile Bug fixes 2017-05-06 09:52:25 +02:00
README.md Create README.md file 2017-04-29 21:21:20 +02:00
block.cpp Powerup prototype and "improved" collision hadling 2017-05-05 16:19:44 +02:00
block.h Powerup prototype and "improved" collision hadling 2017-05-05 16:19:44 +02:00
camera.cpp Collision detection (much better and finished) 2017-04-30 21:23:48 +02:00
camera.h Collision detection (much better and finished) 2017-04-30 21:23:48 +02:00
dt.cpp test-1 2017-04-29 20:43:17 +02:00
dt.h Powerup prototype and "improved" collision hadling 2017-05-05 16:19:44 +02:00
entity.cpp Powerup prototype and "improved" collision hadling 2017-05-05 16:19:44 +02:00
entity.h Powerup prototype and "improved" collision hadling 2017-05-05 16:19:44 +02:00
main Powerup update 2017-05-06 18:01:20 +02:00
main.cpp Powerup update 2017-05-06 18:01:20 +02:00
player.cpp Powerup update 2017-05-06 18:01:20 +02:00
player.h Powerup update 2017-05-06 18:01:20 +02:00
powerup.cpp Powerup prototype and "improved" collision hadling 2017-05-05 16:19:44 +02:00
powerup.h Powerup prototype and "improved" collision hadling 2017-05-05 16:19:44 +02:00
texture.cpp Bug fixes 2017-05-06 09:52:25 +02:00
texture.h Bug fixes 2017-05-06 09:52:25 +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.