Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is the source code for the simple side scroller game. Basically everything is like we left in the tutorial, except, I added a lots of comments and I changed some very minor things.
- The compile works like it works before -lSDL and -lSDL_ttf flag is needed.
- To run it, you need a 2000x640 background called endless.bmp (which we made earlyer the sidescrolling tutorial)
- A font called air.ttf
- An image called enemy.bmp (80x40)
- An image called player.bmp (200x50)
- An image called bullet.bmp (10x10)
- An image called blocks.bmp (which can contain any number of 50x50 tiles)
- Feel free to change, make the source code better.
- And a few last thing:
- I don't thing, that this series goes too well, I made too much mistakes and I don't explained a lot of things clearly (according to my opinion), and it took 18 tutorial to finish it. Basically this game has the same functionality than I showed you in the FINAL RESULT tutorial, but the loading other map function is not implemented (obviously you can make it with a few minor changes).
- Read the comments on the files, if you don't understand something, if it doesn't help you, feel free to comment or send a private message to me, and I try my best to help you.
- Thank you for all of my subscribers I really appreciate it, and thanks all of the kindly comments, good rates I get.
- http://www.youtube.com/user/thecplusplusguy
Advertisement
Add Comment
Please, Sign In to add comment