I have done my memory matching game and posted it in a blog. I want to work on a 2d side scroller, how do I get started using c++ and OpenGL
2d side scroller
pbivens67 said:
how do I get started using c++ and OpenGL
You got started 15 years ago.
https://www.gamedev.net/forums/topic/471871-opengl-project/471871/
๐๐๐๐๐<โThe tone posse, ready for action.
@pbivens67 They're many engines out there that take away the pain of using OpenGL directly. I don't know why you want to go the route that doesn't seem to be working for you.
๐๐๐๐๐<โThe tone posse, ready for action.
Hard Way: Here is an example project on github from someone else, this should get you started: https://github.com/OmarSRehan/2D_Platformerโ
Smart Way: Grab a Library like SDL and follow the tutorial of your choice: https://www.parallelrealities.co.uk/tutorials/
โIt's a cruel and random world, but the chaos is all so beautiful.โ
โ Hiromu Arakawa
pbivens67 said:
Well I think about starting with a background sprite, where can find one?
I was googling for โripped R-Type gfxโ, and found backgrounds and sprites quickly.
Ofc. it's not legal to distribute a game made with such assets, but for personal use it's ok.
I would still advise to implement a gameplay protoype using boxes first, and only after that works, care about gfx.
Using libraries would be a good idea. SDL is just the bare minimum platform abstraction - much better than using dead Glut.
Other libs like SFML or RayLib already have functionality for sprites, tiled scrolling backgrounds and stuff.
If that's still too hard or tedious, there is Unity & co.
Try t make your life easier ; )
pbivens67 said:
how do I get started using c++ and OpenGL
Same advice as with breakout:
Player movement, projectiles, collision detection.
If you look through the entries on the page linked-to below (that being itch.io, and specifically a listing filtered for โassetsโ and โfreeโ), you may find some (potentially legal) assets:
MWAHAHAHAHAHAHA!!!
My Twitter Account: @EbornIan
pbivens67 said:
Well I think about starting with a background sprite, where can find one?
Check out the Open Game Art Website, here you find a lot of free Game Art with many of them being CC0. Sprites, backgrounds, tilesets and so on, many are free to use even in commercial applications. https://opengameart.org/
here is also a nice free tool to create sound effects as .wav file via simple interface SFXR. https://www.drpetter.se/project_sfxr.html
โIt's a cruel and random world, but the chaos is all so beautiful.โ
โ Hiromu Arakawa
@pbivens67 you should start learning Box2D tutorials: https://www.iforce2d.net/b2dtut/โโ
Especially these lessons: