mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-12-24 08:52:43 +00:00
fix random pup in js
This commit is contained in:
parent
4c0ea4afb2
commit
11ca7dd052
1 changed files with 17 additions and 0 deletions
|
|
@ -34,6 +34,23 @@ class RandomPowerup extends PowerUp {
|
|||
"sound/putimetravelvoice.wav",
|
||||
"sound/timetravelactive.wav"
|
||||
];
|
||||
#if js
|
||||
// Load all the resources of the other powerups
|
||||
sounds = sounds.concat([
|
||||
"shapes/items/powerup-bounce.png",
|
||||
"shapes/items/rocket.jpg",
|
||||
"shapes/items/shockabsorber.dts",
|
||||
"shapes/items/shockabsorber.png",
|
||||
"shapes/items/sji_shinysteel.png",
|
||||
"shapes/items/superbounce.dts",
|
||||
"shapes/items/superjump.dts",
|
||||
"shapes/items/superspeed.dts",
|
||||
"shapes/items/itemarrow.jpg",
|
||||
"shapes/items/enviro1.jpg",
|
||||
"shapes/images/helicopter.dts",
|
||||
"shapes/images/helicopter.jpg"
|
||||
]);
|
||||
#end
|
||||
var rlw = new ResourceLoaderWorker(onFinish);
|
||||
for (sound in sounds) {
|
||||
rlw.loadFile(sound);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue