Файловый менеджер - Редактировать - /home/jogoso94/public_html/jogos/prince_js/src/Preloader.js
�азад
"use strict"; PrinceJS.Preloader = function (game) {}; PrinceJS.Preloader.prototype = { preload: function () { this.text = this.game.add.bitmapText( PrinceJS.SCREEN_WIDTH * 0.5, PrinceJS.SCREEN_HEIGHT * 0.5, "font", "Loading. . . .", 16 ); this.text.anchor.setTo(0.5, 0.5); this.load.atlasJSONHash("kid", "assets/gfx/kid.png", "assets/gfx/kid.json"); this.load.atlasJSONHash("princess", "assets/gfx/princess.png", "assets/gfx/princess.json"); this.load.atlasJSONHash("vizier", "assets/gfx/vizier.png", "assets/gfx/vizier.json"); this.load.atlasJSONHash("mouse", "assets/gfx/mouse.png", "assets/gfx/mouse.json"); this.load.atlasJSONHash("guard-1", "assets/gfx/guard-1.png", "assets/gfx/guard-1.json"); this.load.atlasJSONHash("guard-2", "assets/gfx/guard-2.png", "assets/gfx/guard-2.json"); this.load.atlasJSONHash("guard-3", "assets/gfx/guard-3.png", "assets/gfx/guard-3.json"); this.load.atlasJSONHash("guard-4", "assets/gfx/guard-4.png", "assets/gfx/guard-4.json"); this.load.atlasJSONHash("guard-5", "assets/gfx/guard-5.png", "assets/gfx/guard-5.json"); this.load.atlasJSONHash("guard-6", "assets/gfx/guard-6.png", "assets/gfx/guard-6.json"); this.load.atlasJSONHash("guard-7", "assets/gfx/guard-7.png", "assets/gfx/guard-7.json"); this.load.atlasJSONHash("fatguard", "assets/gfx/fatguard.png", "assets/gfx/fatguard.json"); this.load.atlasJSONHash("jaffar", "assets/gfx/jaffar.png", "assets/gfx/jaffar.json"); this.load.atlasJSONHash("skeleton", "assets/gfx/skeleton.png", "assets/gfx/skeleton.json"); this.load.atlasJSONHash("shadow", "assets/gfx/shadow.png", "assets/gfx/shadow.json"); this.load.atlasJSONHash("dungeon", "assets/gfx/dungeon.png", "assets/gfx/dungeon.json"); this.load.atlasJSONHash("palace", "assets/gfx/palace.png", "assets/gfx/palace.json"); this.load.atlasJSONHash("general", "assets/gfx/general.png", "assets/gfx/general.json"); this.load.atlasJSONHash("sword", "assets/gfx/sword.png", "assets/gfx/sword.json"); this.load.atlasJSONHash("title", "assets/gfx/title.png", "assets/gfx/title.json"); this.load.atlasJSONHash("cutscene", "assets/gfx/cutscene.png", "assets/gfx/cutscene.json"); this.load.json("kid-anims", "assets/anims/kid.json"); this.load.json("sword-anims", "assets/anims/sword.json"); this.load.json("fighter-anims", "assets/anims/fighter.json"); this.load.json("princess-anims", "assets/anims/princess.json"); this.load.json("shadow-anims", "assets/anims/shadow.json"); this.load.json("vizier-anims", "assets/anims/vizier.json"); this.load.json("mouse-anims", "assets/anims/mouse.json"); // Music this.game.load.audio("PrologueA", "assets/music/01_Prologue_A.mp3"); this.game.load.audio("PrologueB", "assets/music/02_Prologue_B.mp3"); this.game.load.audio("Danger", "assets/music/06_Danger.mp3"); this.game.load.audio("Accident", "assets/music/07_Accident.mp3"); this.game.load.audio("Potion1", "assets/music/08_Potion_1.mp3"); this.game.load.audio("Victory", "assets/music/09_Victory.mp3"); this.game.load.audio("Prince", "assets/music/11_Prince.mp3"); this.game.load.audio("Potion2", "assets/music/14_Potion_2.mp3"); // SFX this.game.load.audio("FreeFallLand", "assets/sfx/01_Free_fall_land.mp3"); this.game.load.audio("LooseFloorLands", "assets/sfx/02_Loose_floor_lands.mp3"); this.game.load.audio("LooseFloorShakes1", "assets/sfx/03_Loose_floor_shakes.mp3"); this.game.load.audio("GateComingDownSlow", "assets/sfx/04_Gate_coming_down_slow.mp3"); this.game.load.audio("GateRising", "assets/sfx/05_Gate_rising.mp3"); this.game.load.audio("GateReachesBottomClang", "assets/sfx/06_Gate_reaches_bottom_clang.mp3"); this.game.load.audio("GateStopsAtTop", "assets/sfx/07_Gate_stops_at_top.mp3"); this.game.load.audio("BumpIntoWallSoft", "assets/sfx/08_Bump_into_wall_soft.mp3"); this.game.load.audio("BumpIntoWallHard", "assets/sfx/09_Bump_into_wall_hard.mp3"); this.game.load.audio("SwordClash", "assets/sfx/10_Sword_clash.mp3"); this.game.load.audio("StabAir", "assets/sfx/11_Stab_air.mp3"); this.game.load.audio("StabOpponent", "assets/sfx/12_Stab_opponent.mp3"); this.game.load.audio("StabbedByOpponent", "assets/sfx/13_Stabbed_by_opponent.mp3"); this.game.load.audio("MediumLandingOof", "assets/sfx/14_Medium_landing_oof.mp3"); this.game.load.audio("SoftLanding", "assets/sfx/15_Soft_landing.mp3"); this.game.load.audio("UnsheatheSword", "assets/sfx/16_Unsheathe_sword.mp3"); this.game.load.audio("LooseFloorShakes3", "assets/sfx/17_Loose_floor_shakes_3.mp3"); this.game.load.audio("LooseFloorShakes2", "assets/sfx/18_Loose_floor_shakes_2.mp3"); this.game.load.audio("FloorButton", "assets/sfx/19_Floor_button.mp3"); this.game.load.audio("Footsteps", "assets/sfx/20_Footsteps.mp3"); this.game.load.audio("BonesLeapToLife", "assets/sfx/21_Bones_leap_to_life.mp3"); this.game.load.audio("Mirror", "assets/sfx/22_Mirror.mp3"); this.game.load.audio("HalvedByChopper", "assets/sfx/23_Halved_by_chopper.mp3"); this.game.load.audio("SlicerBladesClash", "assets/sfx/24_Slicer_blades_clash.mp3"); this.game.load.audio("HardLandingSplat", "assets/sfx/25_Hard_landing_splat.mp3"); this.game.load.audio("ImpaledBySpikes", "assets/sfx/26_Impaled_by_spikes.mp3"); this.game.load.audio("DoorSqueak", "assets/sfx/27_Door_squeak.mp3"); this.game.load.audio("FallingFloorLands", "assets/sfx/28_Falling_floor_lands.mp3"); this.game.load.audio("EntranceDoorCloses", "assets/sfx/29_Entrance_door_closes.mp3"); this.game.load.audio("ExitDoorOpening", "assets/sfx/30_Exit_door_opening.mp3"); this.game.load.audio("DrinkPotionGlugGlug", "assets/sfx/31_Drink_potion_glug_glug.mp3"); this.game.load.audio("Beep", "assets/sfx/32_Beep.mp3"); this.game.load.audio("SpikedBySpikes", "assets/sfx/33_Spiked_by_spikes.mp3"); }, create: function () { this.text.setText("Press to Start"); this.input.keyboard.onDownCallback = this.start.bind(this); this.game.input.onDown.addOnce(() => { this.game.sound.context.resume(); }); this.game.input.mouse.capture = true; this.game.input.addPointer(); this.game.input.addPointer(); this.game.input.gamepad.start(); this.game.canvas.oncontextmenu = function (event) { event.preventDefault(); }; }, update: function () { if (PrinceJS.Utils.pointerPressed(this.game)) { this.start(); } }, start: function () { if (PrinceJS.SKIP_TITLE) { this.state.start("Game"); } else { this.state.start("Title"); } } };
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка