space-vroom

A SkyRoads clone with only one boring "level" written in Godot Engine version 3.
git clone https://kaka.farm/~git/spacevroom
Log | Files | Refs | LICENSE

Constants.gd (1309B)


      1 extends Node
      2 
      3 
      4 # Space Vroom, an unoriginal space racer.
      5 # Copyright (C) 2021  Yuval Langer
      6 #
      7 # This program is free software: you can redistribute it and/or modify
      8 # it under the terms of the GNU Affero General Public License as
      9 # published by the Free Software Foundation, either version 3 of the
     10 # License, or (at your option) any later version.
     11 #
     12 # This program is distributed in the hope that it will be useful,
     13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 # GNU Affero General Public License for more details.
     16 #
     17 # You should have received a copy of the GNU Affero General Public License
     18 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
     19 
     20 
     21 # Used in collision detecting RayCasts.
     22 const on_floor_maximum_distance := 0.1
     23 
     24 
     25 # width, height, depth
     26 const road_box_dimensions: Vector3 = Vector3(0.35, 0.5, 0.95)
     27 
     28 
     29 const fall_acceleration: float = 50.0
     30 const on_the_floor_fall_acceleration: float = 1.0
     31 const jump_impulse: float = 8.0
     32 const maximum_forward_speed: float = 20.0
     33 const number_of_speed_bars: int = 34
     34 const forward_speed_increment: float = maximum_forward_speed / number_of_speed_bars
     35 const side_speed: float = 1.0
     36 
     37 
     38 const number_of_oxygen_bars: int = 10
     39 const number_of_fuel_bars: int = 10