Episode 14 - Reconstructing Cave Story: Refining Player Movement

1,402 views · Published 3 January 2014 · 21:09 · Indexed 30 September 2026

Channel: Christopher Hebert · 2014 · Education

Watch on YouTube

In this episode, we introduce a few refinements to the player's movement.

As always: thanks for watching!

New constants from: https://docs.google.com/document/d/1wr7RKzmb0UC2abh_2HfyIMN8N-JDGwBFaNHUJmpKxRs/edit?hl=en

Translated Constants:
// Walk Motion
const float kWalkingAcceleration = 0.00083007812; // (pixels / ms) / ms
const float kMaxSpeedX = 0.15859375; // pixels / ms
const float kFriction = 0.00049804687; // (pixels / ms) / ms

// Fall Motion
const float kGravity = 0.00078125; // (pixels / ms) / ms
const float kMaxSpeedY = 0.2998046875; // pixels / ms

// Jump Motion
const float kJumpSpeed = 0.25f; // pixels / ms
const float kAirAcceleration = 0.0003125f; // pixels / ms / ms
const float kJumpGravity = 0.0003125f; // pixels / ms / ms

=================================================
Playlist:
https://www.youtube.com/playlist?list=PL006xsVEsbKjSKBmLu1clo85yLrwjY67X

Content (.bmp files and such):
https://github.com/chebert/cavestory-content/archive/master.zip

Cave Story (freeware version) download page: http://www.cavestory.org/downloads_game.php

More from this channel