Learn › GameCube Advanced

Lesson 2 of 5 · About 6 min

Jumping in real numbers

How a floating-point console changes how physics is written, and how two decimals make Block Valley feel lighter.

Decimals in hardware

Older consoles in this app keep speeds as whole numbers with a fixed point. The GameCube has a floating-point unit, so Block Valley writes JUMP_V 8.0 and GRAV 26.0 as plain decimals, and works out each frame in fractions of a second with no rounding tricks.

A jump's height is the jump speed squared over twice the gravity: 8 times 8 over 52 is about 1.2 cells, enough for one block.

GameCube Advanced is a course for paid accounts. The rest of this lesson, and its guided session, are in the app.

Start makingDownload on the App StoreGet it on Google Play