aboutsummaryrefslogtreecommitdiff
path: root/scripts/globals.lua
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2012-04-16 09:39:52 -0500
committerBen Beltran <ben@nsovocal.com>2012-04-16 09:39:52 -0500
commit10a0e290ac07524dc129cc2b227b0f9e95df0f8e (patch)
treeed518c45c45d96e37e28640f745496fffb8e1325 /scripts/globals.lua
first commit
Diffstat (limited to 'scripts/globals.lua')
-rw-r--r--scripts/globals.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/globals.lua b/scripts/globals.lua
new file mode 100644
index 0000000..f5e2c7d
--- /dev/null
+++ b/scripts/globals.lua
@@ -0,0 +1,19 @@
+--the directions
+up=0
+right=1
+down=2
+left = 3
+
+--the alliances.
+enemy_neutral=0
+enemy_evil=1
+enemy_weapon=2
+enemy_superevil=3
+
+--sync configuration vars
+function this.sync(this)
+ this:set_physics(this.physics)
+ this:set_enemy(this.enemy)
+ this:set_controllable(this.controllable)
+ this:set_noclip(this.noclip)
+end \ No newline at end of file