-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
globals.gd
67 lines (60 loc) · 1 KB
/
globals.gd
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
extends Node
var debug = true
var checkpoint_count = 0
var car_colors = [
preload("res://assets/car_mats/black_paint.tres"),
preload("res://assets/car_mats/blue_paint.tres"),
preload("res://assets/car_mats/green_paint.tres"),
preload("res://assets/car_mats/red_paint.tres"),
preload("res://assets/car_mats/yellow_paint.tres"),
]
var car_models = [
"hatchbackSports",
"sedan",
"sedanSports",
"suv",
"taxi",
"truck",
"van",
]
var player_options = [
{
"model": 0,
"color": 1
},
{
"model": 1,
"color": 2
},
{
"model": 2,
"color": 3
},
{
"model": 3,
"color": 4
},
]
var icons = {
"x": "",
"shield": "",
"fire": "",
"3": "3",
"2": "2",
"1": "1",
"go": "",
"boost": "",
"weight": "",
"jump": "",
"ghost": "",
"gun": "",
"mine": "",
"lap1": "1-3",
"lap2": "2-3",
"lap3": "3-3"
}
func _ready():
Input.joy_connection_changed.connect(joy_connect)
func joy_connect(device_num, connected):
if connected:
print("connected: " + str(device_num))