正在加载视频...
视频加载失败
I built a simple C++ game engine: - ECS (Sprite, Velocity, Animation, Script) - Frame-based animations via JSON - Lua scripting for entity behavior - ImGui inspector + asset browser - SDL2 rendering w/ flipping - Drag-and-drop support for assets
52,366 次观看 • 1 年前 •via X (Twitter)
10 条评论

Dude, that's so cool! I've been setting up basics down for something like this. BTW I'm not entirely sure but splitting sprite sheets by using pixel dimensions would let you index them out - saw it in another post.

Yeah, that’s actually how i’m handling animations, using fixed pixel dimensions to split the sprite sheet. It works, but honestly, it gets pretty tedious without a proper editor to preview and grab coordinates.

cool 🔥

tnx 🫰

👏👏👏👏 papa tchlalek berta bro adis neger entebkalen bekrb 💪

@hojiwaq84514 awo gd new. mokralew esti🫡

awesome

🫡

Awesome, man. Do you have some advice to someone who is trying to make something like this with pure C?! 😅

Well 😁 1st thing is to avoid oop like trap, don't try to fake classes and inheritance and you will have fast engine core. and also keep it modular from the start otherwise it's gonna get ugly.


