-
Notifications
You must be signed in to change notification settings - Fork 18
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
rootasjey
committed
Jul 18, 2020
1 parent
96939d5
commit 774f42b
Showing
33 changed files
with
1,032 additions
and
82,254 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file not shown.
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,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<link rel="icon" href="/favicon.ico"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<meta name="description" content="Web site created using create-snowpack-app"/> | ||
<title>Snowpack App</title> | ||
<link href="https://unpkg.com/sanitize.css" rel="stylesheet" /> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<script type="module" src="/_dist_/index.js"></script> | ||
</body> | ||
</html> |
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,3 @@ | ||
# https://www.robotstxt.org/robotstxt.html | ||
User-agent: * | ||
Disallow: |
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,7 @@ | ||
{ | ||
"scripts": { | ||
"mount:public": "mount public --to /", | ||
"mount:src": "mount src --to /_dist_" | ||
}, | ||
"plugins": [] | ||
} |
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,5 @@ | ||
{ | ||
"imports": { | ||
"canvas-confetti": "https://cdn.pika.dev/pin/[email protected]/canvas-confetti.js" | ||
} | ||
} |
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,78 @@ | ||
import Phaser from "phaser"; | ||
|
||
import BootScene from './scenes/boot'; | ||
import MenuScene from './scenes/menu'; | ||
import PlayScene from './scenes/play'; | ||
|
||
import { Game } from './gameObjects/Game'; | ||
|
||
window.addEventListener("load", () => { | ||
Game.instance = new Phaser.Game({ | ||
// See <https://github.com/photonstorm/phaser/blob/master/src/boot/Config.js> | ||
scale: { | ||
mode: Phaser.Scale.NONE, | ||
width: 812, | ||
height: 812, | ||
}, | ||
// zoom: 1, | ||
// resolution: 1, | ||
type: Phaser.AUTO, | ||
// parent: null, | ||
// canvas: null, | ||
// canvasStyle: null, | ||
// seed: null, | ||
title: 'Backwards', | ||
version: '0.10.0', | ||
url: 'https://github.com/rootasjey/backwards', | ||
// input: { | ||
// keyboard: true, | ||
// mouse: true, | ||
// touch: true, | ||
// gamepad: false | ||
// }, | ||
// disableContextMenu: false, | ||
// banner: false | ||
banner: { | ||
// hidePhaser: false, | ||
// text: 'white', | ||
background: ['#e54661', '#ffa644', '#998a2f', '#2c594f', '#002d40'], | ||
}, | ||
// fps: { | ||
// min: 10, | ||
// target: 60, | ||
// forceSetTimeout: false, | ||
// }, | ||
// antialias: false, | ||
render: { | ||
// antialias: true, | ||
pixelArt: true, | ||
// roundPixels: true, | ||
}, | ||
// transparent: false, | ||
// clearBeforeRender: true, | ||
// backgroundColor: 0x000000, // black | ||
loader: { | ||
// baseURL: '', | ||
path: 'assets/', | ||
// maxParallelDownloads: 32, | ||
// crossOrigin: 'anonymous', | ||
// timeout: 0 | ||
}, | ||
physics: { | ||
// default: 'arcade', | ||
// arcade: { | ||
// gravity: { | ||
// y: 180 | ||
// } | ||
// } | ||
// default: false, | ||
}, | ||
scene: [ | ||
BootScene, | ||
MenuScene, | ||
PlayScene, | ||
], | ||
}); | ||
|
||
return Game.instance; | ||
}); |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Phaser from "phaser"; | ||
|
||
export type ConstructorParams = { | ||
x: number; | ||
y: number; | ||
scene: Phaser.Scene; | ||
texture?: string; | ||
}; | ||
|
||
export abstract class Base extends Phaser.Physics.Arcade.Sprite { | ||
constructor({ scene, x, y, texture }: ConstructorParams) { | ||
super(scene, x, y, texture, 0); | ||
} | ||
} |
Oops, something went wrong.