aboutsummaryrefslogtreecommitdiff
path: root/build/Debug/Pico-Lua-Test.app/Contents/Resources
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 /build/Debug/Pico-Lua-Test.app/Contents/Resources
first commit
Diffstat (limited to 'build/Debug/Pico-Lua-Test.app/Contents/Resources')
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/English.lproj/InfoPlist.stringsbin0 -> 470 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/basebg1.oggbin0 -> 265208 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/bgm/newpicoambient.oggbin0 -> 5298097 bytes
-rwxr-xr-xbuild/Debug/Pico-Lua-Test.app/Contents/Resources/dejavubold.ttfbin0 -> 539972 bytes
-rwxr-xr-xbuild/Debug/Pico-Lua-Test.app/Contents/Resources/fipps.ttfbin0 -> 74264 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/jump.wavbin0 -> 188464 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/jumpbg1.oggbin0 -> 85268 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/land.wavbin0 -> 188464 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/main_actor.lua89
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/map0.binbin0 -> 9600 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/map1.binbin0 -> 3600 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/map2.binbin0 -> 3600 bytes
-rwxr-xr-xbuild/Debug/Pico-Lua-Test.app/Contents/Resources/mapold.binbin0 -> 432 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/mappink.binbin0 -> 432 bytes
-rwxr-xr-xbuild/Debug/Pico-Lua-Test.app/Contents/Resources/mapweird.binbin0 -> 432 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/newpicoambient.oggbin0 -> 5298097 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/npc_jumper.lua19
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/npc_walker.lua53
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/pauseimage.pngbin0 -> 9904 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-hurt.wavbin0 -> 4794 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-jump.wavbin0 -> 22234 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-pause.wavbin0 -> 119952 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-shoot.wavbin0 -> 17154 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-step.wavbin0 -> 7750 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/picobg1.pngbin0 -> 57876 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/picolevel1.mp3bin0 -> 3513971 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/picosprite.pngbin0 -> 647 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/globals.lua19
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/main_actor.lua100
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/npc_jumper.lua20
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/npc_walker.lua46
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/shot-crawl.lua48
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/shot-wave.lua34
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/shot.lua33
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/sfx/shot.wavbin0 -> 17154 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/shot.lua35
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/shotsprite.pngbin0 -> 999 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/sprites/picosprite.pngbin0 -> 647 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/sprites/shotsprite.pngbin0 -> 999 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/sprites/walkersprite.pngbin0 -> 218 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/step.wavbin0 -> 188464 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/walkbg1.oggbin0 -> 396713 bytes
-rw-r--r--build/Debug/Pico-Lua-Test.app/Contents/Resources/walkersprite.pngbin0 -> 218 bytes
43 files changed, 496 insertions, 0 deletions
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/English.lproj/InfoPlist.strings b/build/Debug/Pico-Lua-Test.app/Contents/Resources/English.lproj/InfoPlist.strings
new file mode 100644
index 0000000..83521f5
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/English.lproj/InfoPlist.strings
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/basebg1.ogg b/build/Debug/Pico-Lua-Test.app/Contents/Resources/basebg1.ogg
new file mode 100644
index 0000000..e5b3a8c
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/basebg1.ogg
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/bgm/newpicoambient.ogg b/build/Debug/Pico-Lua-Test.app/Contents/Resources/bgm/newpicoambient.ogg
new file mode 100644
index 0000000..df6cca6
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/bgm/newpicoambient.ogg
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/dejavubold.ttf b/build/Debug/Pico-Lua-Test.app/Contents/Resources/dejavubold.ttf
new file mode 100755
index 0000000..773d633
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/dejavubold.ttf
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/fipps.ttf b/build/Debug/Pico-Lua-Test.app/Contents/Resources/fipps.ttf
new file mode 100755
index 0000000..504d742
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/fipps.ttf
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/jump.wav b/build/Debug/Pico-Lua-Test.app/Contents/Resources/jump.wav
new file mode 100644
index 0000000..b08e4ed
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/jump.wav
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/jumpbg1.ogg b/build/Debug/Pico-Lua-Test.app/Contents/Resources/jumpbg1.ogg
new file mode 100644
index 0000000..0ee04c1
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/jumpbg1.ogg
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/land.wav b/build/Debug/Pico-Lua-Test.app/Contents/Resources/land.wav
new file mode 100644
index 0000000..444e093
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/land.wav
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/main_actor.lua b/build/Debug/Pico-Lua-Test.app/Contents/Resources/main_actor.lua
new file mode 100644
index 0000000..a75556f
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/main_actor.lua
@@ -0,0 +1,89 @@
+--Configuration for the Main Actor
+--Also, this is pretty arbitrary: walksound=0 (for the audio track switches)
+
+--the directions
+up=0
+right=1
+down=2
+left = 3
+
+--Parameters
+this.actorname = "Main Character"
+this.enemy = 0
+this.controllable = 1
+this.jumpstrength = 6
+this.speed = 3
+this.shotlimit = 3
+
+print(">>> Entity Created - "..this.actorname);
+
+function this.jump(this)
+ if not this:get_jumplock()
+ and this:can_move(0,this:get_x(),this:get_y())
+ and not this:can_move(2,this:get_x(),this:get_y()) then
+ this:set_vertical_speed(this:get_vertical_speed()-this.jumpstrength)
+ end
+end
+
+function this.centermap(this)
+
+ this:set_map_sx(this:get_x() - this:get_cfg_screen_width()/2)
+ this:set_map_sy(this:get_y() - this:get_cfg_screen_height()/2)
+
+ if this:get_map_sx() < 0 then
+ this:set_map_sx(0)
+ elseif this:get_map_sx() + this:get_cfg_screen_width() >= this:get_cfg_max_map_w()*25 then
+ this:set_map_sx(this:get_cfg_max_map_w()*25 - this:get_cfg_screen_width())
+ end
+
+ if this:get_map_sy() < 0 then
+ this:set_map_sy(0)
+ elseif this:get_map_sy() + this:get_cfg_screen_height() >= this:get_cfg_max_map_h()*25 then
+ this:set_map_sy(this:get_cfg_max_map_h()*25 - this:get_cfg_screen_height())
+ end
+end
+
+function this.handleinput(this)
+ if (this:get_leftkey() > 0 and (this:get_leftkey() > this:get_rightkey() or this:get_rightkey() == 0)) then
+ this:set_ownspeed(-this.speed)
+ this:set_oldclip(1)
+ this:set_currentdirection(left)
+ end
+
+ if (this:get_rightkey() > 0 and (this:get_rightkey() > this:get_leftkey() or this:get_leftkey() == 0)) then
+ this:set_ownspeed(this.speed)
+ this:set_oldclip(2)
+ this:set_currentdirection(right)
+ end
+
+ if (this:get_rightkey() == 0 and this:get_leftkey() == 0) then
+ this:set_ownspeed(0)
+ end
+
+ if (this:get_xkey() > 0) then
+ if not this:get_jumplock() then
+ this:jump()
+ this:set_jumplock(true)
+ end
+ else
+ this:set_jumplock(false)
+ if(this:get_vertical_speed() < -1) then
+ this:set_vertical_speed(-1)
+ end
+ end
+
+ if (this:get_zkey() > 0) then
+ if not this:get_shootlock() and this:get_shotcount() < this.shotlimit then
+ this:add_bullet("./shotsprite.png","./shot.lua")
+ this:set_shootlock(true)
+ end
+ else
+ this:set_shootlock(false)
+ end
+end
+
+function this.act(this)
+ this:centermap()
+ this:handleinput()
+end
+--END \ No newline at end of file
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/map0.bin b/build/Debug/Pico-Lua-Test.app/Contents/Resources/map0.bin
new file mode 100644
index 0000000..b0d9f4b
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/map0.bin
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/map1.bin b/build/Debug/Pico-Lua-Test.app/Contents/Resources/map1.bin
new file mode 100644
index 0000000..9b18ac4
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/map1.bin
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/map2.bin b/build/Debug/Pico-Lua-Test.app/Contents/Resources/map2.bin
new file mode 100644
index 0000000..6d089e0
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/map2.bin
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/mapold.bin b/build/Debug/Pico-Lua-Test.app/Contents/Resources/mapold.bin
new file mode 100755
index 0000000..7e33f19
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/mapold.bin
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/mappink.bin b/build/Debug/Pico-Lua-Test.app/Contents/Resources/mappink.bin
new file mode 100644
index 0000000..9d875ed
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/mappink.bin
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/mapweird.bin b/build/Debug/Pico-Lua-Test.app/Contents/Resources/mapweird.bin
new file mode 100755
index 0000000..03a4104
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/mapweird.bin
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/newpicoambient.ogg b/build/Debug/Pico-Lua-Test.app/Contents/Resources/newpicoambient.ogg
new file mode 100644
index 0000000..df6cca6
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/newpicoambient.ogg
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/npc_jumper.lua b/build/Debug/Pico-Lua-Test.app/Contents/Resources/npc_jumper.lua
new file mode 100644
index 0000000..91409c4
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/npc_jumper.lua
@@ -0,0 +1,19 @@
+--Configuration for the Jumper
+this.actorname = "Enemy: Jumper"
+this.enemy = 1
+this.controllable = 0
+this.jumpstrength = 6
+
+print(">>> Entity Created - "..this.actorname);
+
+function this.jump(this)
+ if (this:get_vertical_speed() == 0 and math.random(150) == 50) then
+ this:set_vertical_speed(this:get_vertical_speed()-this.jumpstrength)
+ end
+end
+
+function this.act(this)
+ this:jump()
+end
+
+--END \ No newline at end of file
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/npc_walker.lua b/build/Debug/Pico-Lua-Test.app/Contents/Resources/npc_walker.lua
new file mode 100644
index 0000000..eb920b1
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/npc_walker.lua
@@ -0,0 +1,53 @@
+--Configuration for the Jumper
+this.actorname = "Enemy: Walker"
+
+--the directions
+up=0
+right=1
+down=2
+left = 3
+
+--parameters
+this.enemy = 1
+this.controllable = 0
+this.speed = 2
+
+print(">>> Entity Created - "..this.actorname);
+
+function this.walk(this)
+ if(this:get_currentdirection() == left) then
+ if ( this:can_move(left, this:get_x(), this:get_y()) and
+ not this:can_move(down, this:get_x()+this:get_ownspeed(), this:get_y())) then
+ if this:get_collision(left) then
+ this:set_currentdirection(right)
+ else
+ this:set_ownspeed(-this.speed)
+ end
+ this:set_oldclip(1)
+ else
+ this:set_currentdirection(right)
+ this:set_ownspeed(this.speed)
+ end
+ end
+
+ if(this:get_currentdirection() == right) then
+ if ( this:can_move(right, this:get_x(), this:get_y()) and
+ not this:can_move(down, this:get_x()+this:get_ownspeed(), this:get_y())) then
+ if this:get_collision(right) then
+ this:set_currentdirection(left)
+ else
+ this:set_ownspeed(this.speed)
+ end
+ this:set_oldclip(2)
+ else
+ this:set_currentdirection(left)
+ this:set_ownspeed(-this.speed)
+ end
+ end
+end
+
+function this.act(this)
+ this:walk()
+end
+
+--END \ No newline at end of file
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/pauseimage.png b/build/Debug/Pico-Lua-Test.app/Contents/Resources/pauseimage.png
new file mode 100644
index 0000000..5dd0db4
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/pauseimage.png
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-hurt.wav b/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-hurt.wav
new file mode 100644
index 0000000..086c001
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-hurt.wav
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-jump.wav b/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-jump.wav
new file mode 100644
index 0000000..33be9ff
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-jump.wav
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-pause.wav b/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-pause.wav
new file mode 100644
index 0000000..01e0066
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-pause.wav
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-shoot.wav b/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-shoot.wav
new file mode 100644
index 0000000..5a2facc
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-shoot.wav
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-step.wav b/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-step.wav
new file mode 100644
index 0000000..22c41a6
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/pico-step.wav
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/picobg1.png b/build/Debug/Pico-Lua-Test.app/Contents/Resources/picobg1.png
new file mode 100644
index 0000000..8380630
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/picobg1.png
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/picolevel1.mp3 b/build/Debug/Pico-Lua-Test.app/Contents/Resources/picolevel1.mp3
new file mode 100644
index 0000000..49832df
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/picolevel1.mp3
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/picosprite.png b/build/Debug/Pico-Lua-Test.app/Contents/Resources/picosprite.png
new file mode 100644
index 0000000..b656394
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/picosprite.png
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/globals.lua b/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/globals.lua
new file mode 100644
index 0000000..f5e2c7d
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/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
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/main_actor.lua b/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/main_actor.lua
new file mode 100644
index 0000000..687a193
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/main_actor.lua
@@ -0,0 +1,100 @@
+--Configuration for the Main Actor
+this.actorname = "Main Character"
+this.enemy = enemy_neutral
+this.controllable = true
+this.jumpstrength = 5.4
+this.speed = 3
+this.shotlimit = 3
+this.physics = true
+this.currentweapon = 0
+
+print(">>> Entity Created - "..this.actorname);
+
+function this.jump(this)
+ if not this:get_jumplock()
+ --and this:can_move(up,this:get_x()-this:get_ownspeed(),this:get_y()+this:get_vertical_speed())
+ and not this:can_move(down,this:get_x()-this:get_ownspeed(),this:get_y()) then
+ this:set_vertical_speed(this:get_vertical_speed()-this.jumpstrength)
+ end
+end
+
+function this.centermap(this)
+
+ this:set_map_sx(this:get_x() - this:get_cfg_screen_width()/2)
+ this:set_map_sy(this:get_y() - this:get_cfg_screen_height()/2)
+
+ if this:get_map_sx() < 0 then
+ this:set_map_sx(0)
+ elseif this:get_map_sx() + this:get_cfg_screen_width() >= this:get_cfg_max_map_w()*25 then
+ this:set_map_sx(this:get_cfg_max_map_w()*25 - this:get_cfg_screen_width())
+ end
+
+ if this:get_map_sy() < 0 then
+ this:set_map_sy(0)
+ elseif this:get_map_sy() + this:get_cfg_screen_height() >= this:get_cfg_max_map_h()*25 then
+ this:set_map_sy(this:get_cfg_max_map_h()*25 - this:get_cfg_screen_height())
+ end
+end
+
+function this.handleinput(this)
+ if (this:get_leftkey() > 0 and (this:get_leftkey() > this:get_rightkey() or this:get_rightkey() == 0)) then
+ this:set_ownspeed(-this.speed)
+ this:set_oldclip(1)
+ this:set_currentdirection(left)
+ end
+
+ if (this:get_rightkey() > 0 and (this:get_rightkey() > this:get_leftkey() or this:get_leftkey() == 0)) then
+ this:set_ownspeed(this.speed)
+ this:set_oldclip(2)
+ this:set_currentdirection(right)
+ end
+
+ if (this:get_rightkey() == 0 and this:get_leftkey() == 0) then
+ this:set_ownspeed(0)
+ end
+
+ if (this:get_xkey() > 0) then
+ if not this:get_jumplock() then
+ this:jump()
+ this:set_jumplock(true)
+ end
+ else
+ this:set_jumplock(false)
+ if(this:get_vertical_speed() < -1) then
+ this:set_vertical_speed(-1)
+ end
+ end
+
+ if (this:get_zkey() > 0) then
+ if not this:get_shootlock() and this:get_shotcount() < this.shotlimit then
+ if this.currentweapon == 0 then
+ this:add_bullet("./shotsprite.png","./scripts/shot.lua")
+ end
+ if this.currentweapon == 1 then
+ this:add_bullet("./shotsprite.png","./scripts/shot-crawl.lua")
+ end
+ if this.currentweapon == 2 then
+ this:add_bullet("./shotsprite.png","./scripts/shot-wave.lua")
+ end
+ this:set_shootlock(true)
+ end
+ else
+ this:set_shootlock(false)
+ end
+
+ if (this:get_ckey() > 0) then
+ if not this:get_switchlock() then
+ this.currentweapon = (this.currentweapon + 1) % 3
+ print ("current weapon is: "..this.currentweapon)
+ this:set_switchlock(true)
+ end
+ else
+ this:set_switchlock(false)
+ end
+end
+
+function this.act(this)
+ this:centermap()
+ this:handleinput()
+end
+--END \ No newline at end of file
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/npc_jumper.lua b/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/npc_jumper.lua
new file mode 100644
index 0000000..f58d1ff
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/npc_jumper.lua
@@ -0,0 +1,20 @@
+--Configuration for the Jumper
+this.actorname = "Enemy: Jumper"
+this.enemy = enemy_evil
+this.controllable = false
+this.jumpstrength = 6
+this.physics = true
+
+print(">>> Entity Created - "..this.actorname);
+
+function this.jump(this)
+ if (this:get_vertical_speed() == 0 and math.random(150) == 50) then
+ this:set_vertical_speed(this:get_vertical_speed()-this.jumpstrength)
+ end
+end
+
+function this.act(this)
+ this:jump()
+end
+
+--END \ No newline at end of file
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/npc_walker.lua b/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/npc_walker.lua
new file mode 100644
index 0000000..1537464
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/npc_walker.lua
@@ -0,0 +1,46 @@
+--Configuration for the Jumper
+this.actorname = "Enemy: Walker"
+this.enemy = enemy_evil
+this.controllable = false
+this.speed = 2
+this.physics = true
+
+print(">>> Entity Created - "..this.actorname);
+
+function this.walk(this)
+ if(this:get_currentdirection() == left) then
+ if ( this:can_move(left, this:get_x(), this:get_y()) and
+ not this:can_move(down, this:get_x()+this:get_ownspeed(), this:get_y())) then
+ if this:get_collision(left) then
+ this:set_currentdirection(right)
+ else
+ this:set_ownspeed(-this.speed)
+ end
+ this:set_oldclip(1)
+ else
+ this:set_currentdirection(right)
+ this:set_ownspeed(this.speed)
+ end
+ end
+
+ if(this:get_currentdirection() == right) then
+ if ( this:can_move(right, this:get_x(), this:get_y()) and
+ not this:can_move(down, this:get_x()+this:get_ownspeed(), this:get_y())) then
+ if this:get_collision(right) then
+ this:set_currentdirection(left)
+ else
+ this:set_ownspeed(this.speed)
+ end
+ this:set_oldclip(2)
+ else
+ this:set_currentdirection(left)
+ this:set_ownspeed(-this.speed)
+ end
+ end
+end
+
+function this.act(this)
+ this:walk()
+end
+
+--END \ No newline at end of file
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/shot-crawl.lua b/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/shot-crawl.lua
new file mode 100644
index 0000000..01b43dc
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/shot-crawl.lua
@@ -0,0 +1,48 @@
+--parameters
+this.actorname = "Bullet: Crawlshot"
+this.enemy = enemy_weapon
+this.speed = 6
+this.controllable = false
+this.physics = true
+this.bumpcount = 0
+this.bumplimit = 4
+
+print(">>> Entity Created - "..this.actorname);
+
+function this.move(this)
+
+ if(this:get_currentdirection() == right) then
+ this:set_ownspeed(this.speed)
+ end
+
+ if (this:get_currentdirection() == left) then
+ this:set_ownspeed(-this.speed)
+ end
+
+ if ( ( not this:can_move(left, this:get_x(), this:get_y()) and this:get_currentdirection() == left ) or
+ ( not this:can_move(right, this:get_x(), this:get_y()) and this:get_currentdirection() == right ) ) then
+ this.bumpcount = this.bumpcount + 1
+
+ this:switchdirection()
+ if this.bumpcount >= this.bumplimit then
+ this:set_dying(true)
+ end
+ end
+end
+
+function this.switchdirection(this)
+
+ if(this:get_currentdirection() == right) then
+ this:set_currentdirection(left)
+ this:set_ownspeed(-this.speed)
+ elseif (this:get_currentdirection() == left) then
+ this:set_currentdirection(right)
+ this:set_ownspeed(this.speed)
+ end
+end
+
+function this.act(this)
+ this:move()
+end
+
+--END \ No newline at end of file
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/shot-wave.lua b/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/shot-wave.lua
new file mode 100644
index 0000000..758085b
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/shot-wave.lua
@@ -0,0 +1,34 @@
+--parameters
+this.actorname = "Bullet: Wave"
+this.enemy = enemy_weapon
+this.speed = 10
+this.controllable = false
+this.physics = false
+this.angle = 0
+this.noclip = true
+
+print(">>> Entity Created - "..this.actorname);
+
+function this.move(this)
+
+ if(this:get_currentdirection() == right) then
+ this:set_ownspeed(this.speed)
+ end
+
+ if (this:get_currentdirection() == left) then
+ this:set_ownspeed(-this.speed)
+ end
+
+ this:set_y(this:get_y()+ (10 * math.sin(math.rad(this.angle))) )
+ this.angle = this.angle + 45
+
+ if ( this:get_x() < this:get_map_sx() or this:get_x() > this:get_map_sx() + this:get_cfg_screen_width()) then
+ this:set_dying(true)
+ end
+end
+
+function this.act(this)
+ this:move()
+end
+
+--END \ No newline at end of file
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/shot.lua b/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/shot.lua
new file mode 100644
index 0000000..3077f08
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/scripts/shot.lua
@@ -0,0 +1,33 @@
+--parameters
+this.actorname = "Bullet: Normal"
+this.enemy = enemy_weapon
+this.speed = 6
+this.controllable = false
+this.physics = false
+
+this:load_clip("./sfx/shot.wav");
+this:play_sfx("./sfx/shot.wav");
+
+print(">>> Entity Created - "..this.actorname);
+
+function this.move(this)
+
+ if(this:get_currentdirection() == right) then
+ this:set_ownspeed(this.speed)
+ end
+
+ if (this:get_currentdirection() == left) then
+ this:set_ownspeed(-this.speed)
+ end
+
+ if ( not this:can_move(left, this:get_x(), this:get_y()) or
+ not this:can_move(right, this:get_x(), this:get_y())) then
+ this:set_dying(true)
+ end
+end
+
+function this.act(this)
+ this:move()
+end
+
+--END \ No newline at end of file
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/sfx/shot.wav b/build/Debug/Pico-Lua-Test.app/Contents/Resources/sfx/shot.wav
new file mode 100644
index 0000000..5a2facc
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/sfx/shot.wav
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/shot.lua b/build/Debug/Pico-Lua-Test.app/Contents/Resources/shot.lua
new file mode 100644
index 0000000..7a63b9f
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/shot.lua
@@ -0,0 +1,35 @@
+--the directions
+up=0
+right=1
+down=2
+left = 3
+
+--parameters
+this.actorname = "Bullet: Normal"
+this.enemy = 0
+this.speed = 6
+this.controllable = 0
+
+print(">>> Entity Created - "..this.actorname);
+
+function this.move(this)
+
+ if(this:get_currentdirection() == right) then
+ this:set_ownspeed(this.speed)
+ end
+
+ if (this:get_currentdirection() == left) then
+ this:set_ownspeed(-this.speed)
+ end
+
+ if ( not this:can_move(left, this:get_x(), this:get_y()) or
+ not this:can_move(right, this:get_x(), this:get_y())) then
+ this:set_dying(true)
+ end
+end
+
+function this.act(this)
+ this:move()
+end
+
+--END \ No newline at end of file
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/shotsprite.png b/build/Debug/Pico-Lua-Test.app/Contents/Resources/shotsprite.png
new file mode 100644
index 0000000..b8f919a
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/shotsprite.png
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/sprites/picosprite.png b/build/Debug/Pico-Lua-Test.app/Contents/Resources/sprites/picosprite.png
new file mode 100644
index 0000000..b656394
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/sprites/picosprite.png
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/sprites/shotsprite.png b/build/Debug/Pico-Lua-Test.app/Contents/Resources/sprites/shotsprite.png
new file mode 100644
index 0000000..b8f919a
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/sprites/shotsprite.png
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/sprites/walkersprite.png b/build/Debug/Pico-Lua-Test.app/Contents/Resources/sprites/walkersprite.png
new file mode 100644
index 0000000..852b78f
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/sprites/walkersprite.png
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/step.wav b/build/Debug/Pico-Lua-Test.app/Contents/Resources/step.wav
new file mode 100644
index 0000000..6c8f8e0
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/step.wav
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/walkbg1.ogg b/build/Debug/Pico-Lua-Test.app/Contents/Resources/walkbg1.ogg
new file mode 100644
index 0000000..7d23517
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/walkbg1.ogg
Binary files differ
diff --git a/build/Debug/Pico-Lua-Test.app/Contents/Resources/walkersprite.png b/build/Debug/Pico-Lua-Test.app/Contents/Resources/walkersprite.png
new file mode 100644
index 0000000..852b78f
--- /dev/null
+++ b/build/Debug/Pico-Lua-Test.app/Contents/Resources/walkersprite.png
Binary files differ