JSDSH/src/adventure_01.js

34 lines
1.1 KiB
JavaScript
Raw Normal View History

{
start_init(300,300);
2014-09-23 17:22:20 +02:00
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={};
2014-09-24 17:16:07 +02:00
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},
2014-09-24 17:16:07 +02:00
{"x":40,"y":40,"w":40,"h":40,"col":"blue"});
// player.push(Crafty.e("Creature").player(40,40,40,40,'red'));
2014-09-24 17:16:07 +02:00
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();
}