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/assets/adv01/adv_01.js b/assets/adv01/adv_01.js new file mode 100644 index 0000000..a12d580 --- /dev/null +++ b/assets/adv01/adv_01.js @@ -0,0 +1,46 @@ +{ + start_init(400,387); + + var wall = []; + + Crafty.background("url('/assets/adv01/adv01_bg.jpg') 100% 0"); + + 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; + + var player={}; + player["Gesina"]=new Player({"pname":"Gesina", "cname":"Aknya", "class":"Zauberin", "level":0, + "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":15,"y":200,"w":20,"h":20,"col":"rgb(120,0,255"}); + + player["Oliver"]=new Player({"pname":"Oliver", "cname":"Drag", "class":"Krieger", "level":0, + "experience":0, "race":"Mensch", "size":2}, + {"body":8, "agility":6, "spirit":6}, + {"strength":5,"hardness":5,"movement":0,"skill":0,"mind":0,"aura":0}, + {"x":25,"y":230,"w":20,"h":20,"col":"rgb(0,0,255)"}); + + 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":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}); + + player["Gob2"]=new Beast({"pname":"Gob2", "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":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/src/adventure_01.js b/src/adventure_01.js deleted file mode 100644 index 252c914..0000000 --- a/src/adventure_01.js +++ /dev/null @@ -1,33 +0,0 @@ -{ - start_init(300,300); - - var wall = []; - - 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)); - - var cur_sel; - - var player={}; - player["Gesina"]=new Player({"pname":"Gesina", "cname":"Aknya", "class":"Zauberin", "level":0, - "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')); - - - 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"}, - {"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();}); });