Skip to content

Commit

Permalink
Brunch ith Fairies
Browse files Browse the repository at this point in the history
  • Loading branch information
willyvvu committed Feb 16, 2015
1 parent 17e1ec9 commit ff7ab40
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 4 deletions.
9 changes: 9 additions & 0 deletions README.md
@@ -1,3 +1,12 @@
# Brunch with Fairies
This is a quick and fairy simple skeleton for creating HTML5 games and other interactives with [Pixi](http://www.pixijs.com/) and CoffeeScript.

It's based on my hackathon-winning project [Motemote](willy-vvu.github.io/#motemote), minus the real-time networking.

## Also included in the box:
- jQuery
- Stylus

# Brunch app

This is HTML5 application, built with [Brunch](http://brunch.io).
Expand Down
1 change: 0 additions & 1 deletion app/README.md

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/README.md

This file was deleted.

13 changes: 13 additions & 0 deletions app/assets/index.html
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="app.css">
</head>
<body>
<script src="app.js"></script>
<script>
require("main")
</script>
</body>
</html>
16 changes: 16 additions & 0 deletions app/main.coffee
@@ -0,0 +1,16 @@
renderer = new PIXI.autoDetectRenderer(500, 500, transparent: true)
stage = new PIXI.Stage()

$("body").append(renderer.view)

# Your setup code goes here!

do render = ()->
# Your render code goes here!

renderer.render(stage)

if window.requestAnimationFrame?
window.requestAnimationFrame(render)
else
setTimeout(render, 1000/60)
1 change: 1 addition & 0 deletions app/main.styl
@@ -0,0 +1 @@
/* Your stylus code goes here! */
5 changes: 4 additions & 1 deletion bower.json
Expand Up @@ -2,6 +2,9 @@
"name": "your-app",
"version": "0.0.1",
"main": "public/app.js",
"dependencies": {},
"dependencies": {
"jquery": "~2.1.3",
"pixi": "~2.2.5"
},
"overrides": {}
}
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -16,6 +16,8 @@
"css-brunch": ">= 1.0 < 1.8",
"uglify-js-brunch": ">= 1.0 < 1.8",
"clean-css-brunch": ">= 1.0 < 1.8",
"auto-reload-brunch": ">= 1.0 < 1.8"
"auto-reload-brunch": ">= 1.0 < 1.8",
"coffee-script-brunch": "^1.8.1",
"stylus-brunch": "^1.8.1"
}
}

0 comments on commit ff7ab40

Please sign in to comment.