Sprite Demo from Valter Buccina

Sprite Demo

Valter Buccina made a demo application using sprites in Castle Game Engine.

The demo is available on https://github.com/valterb/sprite-demo-castle-engine.

Citing from the README:

Demo is divided into two parts:

  1. Goniometer
  2. Road demo

The first shows with extreme precision the direction of the sprite in degrees. Using mouse click coordinates and Player position I apply the arctangent formula and I convert the value obtained in degrees. This way I get the requested direction.

The second one is a demo with a road background where you can move the sprite that is sized according to the distance from the observation point. One click to walk, double click to run. Run animation is divided into three actions, short initial walk, run, short final walk but it is not perfect.

See the forum post for details. (This post was on an old forum — please use new forum for comments.)

Thank you!

2 Likes