Add run lock toggle, so you can lock the running state and then use space or shift to walk. Keybinding is tab or capslock. Update all external references to coin to be bone dust instead. Change the sound names to match. Now the only coin references are in the code itself.
This commit is contained in:
@@ -11,25 +11,26 @@ You give an evil grin, oh wait, your a skeleton, your skull is always doing that
|
||||
Controls
|
||||
|
||||
For your convenience, there are a couple of bindings for each movement key. They are listed here:
|
||||
a or left arrow: move left
|
||||
d or right arrow: move right
|
||||
w or up arrow: jump
|
||||
s or down arrow: duck
|
||||
Control: attack
|
||||
Space or shift: hold to run.
|
||||
f or alt: throw jack O'lantern
|
||||
c: check bone dust
|
||||
a or left arrow: Move left.
|
||||
d or right arrow: Move right.
|
||||
w or up arrow: Jump.
|
||||
s or down arrow: Duck.
|
||||
tab or capslock: Toggle run lock.
|
||||
Control: Attack.
|
||||
Space or shift: Hold to run if runlock is disabled. If run lock is enabled, hold to walk.
|
||||
f or alt: Throw jack O'lantern.
|
||||
c: Check bone dust.
|
||||
e: Check currently wielded weapon.
|
||||
h: check health
|
||||
h: Check health.
|
||||
i: Information for current level.
|
||||
j: check jack O'lanterns
|
||||
l: check lives remaining
|
||||
Alt+PageDown: Master volume decrease
|
||||
Alt+PageUp: Master volume increase
|
||||
Alt+End: Ambience volume decrease
|
||||
Alt+Home: Game volume increase
|
||||
Alt+Delete: Game sounds volume decrease
|
||||
Alt+Insert: Game sounds volume increase
|
||||
j: Check jack O'lanterns.
|
||||
l: Check lives remaining.
|
||||
Alt+PageDown: Master volume decrease.
|
||||
Alt+PageUp: Master volume increase.
|
||||
Alt+End: Ambience volume decrease.
|
||||
Alt+Home: Game volume increase.
|
||||
Alt+Delete: Game sounds volume decrease.
|
||||
Alt+Insert: Game sounds volume increase.
|
||||
|
||||
Notes
|
||||
|
||||
|
||||
@@ -37,12 +37,12 @@ If you set locked to true, the player may not leave the level until all enemies
|
||||
|
||||
All objects go in an "objects" list. Here are some examples of what you can add:
|
||||
|
||||
### Coins (Bone Dust)
|
||||
### Bone Dust
|
||||
|
||||
{
|
||||
"x_range": [5, 8],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
}
|
||||
@@ -142,7 +142,7 @@ For example, to add a werewolf enemy:
|
||||
|
||||
## Tips
|
||||
|
||||
- Add at least 33 coins per level
|
||||
- Add at least 33 bone dust per level
|
||||
- Space out hazards to give players a chance
|
||||
- Enemy health:
|
||||
- Regular enemies: 4-6 HP
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{
|
||||
"x_range": [5, 8],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -23,7 +23,7 @@
|
||||
{
|
||||
"x_range": [15, 17],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -55,7 +55,7 @@
|
||||
{
|
||||
"x_range": [55, 57],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -87,7 +87,7 @@
|
||||
{
|
||||
"x_range": [95, 100],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -100,7 +100,7 @@
|
||||
{
|
||||
"x_range": [120, 123],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -114,7 +114,7 @@
|
||||
{
|
||||
"x_range": [154, 159],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -129,7 +129,7 @@
|
||||
{
|
||||
"x_range": [170, 172],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{
|
||||
"x_range": [5, 10],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -42,7 +42,7 @@
|
||||
{
|
||||
"x_range": [45, 50],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -69,7 +69,7 @@
|
||||
{
|
||||
"x_range": [85, 90],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -93,7 +93,7 @@
|
||||
{
|
||||
"x_range": [120, 125],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -112,7 +112,7 @@
|
||||
{
|
||||
"x_range": [155, 160],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -137,7 +137,7 @@
|
||||
{
|
||||
"x_range": [185, 190],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -156,7 +156,7 @@
|
||||
{
|
||||
"x_range": [215, 220],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -183,7 +183,7 @@
|
||||
{
|
||||
"x_range": [250, 255],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -207,7 +207,7 @@
|
||||
{
|
||||
"x_range": [285, 290],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -221,7 +221,7 @@
|
||||
{
|
||||
"x_range": [320, 325],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -245,14 +245,14 @@
|
||||
{
|
||||
"x_range": [355, 360],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
{
|
||||
"x_range": [375, 380],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{
|
||||
"x_range": [5, 10],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -47,7 +47,7 @@
|
||||
{
|
||||
"x_range": [50, 55],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -68,7 +68,7 @@
|
||||
{
|
||||
"x_range": [85, 90],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -115,7 +115,7 @@
|
||||
{
|
||||
"x_range": [140, 145],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -129,7 +129,7 @@
|
||||
{
|
||||
"x_range": [165, 170],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -171,7 +171,7 @@
|
||||
{
|
||||
"x_range": [225, 230],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -197,7 +197,7 @@
|
||||
{
|
||||
"x_range": [255, 260],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -227,7 +227,7 @@
|
||||
{
|
||||
"x_range": [295, 300],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -251,7 +251,7 @@
|
||||
{
|
||||
"x_range": [335, 340],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -286,7 +286,7 @@
|
||||
{
|
||||
"x_range": [390, 395],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{
|
||||
"x_range": [5, 10],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -31,7 +31,7 @@
|
||||
{
|
||||
"x_range": [55, 60],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -61,7 +61,7 @@
|
||||
{
|
||||
"x_range": [105, 110],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -77,7 +77,7 @@
|
||||
{
|
||||
"x_range": [125, 130],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -102,7 +102,7 @@
|
||||
{
|
||||
"x_range": [155, 160],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -134,7 +134,7 @@
|
||||
{
|
||||
"x_range": [205, 210],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -153,7 +153,7 @@
|
||||
{
|
||||
"x_range": [235, 240],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -185,7 +185,7 @@
|
||||
{
|
||||
"x_range": [275, 280],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -211,7 +211,7 @@
|
||||
{
|
||||
"x_range": [320, 325],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -236,7 +236,7 @@
|
||||
{
|
||||
"x_range": [365, 370],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -255,7 +255,7 @@
|
||||
{
|
||||
"x_range": [395, 400],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{
|
||||
"x_range": [5, 10],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -42,7 +42,7 @@
|
||||
{
|
||||
"x_range": [45, 50],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -69,7 +69,7 @@
|
||||
{
|
||||
"x_range": [85, 90],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -94,7 +94,7 @@
|
||||
{
|
||||
"x_range": [125, 130],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -124,7 +124,7 @@
|
||||
{
|
||||
"x_range": [175, 180],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -143,7 +143,7 @@
|
||||
{
|
||||
"x_range": [215, 220],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -169,7 +169,7 @@
|
||||
{
|
||||
"x_range": [255, 260],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -199,7 +199,7 @@
|
||||
{
|
||||
"x_range": [295, 300],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -233,7 +233,7 @@
|
||||
{
|
||||
"x_range": [350, 355],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -254,7 +254,7 @@
|
||||
{
|
||||
"x_range": [385, 390],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -277,7 +277,7 @@
|
||||
{
|
||||
"x_range": [415, 420],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -351,7 +351,7 @@
|
||||
{
|
||||
"x_range": [455, 460],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -369,7 +369,7 @@
|
||||
{
|
||||
"x_range": [475, 480],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
{
|
||||
"x_range": [15, 20],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -43,7 +43,7 @@
|
||||
{
|
||||
"x_range": [33, 38],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -67,7 +67,7 @@
|
||||
{
|
||||
"x_range": [65, 70],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -99,7 +99,7 @@
|
||||
{
|
||||
"x_range": [105, 108],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -124,7 +124,7 @@
|
||||
{
|
||||
"x_range": [145, 150],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -184,7 +184,7 @@
|
||||
{
|
||||
"x_range": [175, 180],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{
|
||||
"x_range": [1, 4],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -23,7 +23,7 @@
|
||||
{
|
||||
"x_range": [6, 10],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -38,7 +38,7 @@
|
||||
{
|
||||
"x_range": [25, 28],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -67,7 +67,7 @@
|
||||
{
|
||||
"x_range": [40, 44],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -93,7 +93,7 @@
|
||||
{
|
||||
"x_range": [75, 78],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -136,7 +136,7 @@
|
||||
{
|
||||
"x_range": [105, 115],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -181,7 +181,7 @@
|
||||
{
|
||||
"x_range": [155, 158],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -224,7 +224,7 @@
|
||||
{
|
||||
"x_range": [173, 176],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -238,7 +238,7 @@
|
||||
{
|
||||
"x_range": [190, 195],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{
|
||||
"x_range": [5, 8],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -65,7 +65,7 @@
|
||||
{
|
||||
"x_range": [45, 48],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -98,7 +98,7 @@
|
||||
{
|
||||
"x_range": [80, 83],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -123,7 +123,7 @@
|
||||
{
|
||||
"x_range": [100, 103],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -136,7 +136,7 @@
|
||||
{
|
||||
"x_range": [115, 118],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -151,14 +151,14 @@
|
||||
{
|
||||
"x_range": [140, 143],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
{
|
||||
"x_range": [155, 160],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -194,7 +194,7 @@
|
||||
{
|
||||
"x_range": [180, 183],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{
|
||||
"x_range": [5, 8],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -25,7 +25,7 @@
|
||||
{
|
||||
"x_range": [15, 20],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -61,7 +61,7 @@
|
||||
{
|
||||
"x_range": [45, 48],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -93,7 +93,7 @@
|
||||
{
|
||||
"x_range": [85, 88],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -119,7 +119,7 @@
|
||||
{
|
||||
"x_range": [110, 113],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -138,7 +138,7 @@
|
||||
{
|
||||
"x_range": [130, 135],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -159,7 +159,7 @@
|
||||
{
|
||||
"x_range": [150, 153],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -185,7 +185,7 @@
|
||||
{
|
||||
"x_range": [185, 188],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{
|
||||
"x_range": [5, 8],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -35,7 +35,7 @@
|
||||
{
|
||||
"x_range": [25, 30],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -67,7 +67,7 @@
|
||||
{
|
||||
"x_range": [50, 53],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -104,7 +104,7 @@
|
||||
{
|
||||
"x_range": [95, 98],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -130,14 +130,14 @@
|
||||
{
|
||||
"x_range": [120, 123],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
{
|
||||
"x_range": [140, 145],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -174,7 +174,7 @@
|
||||
{
|
||||
"x_range": [165, 168],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -188,7 +188,7 @@
|
||||
{
|
||||
"x_range": [185, 188],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{
|
||||
"x_range": [5, 8],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -28,7 +28,7 @@
|
||||
{
|
||||
"x_range": [20, 23],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -71,7 +71,7 @@
|
||||
{
|
||||
"x_range": [50, 54],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -106,7 +106,7 @@
|
||||
{
|
||||
"x_range": [90, 93],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -128,7 +128,7 @@
|
||||
{
|
||||
"x_range": [115, 118],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -169,7 +169,7 @@
|
||||
{
|
||||
"x_range": [150, 153],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -200,7 +200,7 @@
|
||||
{
|
||||
"x_range": [185, 188],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -225,7 +225,7 @@
|
||||
{
|
||||
"x_range": [210, 213],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -256,7 +256,7 @@
|
||||
{
|
||||
"x_range": [235, 238],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{
|
||||
"x_range": [5, 10],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -36,7 +36,7 @@
|
||||
{
|
||||
"x_range": [45, 50],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -63,7 +63,7 @@
|
||||
{
|
||||
"x_range": [70, 75],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -87,7 +87,7 @@
|
||||
{
|
||||
"x_range": [100, 105],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -101,7 +101,7 @@
|
||||
{
|
||||
"x_range": [120, 125],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -126,7 +126,7 @@
|
||||
{
|
||||
"x_range": [145, 150],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -145,7 +145,7 @@
|
||||
{
|
||||
"x_range": [180, 185],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -171,7 +171,7 @@
|
||||
{
|
||||
"x_range": [210, 215],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -184,7 +184,7 @@
|
||||
{
|
||||
"x_range": [235, 240],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -202,7 +202,7 @@
|
||||
{
|
||||
"x_range": [255, 260],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -216,7 +216,7 @@
|
||||
{
|
||||
"x_range": [280, 285],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -235,7 +235,7 @@
|
||||
{
|
||||
"x_range": [315, 320],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -309,7 +309,7 @@
|
||||
{
|
||||
"x_range": [393, 397],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{
|
||||
"x_range": [5, 10],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -40,7 +40,7 @@
|
||||
{
|
||||
"x_range": [50, 55],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -56,7 +56,7 @@
|
||||
{
|
||||
"x_range": [80, 85],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -92,7 +92,7 @@
|
||||
{
|
||||
"x_range": [125, 130],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -111,7 +111,7 @@
|
||||
{
|
||||
"x_range": [160, 165],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -136,7 +136,7 @@
|
||||
{
|
||||
"x_range": [195, 200],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -155,7 +155,7 @@
|
||||
{
|
||||
"x_range": [225, 230],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -181,7 +181,7 @@
|
||||
{
|
||||
"x_range": [260, 265],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -194,7 +194,7 @@
|
||||
{
|
||||
"x_range": [285, 290],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -212,7 +212,7 @@
|
||||
{
|
||||
"x_range": [310, 315],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
},
|
||||
@@ -238,7 +238,7 @@
|
||||
{
|
||||
"x_range": [350, 355],
|
||||
"y": 3,
|
||||
"sound": "coin",
|
||||
"sound": "bone_dust",
|
||||
"collectible": true,
|
||||
"static": true
|
||||
}
|
||||
|
||||
@@ -324,7 +324,7 @@ class Level:
|
||||
obj.collect_at_position(currentPos)
|
||||
self.player.collectedItems.append(obj.soundName)
|
||||
self.player.stats.update_stat('Items collected', 1)
|
||||
if obj.soundName == "coin":
|
||||
if obj.soundName == "bone_dust":
|
||||
self.player._coins += 1
|
||||
self.levelScore += 100
|
||||
self.player.stats.update_stat('Bone dust', 1)
|
||||
|
||||
11
wicked_quest.py
Normal file → Executable file
11
wicked_quest.py
Normal file → Executable file
@@ -18,6 +18,7 @@ class WickedQuest:
|
||||
self.throwDelay = 250
|
||||
self.player = None
|
||||
self.currentGame = None
|
||||
self.runLock = False # Toggle behavior of the run keys
|
||||
|
||||
def load_level(self, levelNumber):
|
||||
"""Load a level from its JSON file."""
|
||||
@@ -71,8 +72,11 @@ class WickedQuest:
|
||||
elif (not keys[pygame.K_s] and not keys[pygame.K_DOWN]) and player.isDucking:
|
||||
player.stand()
|
||||
|
||||
player.isRunning = keys[pygame.K_SPACE] or keys[pygame.K_LSHIFT] or keys[pygame.K_RSHIFT]
|
||||
|
||||
if self.runLock:
|
||||
player.isRunning = not (keys[pygame.K_SPACE] or keys[pygame.K_LSHIFT] or keys[pygame.K_RSHIFT])
|
||||
else:
|
||||
player.isRunning = keys[pygame.K_SPACE] or keys[pygame.K_LSHIFT] or keys[pygame.K_RSHIFT]
|
||||
|
||||
# Get current speed (handles both running and jumping)
|
||||
currentSpeed = player.get_current_speed()
|
||||
|
||||
@@ -208,6 +212,9 @@ class WickedQuest:
|
||||
except:
|
||||
pass
|
||||
return
|
||||
elif event.key in [pygame.K_CAPSLOCK, pygame.K_TAB]:
|
||||
self.runLock = not self.runLock
|
||||
speak("Run lock " + ("enabled." if self.runLock else "disabled."))
|
||||
# Volume controls (require Alt)
|
||||
elif altPressed:
|
||||
if event.key == pygame.K_PAGEUP:
|
||||
|
||||
Reference in New Issue
Block a user