Table of Contents

3. Data Types

Numbers

We track positions, boundaries, and variables like velocity.

Code Runner Challenge

Demonstrating Numbers.

Lines: 1 Characters: 0
Output
Click "Run" in code control panel to see output ...

Strings

We manage paths, IDs, names, and visual keys.

Code Runner Challenge

Demonstrating Strings.

Lines: 1 Characters: 0
Output
Click "Run" in code control panel to see output ...

Booleans

We manage state toggles in the game loop.

Code Runner Challenge

Demonstrating Booleans.

Lines: 1 Characters: 0
Output
Click "Run" in code control panel to see output ...

Arrays

We store dynamically generated characters or collections.

Code Runner Challenge

Demonstrating Arrays.

Lines: 1 Characters: 0
Output
Click "Run" in code control panel to see output ...

Objects (JSON)

We format environment and sprite properties mapping keys to values.

Code Runner Challenge

Demonstrating Objects (JSON).

Lines: 1 Characters: 0
Output
Click "Run" in code control panel to see output ...