Skip to content

Falcoch/Sonic-Physic-Prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sonic Physics Prototype

Quick Look up

A quick POC to recode the 2D Sonic physics.

A 2D Sonic Physics is composed of 360° walkable surfaces. Those surfaces are detected using a raycast to retrieve the slope and determine which physics operations are required to ensure good motion, like acceleration and deceleration, regarding the current slope angle to get momentum. Correct jump direction and air state to add a coherent jump mechanic are also supported.

Godot and the Godot C++ API are used. The physics is written in C++ and uses Godot objects to retrieve information from the scene.

Current state

Todo

  • Add layer mechanic (to allow looping)
  • Rate the current physics to add more processing for one move to avoid glitches when the player is too fast!
  • Change the sprite animation regarding ground speed
  • Add a camera regarding this guide

About

A quick POC of 2D Sonic physics, using the https://info.sonicretro.org/Sonic_Physics_Guide guide

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages