/agdg/ - Amateur Game Development General

Just Like Make Game

SAVE THIS FILE: Anon.cafe Fallback File v1.1 (updated 2021-12-13)

Board Owners: Hourly thread limits and Early 404 help protect your boards against erasure under slide attacks. Enable them today.

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

Max message length: 20000

Drag files to upload or
click here to select them

Maximum 5 files / Maximum size: 20.00 MB

Board Rules
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

no cookies?