Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

gearnotes2000

5
Posts
1
Topics
1
Followers
A member registered Jan 07, 2015 · View creator page →

Creator of

Recent community posts

(1 edit)

Source code is here: https://github.com/ALaevens/Cannon-Game-SDL2
The relevant code is the collideGround function in src/scenes/CannonScene.cpp and the Kinematics component in include/Components/CKinematics.hpp.

In short, the kinematics component keeps track of a vector velocity and acceleration and uses it to update the position every frame. On collision with the ground, the ball is slowed down a bit horizontally and I flip the vertical velocity (also reduced by a little bit) to give the bounce effect. I had plans of implementing collision between the balls but never got around to it.

Thanks for taking the time to play my little project. I haven't worked on it in a long time, but might go ahead and give it a shot again. Thanks for your feedback. 

The Jumper 3D community · Created a new topic Feedback

feedback for thoughts on how this could be improved

Gah! Realized I uploaded the wrong version! Will fix asap!

Feedback wanted :P