-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDataType.gd
More file actions
73 lines (50 loc) · 1.54 KB
/
DataType.gd
File metadata and controls
73 lines (50 loc) · 1.54 KB
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
68
69
70
extends Node
##########
# String #
##########
# declare a string value using double quotes
var string = "Hello World";
# You can use numbers and letters inside a double quotation
var numberString = "I have 0 cats"
# you can also use Symbols such as #,$,@, etc.
var stringSymbols = "@#$%!"
# If your string variable needs to use double quotations,
# use a backward slash followed by the double quoatation symol "
var useDoubleQuotes = " \"this is a double quote\" "
# If you need to create a new line use '\n' in the string
var newLineString = "First Line \nSecond Line"
# You can also make multi lines with triple (double) quotation marks '"""'
var multiLineString = """
This is a multiLine
No need to use '/n' to create a new line
"""
# You can also use triple (double) quotations to write out multi line comments
# Keep in mind that multi line comments are rendered as string by the compiler
"""
This is a multiline comment
This is a multiline comment
"""
############
# Integers #
############
# declare an integer using whole numbers, make sure you aren't using decimal points
var integer = 100;
##########
# Floats #
##########
# declare a float, make sure you use a decimal point
var floatValue = 10.99;
##########
# Floats #
##########
# declare a boolean by typing true or false
var trueBoolean = true;
var falseboolean = false;
########
# Null #
########
# declare a null value type by typing 'null'
var nullValue = null;
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.