NewayPix / hazard-memory

An experimental SDL2 Game Engine written in C++
MIT License
0 stars 0 forks source link

Add examples/lerax-square.cpp #4

Closed ryukinix closed 4 years ago

ryukinix commented 4 years ago

I had some problems earlier with the order of game loop on Game.run main while. I tried to use that order:

 event(&e)
 update(dt)
 render()

But that doesn't go well and finished being with unstable performance by moving the rect. Try to make changes on that order to see what happens. I don't know what is happening here exactly.