Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

map name generation fixed

  • Loading branch information...
commit 563f493720a560dae085dafd567d4169c74be852 1 parent f6c58e0
@jomoho authored
View
2  levels.js
@@ -83,7 +83,7 @@ function getData(data){
return data;
};
LevelSchema = new Schema({
- 'name': {type: String, 'default': initName()},
+ 'name': {type: String, 'default': initName},
'date': {type: Date, 'default': Date.now},
'lastUpdate': {type: Date, 'default': Date.now},
'creator': {type: Schema.ObjectId},
View
3  server.js
@@ -307,9 +307,6 @@ app.post('/login', all, function(req, res){
app.get('/logout', login, function(req, res){
delete req.session.user;
req.session.regenerate(function(err){
-
- //delete req.session.user;
- //req.session.user =;
res.redirect('/');
});
});
View
9 static/css/style.css
@@ -29,9 +29,14 @@ a:hover{
display: block;
}
.flash{
- border: 2px solid #fe0e00;
margin: 8px auto;
- background: #fefecc;
+ background: rgba(255, 32, 0, 0.5);
+ -moz-border-radius: 8px;
+ -webkit-border-radius: 8px;
+ border-radius: 8px;
+ color: white;
+ font-size: 17px;
+ font-weight: bold;
}
#head{
background: url('/img/jomoho_profile_64.png') transparent no-repeat;
View
3  static/js/Level.js
@@ -1,4 +1,5 @@
-define(['jo/jo', 'jo/TileMap'],function(jo, TileMap){
+define(['jo/jo', 'jo/TileMap'],function(jo, TileMap){
+ //level
var lvl = TileMap.extend({
entities: [],
add: function(entity){
View
2  static/js/cloning/game.js
@@ -19,7 +19,7 @@ define(['../jo/jo',
'img/tileset.png',
], '/js/cloning/');
}, true);
-
+
game.ready(function(){
game.state = 'start';
game.cam = new jo.Camera();
Please sign in to comment.
Something went wrong with that request. Please try again.