# Deployed apps should consider commenting this line out:
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
node_modules
-bower_modules
+bower_components
Just run `engine.update(dt)` in your game loop :D
+## Checking it in the frontend (dev).
+
+You can link the bower package (bower.json is in `lib/serpentity/` to
+make paths cleaner), then link it again from the root directory and
+spawn a python server (`python -m SimpleHTTPServer`). The test page
+will be available in `http://localhost:8000/browser_test/`
+
+If you just want to use it, it's available as a bower package!
+
+
## TO-DO
* Removing components
<html>
<head>
<title>Serpentity Browser Test</title>
- <script src="/node_modules/neon/neon.js"></script>
- <script src="/lib/serpentity/serpentity.js"></script>
- <script src="/lib/serpentity/entity.js"></script>
- <script src="/lib/serpentity/node.js"></script>
- <script src="/lib/serpentity/node_collection.js"></script>
- <script src="/lib/serpentity/component.js"></script>
- <script src="/lib/serpentity/system.js"></script>
+ <script src="/bower_components/neon/neon.js"></script>
+ <script src="/bower_components/serpentity/serpentity.js"></script>
+ <script src="/bower_components/serpentity/entity.js"></script>
+ <script src="/bower_components/serpentity/node.js"></script>
+ <script src="/bower_components/serpentity/node_collection.js"></script>
+ <script src="/bower_components/serpentity/component.js"></script>
+ <script src="/bower_components/serpentity/system.js"></script>
<script type="application/javascript">
/////////////////
// Load the stuff
],
"description": "A simple entity framework inspired by ash",
"main": [
- "./lib/serpentity/serpentity.js",
- "./lib/serpentity/entity.js",
- "./lib/serpentity/node.js",
- "./lib/serpentity/node_collection.js",
- "./lib/serpentity/component.js",
- "./lib/serpentity/system.js"
+ "./serpentity.js",
+ "./entity.js",
+ "./node.js",
+ "./node_collection.js",
+ "./component.js",
+ "./system.js"
],
"keywords": [
"entity"
{
- "name" : "serpentity",
- "description" : "A simple entity framework inspired by ash",
- "version" : "0.1.3",
- "contributors" : [
+ "name": "serpentity",
+ "description": "A simple entity framework inspired by ash",
+ "version": "0.1.3",
+ "contributors": [
{
- "name" : "Ben Beltran",
- "email" : "ben@nsovocal.com",
- "url" : "http://nsovocal.com"
+ "name": "Ben Beltran",
+ "email": "ben@nsovocal.com",
+ "url": "http://nsovocal.com"
}
],
- "repository" : {
- "type" : "git",
- "url" : "https://github.com/benbeltran/serpentity.git"
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/benbeltran/serpentity.git"
},
- "dependencies" : {
- "neon" : "2.0.x"
+ "dependencies": {
+ "neon": "2.0.x"
},
- "devDependencies" : {
- "colors" : "0.6.2",
- "tellurium" : "2.0.x"
+ "devDependencies": {
+ "colors": "0.6.2",
+ "tellurium": "2.0.x"
},
- "engines" : { "node" : ">= 0.10.0" },
- "main" : "./lib/serpentity/serpentity.js"
+ "engines": {
+ "node": ">= 0.10.0"
+ },
+ "main": "./lib/serpentity/serpentity.js"
}
-