Skip to content

Commit 7a46690

Browse files
committed
fix: clean up project
1 parent 8431d68 commit 7a46690

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

src/assets/banner.jpg

-47.5 KB
Loading

src/assets/gamepad.png

54.8 KB
Loading

src/assets/logo.png

-60 KB
Binary file not shown.

src/assets/logoBack.png

-157 KB
Binary file not shown.

src/config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default {
22
view: {
33
width: window.innerWidth,
44
height: window.innerHeight,
5-
backgroundColor: 0xfafafa,
5+
backgroundColor: 0xffffff,
66
worldWidth: 1000,
77
worldHeight: 500,
88
resizeTo: window,
@@ -11,14 +11,14 @@ export default {
1111
game: {
1212
width: 1000,
1313
height: 500,
14-
drag: true,
14+
drag: false,
1515
pinch: true,
1616
decelerate: true,
1717
wheel: true,
1818
},
1919
scenes: {
2020
Splash: {
21-
hideDelay: 2000,
21+
hideDelay: 0,
2222
},
2323
},
2424
assets: {

src/scenes/Play.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import { Sprite } from 'pixi.js';
22
import Scene from './Scene';
3+
import gsap from 'gsap';
34

45
export default class Play extends Scene {
56
async onCreated() {
6-
// create a sprite with the logo asset as texture and add it to the stage
7-
const sprite = Sprite.from('logo');
7+
// create a sprite with the gamepad asset as texture and add it to the stage
8+
const sprite = Sprite.from('gamepad');
89

9-
this.coin = sprite;
1010
this.addChild(sprite);
1111
sprite.anchor.set(0.5);
12+
13+
gsap.to(sprite.scale, { x: 1.1, y: 1.1, duration: 1, repeat: -1, yoyo: true, ease: "power2.out" });
1214
}
1315

1416
/**

src/scenes/Splash.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default class Splash extends Scene {
99

1010
this.loadingText = new Text('0%', {
1111
fontSize: 75,
12-
fill: 0xAA0044,
12+
fill: 0xffc900,
1313
});
1414

1515
this.config = config.scenes.Splash;
@@ -26,8 +26,7 @@ export default class Splash extends Scene {
2626

2727
preload() {
2828
const images = {
29-
logo: Assets.images.logo,
30-
logoBack: Assets.images.logoBack,
29+
gamepad: Assets.images.gamepad,
3130
};
3231
const sounds = {
3332
coinFlip1: Assets.sounds.coinFlip1,

0 commit comments

Comments
 (0)