Code Monkey home page Code Monkey logo

yummy-cupcake's Introduction

Goal: Figure out best practices for writing HTML5 games

Dev

gulp

Production

gulp build

Server for testing

Dev

(serves files out of ./app) node server

Prod

(serves files out of ./build) NODE_ENV=production node server

Flo

Server also runs fb-flo for live updating

Build process

Builds look like this

  • build/
    • index.html
    • cache.appcache
    • dist/
      • bundle.js
      • bundle.js.map (currently missing)
      • vendor.js
      • vendor.js.map (currently missing)
      • bundle.css
      • bundle.css.map (currently missing)
    • assets/
      • image.jpg
      • ...

cache.appcache has all non asset/ files in it
(nor *.map files, nor cache.appcache)

TODO

  • add build step to add all asset files to cache.appcache
  • minify/concat css w/source maps
  • fix missing js maps

yummy-cupcake's People

Contributors

zolmeister avatar austinhallock avatar

Stargazers

 avatar  avatar

Watchers

 avatar James Cloos avatar  avatar Nat Quayle Nelson avatar  avatar

yummy-cupcake's Issues

Score Loading Delay

Possibly introduced by commit 7454079, or possibly previously unnoticed because of testing primarily in debug mode.

When starting the game, the score appears as 0 but after a few seconds updates to reflect the player's actual saved score. Strangely, this also seems to cause inaccurate information to display in the shop.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.