Showing results for
on catlikecoding.comPhysics
Pushing a Sphere Around
- Control the velocity of a rigidbody sphere.
- Support vertical movement via jumping.
- Detect the ground and its angle.
Pushing a Sphere Around
- Control the velocity of a rigidbody sphere.
- Support vertical movement via jumping.
- Detect the ground and its angle.
...As the bottom paddle will be controlled by the player, make the velocity's Y component negative so it moves toward the player first...
...If the ray hits a tile, it is touched by the player, which indicates that it must be changed. Game
will handle player input...
will handle player input...
...To ensure that this is not possible for the player, you can adjust the camera to use 68615BFF as its solid background color, instead...
...This is the ninth installment of a tutorial series about controlling the movement of a character. It makes it possible to float in and...
Runner, a minimal side-scroller
- generate a layered background;
- reuse objects;
- use simple physics;
- detect input to make the player jump;
- generate a layered background;
- reuse objects;
- use simple physics;
- detect input to make the player jump;
...Movement
Our skyline is now functional enough to implement gameplay, which means giving the player control over the runner and having it navigate the...
Our skyline is now functional enough to implement gameplay, which means giving the player control over the runner and having it navigate the...
...While D might seem like a reasonable default, it's part of the common WASD key configuration for movement. Let's use X instead...
...Believability is about the player of a game accepting that a map is possible and real. This doesn't mean that maps have to...
...public enum ShapeBehaviorType { Movement, Rotation, Oscillation, Satellite, Growing }
Add a corresponding case to the GetInstance
method that returns a GrowingShapeBehavior
.
case ShapeBehaviorType.Satellite: return...
Add a corresponding case to the GetInstance
method that returns a GrowingShapeBehavior
.
case ShapeBehaviorType.Satellite: return...