Commit 6d6f0fda authored by Renato Alves's avatar Renato Alves 🌱
Browse files

Add several coders

parent 6c54f499
......@@ -51,9 +51,7 @@ ENEMIES:
To remove:
TODO:
squirrel sprites and replace with skeleton2
human, replace deathknight with something like "scientist" (but this ones needs to be animated.
DEAN!! -> need to replace the boss
Question on "Do you really wish to Borkxit?" when http://stackoverflow.com/a/1632004
......
......@@ -160,8 +160,16 @@ define(['mobs', 'items', 'npcs', 'warrior', 'chest'], function(Mobs, Items, NPCs
return new NPCs.Villager(id);
};
EntityFactory.builders[Types.Entities.CODER] = function(id) {
return new NPCs.Coder(id);
EntityFactory.builders[Types.Entities.CODER1] = function(id) {
return new NPCs.Coder1(id);
};
EntityFactory.builders[Types.Entities.CODER2] = function(id) {
return new NPCs.Coder2(id);
};
EntityFactory.builders[Types.Entities.CODER3] = function(id) {
return new NPCs.Coder3(id);
};
EntityFactory.builders[Types.Entities.AGENT] = function(id) {
......
......@@ -64,7 +64,7 @@ function(InfoManager, BubbleManager, Renderer, Map, Animation, Sprite, AnimatedT
// sprites
this.spriteNames = ["hand", "sword", "loot", "target", "talk", "sparks", "shadow16", "rat", "skeleton", "skeleton2", "spectre", "boss", "deathknight",
"ogre", "crab", "snake", "eye", "bat", "goblin", "wizard", "guard", "king", "villagegirl", "villager", "coder", "agent", "rick", "scientist", "nyan", "priest",
"ogre", "crab", "snake", "eye", "bat", "goblin", "wizard", "guard", "king", "villagegirl", "villager", "coder1", "coder2", "coder3", "agent", "rick", "scientist", "nyan", "priest",
"sorcerer", "octocat", "beachnpc", "forestnpc", "desertnpc", "lavanpc", "clotharmor", "leatherarmor", "mailarmor",
"platearmor", "redarmor", "goldenarmor", "firefox", "death", "sword1", "axe", "chest",
"sword2", "redsword", "bluesword", "goldensword", "item-sword2", "item-axe", "item-redsword", "item-bluesword", "item-goldensword", "item-leatherarmor", "item-mailarmor",
......
......@@ -127,7 +127,36 @@ define(['character'], function(Character) {
'Check out <a target="_blank" href="https://git.embl.de/ralves/dataquest">the repository on Git@EMBL</a>'
],
"coder": [
"coder1": [
"Hi there!",
"Am I using a Mac you ask?",
"Why yes I am, isn't that what all scientists use?",
"I don't know why myself...",
"I guess it's shiny, looks nice and is expensive!",
"For sure these are enough reasons",
'Oh and <a target="_blank" href="http://papersapp.com">Papers</a> and <a target="_blank" href="http://www.sonnysoftware.com">Bookends</a>',
"I heard they are really good!",
"And want to know something cool?",
"Try playing DataQuest on your mobile phone.",
"Go on, give it a try..."
],
"coder2": [
"Hi there!",
"Sorry aAm I using a Mac you ask?",
"Am I using a Mac you ask?",
"Why yes I am, isn't that what all scientists use?",
"I don't know why myself...",
"I guess it's shiny, looks nice and is expensive!",
"For sure these are enough reasons",
'Oh and <a target="_blank" href="http://papersapp.com">Papers</a> and <a target="_blank" href="http://www.sonnysoftware.com">Bookends</a>',
"I heard they are really good!",
"And want to know something cool?",
"Try playing DataQuest on your mobile phone.",
"Go on, give it a try..."
],
"coder3": [
"Hi there!",
"Am I using a Mac you ask?",
"Why yes I am, isn't that what all scientists use?",
......
......@@ -39,9 +39,21 @@ define(['npc'], function(Npc) {
}
}),
Coder: Npc.extend({
Coder1: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.CODER, 1);
this._super(id, Types.Entities.CODER1, 1);
}
}),
Coder2: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.CODER2, 1);
}
}),
Coder3: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.CODER3, 1);
}
}),
......
......@@ -8,7 +8,9 @@ define(['text!../sprites/agent.json',
'text!../sprites/boss.json',
'text!../sprites/chest.json',
'text!../sprites/clotharmor.json',
'text!../sprites/coder.json',
'text!../sprites/coder1.json',
'text!../sprites/coder2.json',
'text!../sprites/coder3.json',
'text!../sprites/crab.json',
'text!../sprites/death.json',
'text!../sprites/deathknight.json',
......
{
"id": "coder",
"id": "coder1",
"width": 24,
"height": 24,
"animations": {
......
{
"id": "coder2",
"width": 24,
"height": 24,
"animations": {
"idle_down": {
"length": 2,
"row": 0
}
},
"offset_x": -4,
"offset_y": -7
}
{
"id": "coder3",
"width": 24,
"height": 24,
"animations": {
"idle_down": {
"length": 2,
"row": 0
}
},
"offset_x": -4,
"offset_y": -7
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -80,7 +80,9 @@ Types = {
FORESTNPC: 52,
DESERTNPC: 53,
LAVANPC: 54,
CODER: 55,
CODER1: 55,
CODER2: 56,
CODER3: 57,
// Weapons
SWORD1: 60,
......@@ -142,7 +144,9 @@ var kinds = {
guard: [Types.Entities.GUARD, "npc", "guard"],
villagegirl: [Types.Entities.VILLAGEGIRL, "npc", "villagegirl"],
villager: [Types.Entities.VILLAGER, "npc", "villager"],
coder: [Types.Entities.CODER, "npc", "coder"],
coder1: [Types.Entities.CODER1, "npc", "coder"],
coder2: [Types.Entities.CODER2, "npc", "coder"],
coder3: [Types.Entities.CODER3, "npc", "coder"],
scientist: [Types.Entities.SCIENTIST, "npc", "scientist"],
priest: [Types.Entities.PRIEST, "npc", "priest"],
king: [Types.Entities.KING, "npc", "king"],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment