diff --git a/assets/adv01/adv01_bg.jpg b/assets/adv01/adv01_bg.jpg new file mode 100644 index 0000000..37a7b47 Binary files /dev/null and b/assets/adv01/adv01_bg.jpg differ diff --git a/src/adventure_01.js b/assets/adv01/adv_01.js similarity index 55% rename from src/adventure_01.js rename to assets/adv01/adv_01.js index 252c914..4debd86 100644 --- a/src/adventure_01.js +++ b/assets/adv01/adv_01.js @@ -1,12 +1,17 @@ { - start_init(300,300); + start_init(400,387); var wall = []; + + Crafty.background("url('/assets/adv01/adv01_bg.jpg') 100% 0"); - wall.push(Crafty.e("Wall").wall(240,0,10,250)); - //wall.push(Crafty.e("Wall").wall(0,240,240,10)); - wall.push(Crafty.e("Wall").wall(0,0,10,240)); - wall.push(Crafty.e("Wall").wall(10,0,230,10)); + 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)); + wall.push(Crafty.e("Wall").wall(0, 0, 54, 188)); + wall.push(Crafty.e("Wall").wall(0, 274, 53, 113)); + wall.push(Crafty.e("Wall").wall(40, 377, 360,10)); + wall.push(Crafty.e("Wall").wall(390,0,10,387)); var cur_sel; @@ -15,19 +20,14 @@ "experience":0, "race":"Mensch", "size":2}, {"body":6, "agility":6, "spirit":8}, {"strength":0,"hardness":2,"movement":0,"skill":3,"mind":3,"aura":3}, - {"x":40,"y":40,"w":40,"h":40,"col":"blue"}); - -// player.push(Crafty.e("Creature").player(40,40,40,40,'red')); - - + {"x":15,"y":200,"w":20,"h":20,"col":"blue"}); + player["Gob1"]=new Beast({"pname":"Gob1", "experience":71, "race":"Goblin", "size":2}, {"body":11, "agility":6, "spirit":3}, {"strength":2,"hardness":3,"movement":0,"skill":3,"mind":2,"aura":0}, - {"x":90,"y":90,"w":30,"h":30,"col":"red"}, + {"x":355,"y":65,"w":20,"h":20,"col":"red"}, {"life": 8, "defense": 7, "ini":9, "walk":4.5, "melee":7, "shoot":0, "chant":0, "shoot_chant":0}); -/*.push(Crafty.e("Creature").creature("Hobgob1",100,100,30,30,'red'));*/ - end_init(); } diff --git a/src/base_ui.js b/src/base_ui.js index 90c9eb5..53a1e1c 100644 --- a/src/base_ui.js +++ b/src/base_ui.js @@ -1,3 +1,3 @@ $(document).ready( function() { - $('#load').click(function() { $.getScript("src/adventure_01.js"); $('#load').hide();}); + $('#load').click(function() { $.getScript("/assets/adv01/adv_01.js"); $('#load').hide();}); });