/agdg/ - Amateur Game Development General

Just make game

Want your event posted here? Requests accepted in this /meta/ thread.

Max message length: 5120

Drag files to upload or
click here to select them

Maximum 5 files / Maximum size: 20.00 MB

More

(used to delete files and postings)


Open file (250.23 KB 555x399 dontclick.png)
2D Platformer Physics Deveropa 06/28/2020 (Sun) 12:06:22 ID: e3ecb9 No.259
Is there anywhere I can read up on this, or a book or something? I wanted to make a 2D platformer, I made a crude framework of sorts, but there's no real physics system. I have no idea how to program projectiles, jumping, running physics, etc. Currently, i just have the player rise slowly until they hit the ceiling and then fall down when you hit the space key, and if you land on top of an enemy they die. And you can jump and collect coins, that's pretty much it. I did it from scratch in c++ with an old version of Microsoft Direct Draw and WinAPI, because Direct X is way too complicated and I don't want 3D, plus some ancient tutorials written circa 2001 that I grabbed from old 8chan /pdfs/ were direct draw based anyhow.
>>259 I'd recommend you abandon Windows-specific C++ and stick to modern C++. Everyone including yourself will thank you OP. Also, Bullet is a well-wrung out and open sauce physics system in C++. Use SFML for 2D platformers + Bullet.

Report/Delete/Moderation Forms
Delete
Report

Captcha (required for reports and bans by board staff)

no cookies?