-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
535 additions
and
924 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import gameBgImg from "../images/castle-gamebg.png"; | ||
import castleBgImg from "../images/castle-bg.jpg"; | ||
import groundImg from "../images/castle-ground.png"; | ||
import brickImg from "../images/castle-brick.png"; | ||
import woodImg from "../images/castle-wood.png"; | ||
import bossImg from "../images/castle-boss.png"; | ||
import rockImg from "../images/castle-rock.png"; | ||
import slingshotImg from "../images/slingshot.png"; | ||
import slingshotFrontImg from "../images/slingshot_front.png"; | ||
import { Assets } from "pixi.js"; | ||
|
||
export async function castleFallsPreload() { | ||
|
||
let assets = [ | ||
{ alias: 'gameBgImg', src: gameBgImg }, | ||
{ alias: 'castleBgImg', src: castleBgImg }, | ||
{ alias: 'groundImg', src: groundImg }, | ||
{ alias: 'brickImg', src: brickImg }, | ||
{ alias: 'woodImg', src: woodImg }, | ||
{ alias: 'bossImg', src: bossImg }, | ||
{ alias: 'rockImg', src: rockImg }, | ||
{ alias: 'slingshotImg', src: slingshotImg }, | ||
{ alias: 'slingshotFrontImg', src: slingshotFrontImg }, | ||
]; | ||
Assets.add(assets); | ||
await Assets.load(assets.map(asset => asset.alias)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.