Blue Rectangle - 2D platformer using Dunai and Bearriver #379
AntanasKal
started this conversation in
Show and tell
Replies: 2 comments 2 replies
-
OMG this is awesome!!! 🎉🎉🎉 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@AntanasKal would it be cool if I added this video to the announcement of the next version of dunai and bearriver? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have created a demo platformer Blue Rectangle using Dunai and Bearriver libraries and SDL2 bindings. The game implements continuous collision detection as outlined in the Functional Reactive Programming, Refactored paper.
In the paper a 1D bouncing ball example is given, but I was interested to see whether this technique can be applied to slightly more complicated examples (I was not able to find such examples yet). I also wanted to implement simple 2D platformer physics in a novel way. In the game some significant simplifications are still applied, such as: accelerations are constant (so the object trajectories are piecewise parabolas), no rotations are allowed, object shapes are rectangular. These greatly simplify physics and collision time prediction calculations. Also, I have not spent time optimizing the performance.
Hopefully that is interesting to you. Having warmed up with Dunai and Bearriver, I would be interested in contributing to the libraries :)
Antanas
Beta Was this translation helpful? Give feedback.
All reactions