aboutsummaryrefslogtreecommitdiffstats
path: root/src/shooterScreen.h
blob: 7c69a54e8bd974ebf70bad639c9931930edbb993 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "gameCommon.h"

#ifndef SHOOTER_SCREEN_H
#define SHOOTER_SCREEN_H

#define PLAYER_HEIGHT 2.0
#define MOUSE_SPEED 0.01
#define PLAYER_SPEED 10.0
#define PLAYER_JUMP_SPEED 15.0
#define PLAYER_FALL_SPEED 18.0
#define PLAYER_JUMP_HEIGHT 8.0

typedef struct ShooterPlayer {
    Camera3D camera;

    Vector3 position;
    Vector3 direction;
    Vector3 velocity;

    Vector2 cameraAngle;

    int jumpStage;
} ShooterPlayer;

typedef struct ShooterScreen {
    ShooterPlayer player;
} ShooterScreen;

void initShooterScreeen(ShooterScreen* shooterScreen, Game* game);
void updateShooterScreen(ShooterScreen* shooterScreen, Game* game);
void closeShooterScreen(ShooterScreen* shooterScreen);

void enterShooterScreen(Game* game);
void leaveShooterScreen(Game* game);

#endif