Compare commits
2 Commits
dba989ca24
...
3898289f57
| Author | SHA1 | Date | |
|---|---|---|---|
| 3898289f57 | |||
| 33af343c80 |
@@ -23,11 +23,11 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0.8</string>
|
||||
<string>1.1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0.8</string>
|
||||
<string>1.1.0</string>
|
||||
<key>CSResourcesFileMapped</key>
|
||||
<true/>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
@@ -41,4 +41,4 @@
|
||||
<key>SUPublicDSAKeyFile</key>
|
||||
<string>dsa_pub.pem</string>
|
||||
</dict>
|
||||
</plist>
|
||||
</plist>
|
||||
|
||||
@@ -87,7 +87,7 @@ function abad_state_normal()
|
||||
elseif btn(keyLeft) or pad(btnLeft) then
|
||||
abad.update=abad_state_walking
|
||||
abad.flip=true
|
||||
elseif btn(keyUp) or pad(btnUp) then
|
||||
elseif btn(keyJump) or pad(btnJump) then
|
||||
abad.update=abad_state_jumping
|
||||
abad.step=0
|
||||
abad.jumpfwd=false
|
||||
@@ -185,7 +185,7 @@ function abad_state_walking()
|
||||
|
||||
abad_make_safe()
|
||||
|
||||
if btn(keyUp) or pad(btnUp) then
|
||||
if btn(keyJump) or pad(btnJump) then
|
||||
abad.update=abad_state_jumping
|
||||
abad.step=0
|
||||
abad.jumpfwd=true
|
||||
|
||||
@@ -382,7 +382,7 @@ function update_menu()
|
||||
menu_count=0
|
||||
menu_state=2
|
||||
end
|
||||
elseif btnp(keyDown) or btnp(KEY_DOWN) or padp(BTN_DOWN) padp(btnDown) then
|
||||
elseif btnp(keyDown) or btnp(KEY_DOWN) or padp(BTN_DOWN) or padp(btnDown) then
|
||||
menu_sel=menu_sel+1
|
||||
if menu_sel==3 then menu_sel=0 end
|
||||
elseif btnp(keyUp) or btnp(KEY_UP) or padp(BTN_UP) or padp(btnUp) then
|
||||
@@ -399,6 +399,10 @@ function update_menu()
|
||||
quit()
|
||||
end
|
||||
elseif menu_state==1 then
|
||||
if btnp(KEY_ESCAPE) then
|
||||
menu_count = 0
|
||||
menu_state = 0
|
||||
end
|
||||
if menu_count==0 then
|
||||
text("PULSA TECLA PER A AMUNT", 20, 24, 13)
|
||||
local key = btnp();
|
||||
@@ -432,6 +436,14 @@ function update_menu()
|
||||
setconf("keyright", keyRight)
|
||||
end
|
||||
elseif menu_count==4 then
|
||||
text("PULSA TECLA PER A BOTAR", 20, 24, 13)
|
||||
local key = btnp();
|
||||
if key ~= 0 and key~=KEY_ESCAPE then
|
||||
menu_count = 5
|
||||
keyJump=key
|
||||
setconf("keyjump", keyJump)
|
||||
end
|
||||
elseif menu_count==5 then
|
||||
text("PULSA TECLA PER A DISPAR", 18, 24, 13)
|
||||
local key = btnp();
|
||||
if key ~= 0 and key~=KEY_ESCAPE then
|
||||
@@ -442,6 +454,10 @@ function update_menu()
|
||||
end
|
||||
end
|
||||
else
|
||||
if btnp(KEY_ESCAPE) then
|
||||
menu_count = 0
|
||||
menu_state = 0
|
||||
end
|
||||
if menu_count==0 then
|
||||
text("PULSA BOTÓ PER A AMUNT", 22, 24, 13)
|
||||
local btn = padp();
|
||||
@@ -475,6 +491,14 @@ function update_menu()
|
||||
setconf("btnright", btnRight)
|
||||
end
|
||||
elseif menu_count==4 then
|
||||
text("PULSA BOTÓ PER A BOTAR", 22, 24, 13)
|
||||
local btn = padp();
|
||||
if btn ~= -1 then
|
||||
menu_count = 5
|
||||
btnJump=btn
|
||||
setconf("btnjump", btnJump)
|
||||
end
|
||||
elseif menu_count==5 then
|
||||
text("PULSA BOTÓ PER A DISPAR", 20, 24, 13)
|
||||
local btn = padp();
|
||||
if btn ~= -1 then
|
||||
|
||||
@@ -29,12 +29,14 @@ function _init()
|
||||
keyDown = tonumber(getconf("keydown")) or KEY_DOWN
|
||||
keyLeft = tonumber(getconf("keyleft")) or KEY_LEFT
|
||||
keyRight = tonumber(getconf("keyright")) or KEY_RIGHT
|
||||
keyJump = tonumber(getconf("keyjump")) or KEY_UP
|
||||
keyShoot = tonumber(getconf("keyshoot")) or KEY_SPACE
|
||||
|
||||
btnUp = tonumber(getconf("btnup")) or BTN_UP
|
||||
btnDown = tonumber(getconf("btndown")) or BTN_DOWN
|
||||
btnLeft = tonumber(getconf("btnleft")) or BTN_LEFT
|
||||
btnRight = tonumber(getconf("btnright")) or BTN_RIGHT
|
||||
btnJump = tonumber(getconf("btnjump")) or BTN_UP
|
||||
btnShoot = tonumber(getconf("btnshoot")) or BTN_A
|
||||
|
||||
--game_init()
|
||||
|
||||
Reference in New Issue
Block a user