Adventure 1 looks pretty good now!
This commit is contained in:
parent
38af9a533e
commit
e0dc2dd2d0
3 changed files with 14 additions and 14 deletions
BIN
assets/adv01/adv01_bg.jpg
Normal file
BIN
assets/adv01/adv01_bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
|
@ -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();
|
||||
}
|
|
@ -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();});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue