src/proto2/GameState.hh
branchno-netsession
changeset 41 ca80cd67785d
parent 35 e21cfda0edde
equal deleted inserted replaced
40:4b2867fb5c12 41:ca80cd67785d
     5 #include "Input.hh"
     5 #include "Input.hh"
     6 
     6 
     7 #include <list>
     7 #include <list>
     8 #include <stdexcept>
     8 #include <stdexcept>
     9 
     9 
    10 // in meters/kg
    10 // in cells/kg
    11 const float MAP_WIDTH = 100.0;
    11 const uint16_t MAP_WIDTH = 800;
    12 const float MAP_HEIGHT = 100.0;
    12 const uint16_t MAP_HEIGHT = 600;
    13 const float MAP_GRAVITY = 9.81;
    13 const float MAP_GRAVITY = 1200.0;
    14 const float PLAYER_MASS = 10.0;
    14 const float PLAYER_MASS = 10.0;
    15 const float PLAYER_MOVE_FORCE = 500.0;
    15 const float PLAYER_MOVE_FORCE = 5000.0;
    16 const float PLAYER_INITIAL_X = 50.0;
    16 const float PLAYER_INITIAL_X = 400.0;
    17 const float PLAYER_INITIAL_Y = 40.0;
    17 const float PLAYER_INITIAL_Y = 300.0;
    18 
    18 
    19 // forward-declare GameState
    19 // forward-declare GameState
    20 class GameState;
    20 class GameState;
    21 
    21 
    22 class Player : public PhysicsObject {
    22 class Player : public PhysicsObject {