Advertisement

2d side scroller

Started by April 30, 2022 10:13 PM
16 comments, last by Tom Sloper 2ย years, 7ย months ago

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

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.

Advertisement

well fleabay thanks for the like

Well I think about starting with a background sprite, where can find one?

@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

Advertisement

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:

https://itch.io/game-assets/free

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:

This topic is closed to new replies.

Advertisement