diff --git a/TODO b/TODO index 9277af5..b9063df 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,14 @@ ToDo for JSDSH: - Implement FrontEnd (Add Player, etc) ? - - Implement Player, Creatures - Background and Wall Editing/Importing - - Shoot, Attack + - Basic Modifiers + - on-the-fly-adding of characters + - traps etc. + - JSON instead of JavaScript importing + - second adventure + - "walking" distance (show with circle?) + - add avatars for players and monsters + - attack distance + - Testvalues > 20 + - Objects: Pass object to initializer + - Hitbox on "things" diff --git a/assets/adv01/adv_01.js b/assets/adv01/adv01.js similarity index 90% rename from assets/adv01/adv_01.js rename to assets/adv01/adv01.js index a12d580..b1ca256 100644 --- a/assets/adv01/adv_01.js +++ b/assets/adv01/adv01.js @@ -1,10 +1,10 @@ { + // Setup play area start_init(400,387); - - var wall = []; - Crafty.background("url('/assets/adv01/adv01_bg.jpg') 100% 0"); + // Ojects get saved within an array primary for easier debugging + var wall = []; wall.push(Crafty.e("Wall").wall(0,0,150,37)); wall.push(Crafty.e("Wall").wall(242, 0, 160,39)); wall.push(Crafty.e("Wall").wall(130, 0, 115,11)); @@ -13,9 +13,10 @@ wall.push(Crafty.e("Wall").wall(40, 377, 360,10)); wall.push(Crafty.e("Wall").wall(390,0,10,387)); - var cur_sel; + var cur_sel; // "Pointer" to current selected creature var player={}; + /* iniitialize Players and creatures */ player["Gesina"]=new Player({"pname":"Gesina", "cname":"Aknya", "class":"Zauberin", "level":0, "experience":0, "race":"Mensch", "size":2}, {"body":6, "agility":6, "spirit":8}, @@ -41,6 +42,5 @@ {"x":200,"y":80,"w":20,"h":20,"col":"red"}, {"life": 8, "defense": 7, "ini":9, "walk":4.5, "melee":7, "shoot":0, "chant":0, "shoot_chant":0}); - end_init(); } diff --git a/index.html b/index.html index e06d00e..0ec7224 100644 --- a/index.html +++ b/index.html @@ -14,11 +14,12 @@
+ + -