Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
/**
* @author Richard Davey <[email protected]>
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*
* @overview
*
* Phaser - http://phaser.io
*
* v2.6.2 "Kore Springs" - Built: Fri Aug 26 2016 01:02:57
<!DOCTYPE html>
<html>
<head>
<title>Vacation World</title>
<style>
p {
font-family: Arial;
}
</style>
const menu = {
_courses : {
_appetizers : [],
_mains : [],
_desserts : [],
},//closes _courses object
get appetizers(){return this._appetizers},
get mains(){return this._mains},
get desserts(){return this._desserts},
const menu = {
_courses : {
_appetizers : [],
_mains : [],
_desserts : [],
},//closes _courses object
get appetizers(){return this._appetizers},
get mains(){return this._mains},
get desserts(){return this._desserts},
@bcuz
bcuz / t.js
Created October 17, 2017 17:23
const express = require('express');
const app = express();
app.use(express.static('public'));
const PORT = process.env.PORT || 4001;
const jellybeanBag = {
mystery: {
number: 4
@bcuz
bcuz / t.js
Created October 11, 2017 15:59
const generatePlayerBoard = (numberOfRows, numberOfColumns) => {
let board = []
for (let i=0; i< numberOfRows; i++) {
let row = []
for (let j = 0; j < numberOfColumns; j++) {
row.push(' ')
}
@bcuz
bcuz / t.js
Created October 11, 2017 15:58
const generatePlayerBoard = (numberOfRows, numberOfColumns) => {
let board = []
for (let i=0; i< numberOfRows; i++) {
let row = []
for (let j = 0; j < numberOfColumns; j++) {
row.push(' ')
}
class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
itemCount: 0
};
this.addItem = this.addItem.bind(this);
}
addItem() {
this.setState({
@bcuz
bcuz / board.js
Created September 27, 2017 17:25
export class Board {
constructor(numberOfRows, numberOfColumns, numberOfBombs) {
this._numberOfBombs = numberOfBombs;
this._numberOfTiles = (numberOfRows * numberOfColumns);
this._playerBoard = Board.generatePlayerBoard(numberOfRows, numberOfColumns);
this._bombBoard = Board.generatePlayerBoard(numberOfRows, numberOfColumns, numberOfBombs);
}
get playerBoard () {
return this._playerBoard;