ir
This commit is contained in:
12
examples/test_arena2.sx
Normal file
12
examples/test_arena2.sx
Normal file
@@ -0,0 +1,12 @@
|
||||
#import "modules/std.sx";
|
||||
|
||||
Phys :: struct {
|
||||
x, y: f32;
|
||||
GRAVITY :f32: 9.81;
|
||||
MAX_SPEED :: 100;
|
||||
}
|
||||
|
||||
main :: () {
|
||||
print("gravity: {}\n", Phys.GRAVITY);
|
||||
print("max speed: {}\n", Phys.MAX_SPEED);
|
||||
}
|
||||
Reference in New Issue
Block a user