Permalink
Browse files

load crafty localy when no connection, remove BaseEntity from src

  • Loading branch information...
ahilles107 committed Apr 25, 2012
1 parent a374568 commit ec9b46e41d365cbb1c6414d334ab6e134bc43fa2
Showing with 18 additions and 19 deletions.
  1. +2 −1 index.html
  2. +1 −0 readme.md
  3. +0 −18 src/BaseEntity.js
  4. +15 −0 src/libs/crafty-0.4.7.js
View
@@ -20,9 +20,10 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="src/libs/jquery-1.7.2.min.js"><\/script>')</script>
+ <script src="//cdn.craftycomponents.com/crafty-release.js"></script>
+ <script>window.Crafty || document.write('<script src="src/libs/crafty-0.4.7.js"><\/script>')</script>
<!-- scripts concatenated and minified via build script -->
- <script src="//cdn.craftycomponents.com/crafty-release.js"></script>
<script src="src/libs/underscore-1.3.4.min.js"></script>
<script src="src/libs/backbone-0.9.2.min.js"></script>
<script src="src/libs/require-jquery.js" data-main="src/game.js"></script>
View
@@ -31,6 +31,7 @@ proposed structure tree:
---- sprites.js -> Sprites definitions
-- web
---- images
+---- css
-- index.html -> Game wrapper
```
View
@@ -1,18 +0,0 @@
-BaseEntity = Backbone.Model.extend({
- defaults: {
- 'entity' : null
- },
- initialize: function(){
-
- },
- getEntity : function(){
- return this.get('entity');
- },
- remove : function(){
- var entity = this.getEntity();
-
- if (entity){
- entity.destroy();
- }
- }
-});
View

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit ec9b46e

Please sign in to comment.