Jump Thingy 1.0
Jump platform game
Loading...
Searching...
No Matches
Macros | Variables
globals.h File Reference

Go to the source code of this file.

Macros

#define WIDTH   600
 The width of the game window in pixels.
 
#define HEIGHT   900
 The height of the game window in pixels.
 
#define DEBUG   0
 Enables or disables Debug Mode.
 

Variables

float gravity
 The gravitational force applied to the player.
 
float jumpSpd
 The vertical speed of the player when jumping.
 
float moveSpd
 The horizontal movement speed of the player.
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG   0

Enables or disables Debug Mode.

When set to 1, Debug Mode is enabled, which:

  • Displays the positions of all platforms on the screen.
  • Allows resetting the player's position with the C key without restarting the game.

Set to 0 to disable Debug Mode.

Definition at line 16 of file globals.h.

◆ HEIGHT

#define HEIGHT   900

The height of the game window in pixels.

Definition at line 5 of file globals.h.

◆ WIDTH

#define WIDTH   600

The width of the game window in pixels.

Definition at line 4 of file globals.h.

Variable Documentation

◆ gravity

float gravity
extern

The gravitational force applied to the player.

Definition at line 3 of file globals.c.

◆ jumpSpd

float jumpSpd
extern

The vertical speed of the player when jumping.

Definition at line 4 of file globals.c.

◆ moveSpd

float moveSpd
extern

The horizontal movement speed of the player.

Definition at line 5 of file globals.c.