Skip to content

Commit

Permalink
Another NPC look
Browse files Browse the repository at this point in the history
  • Loading branch information
hubol committed Aug 6, 2024
1 parent 18f9c43 commit acc6a31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 151 deletions.
1 change: 1 addition & 0 deletions src/igua/iguana/npc-looks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ export const NpcLooks = {
Rugby: {head:{color:0x5381e2,placement:{x:0,y:-5},crest:{shape:6,color:0xfeca53,placement:{x:0,y:0},flipV:false,flipH:false},eyes:{placement:{x:0,y:0},gap:1,tilt:0,pupils:{mirrored:true,placement:{x:-1,y:0}},left:{sclera:{},eyelid:{color:0x1b5de7,placement:0},pupil:{shape:8,color:0x4a1b09,placement:{x:0,y:0},flipH:false}},right:{sclera:{},eyelid:{color:0x1b5de7,placement:0},pupil:{shape:8,color:0x4a1b09,placement:{x:0,y:0},flipH:false}}},horn:{shape:3,color:0xfeca53,placement:{x:0,y:0}},mouth:{shape:1,color:0x4a1b09,placement:{x:0,y:0},flipV:false}},body:{color:0x4a1b09,placement:{x:0,y:0},tail:{shape:1,color:0xaa6e8d,placement:{x:-5,y:0},club:{shape:0,color:0x6e280d,placement:{x:7,y:14}}}},feet:{fore:{left:{shape:5,color:0x5381e2,claws:{color:0x1b5de7,shape:1,placement:2}},right:{shape:5,color:0x5381e2,claws:{color:0x1b5de7,shape:1,placement:2}}},hind:{left:{shape:5,color:0x5381e2,claws:{color:0x1b5de7,shape:1,placement:2}},right:{shape:5,color:0x5381e2,claws:{color:0x1b5de7,shape:1,placement:2}}},gap:2,backOffset:3}},
HighIq: {head:{color:0x5381e2,placement:{x:0,y:-5},crest:{shape:4,color:0xf2ae1f,placement:{x:9,y:-4},flipV:false,flipH:false},eyes:{placement:{x:0,y:0},gap:2,tilt:0,pupils:{mirrored:true,placement:{x:-1,y:-1}},left:{sclera:{},eyelid:{color:0x1b5de7,placement:1},pupil:{shape:11,color:0x4a1b09,placement:{x:0,y:0},flipH:false}},right:{sclera:{},eyelid:{color:0x1b5de7,placement:1},pupil:{shape:11,color:0x6e280d,placement:{x:0,y:0},flipH:false}}},horn:{shape:4,color:0x6e280d,placement:{x:-1,y:4}},mouth:{shape:2,color:0x4a1b09,placement:{x:0,y:1},flipV:false}},body:{color:0x4a1b09,placement:{x:0,y:0},tail:{shape:3,color:0x6e280d,placement:{x:-5,y:0},club:{shape:3,color:0x6e280d,placement:{x:2,y:7}}}},feet:{fore:{left:{shape:1,color:0x5381e2,claws:{color:0x1b5de7,shape:0,placement:3}},right:{shape:1,color:0x6e280d,claws:{color:0x4a1b09,shape:0,placement:3}}},hind:{left:{shape:4,color:0x5381e2,claws:{color:0x1b5de7,shape:0,placement:3}},right:{shape:4,color:0x5381e2,claws:{color:0x1b5de7,shape:0,placement:3}}},gap:6,backOffset:4}},
Goldilocks: {head:{color:0xf2ae1f,placement:{x:0,y:-5},crest:{shape:5,color:0xf7e153,placement:{x:7,y:-6},flipV:true,flipH:false},eyes:{placement:{x:0,y:0},gap:1,tilt:0,pupils:{mirrored:true,placement:{x:-1,y:0}},left:{sclera:{},eyelid:{color:0x640129,placement:3},pupil:{shape:11,color:0x640129,placement:{x:0,y:1},flipH:false}},right:{sclera:{},eyelid:{color:0x640129,placement:3},pupil:{shape:11,color:0x640129,placement:{x:0,y:1},flipH:false}}},horn:{shape:4,color:0xe8da81,placement:{x:-1,y:-8}},mouth:{shape:1,color:0x640129,placement:{x:0,y:0},flipV:false}},body:{color:0xf2ae1f,placement:{x:0,y:0},tail:{shape:0,color:0x640129,placement:{x:0,y:0},club:{shape:3,color:0xe8da81,placement:{x:-4,y:5}}}},feet:{fore:{left:{shape:4,color:0x640129,claws:{color:0xf2ae1f,shape:0,placement:3}},right:{shape:4,color:0x640129,claws:{color:0xf2ae1f,shape:0,placement:3}}},hind:{left:{shape:3,color:0x640129,claws:{color:0x45011c,shape:2,placement:-2}},right:{shape:3,color:0x640129,claws:{color:0x45011c,shape:2,placement:-2}}},gap:4,backOffset:3}},
Satisfier: {head:{color:0xa5a17e,placement:{x:0,y:-5},crest:{shape:0,color:0xe5c2d,placement:{x:0,y:0},flipV:false,flipH:false},eyes:{placement:{x:0,y:0},gap:1,tilt:0,pupils:{mirrored:true,placement:{x:-1,y:1}},left:{sclera:{},eyelid:{color:0x999357,placement:2},pupil:{shape:7,color:0x10a0f,placement:{x:0,y:0},flipH:false}},right:{sclera:{},eyelid:{color:0x999357,placement:2},pupil:{shape:7,color:0x10a0f,placement:{x:0,y:0},flipH:false}}},horn:{shape:-1,color:0xe5c2d,placement:{x:0,y:0}},mouth:{shape:0,color:0x10a0f,placement:{x:0,y:0},flipV:false}},body:{color:0x2454ae,placement:{x:0,y:0},tail:{shape:1,color:0xe5c2d,placement:{x:-7,y:0},club:{shape:2,color:0x2454ae,placement:{x:0,y:-3}}}},feet:{fore:{left:{shape:5,color:0x999357,claws:{color:0xe2dfbf,shape:0,placement:2}},right:{shape:5,color:0x999357,claws:{color:0xe2dfbf,shape:0,placement:2}}},hind:{left:{shape:0,color:0x999357,claws:{color:0xe2dfbf,shape:0,placement:2}},right:{shape:0,color:0x999357,claws:{color:0xe2dfbf,shape:0,placement:2}}},gap:2,backOffset:3}},
} satisfies Record<string, IguanaLooks.Serializable>;
154 changes: 3 additions & 151 deletions src/igua/scenes/player-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { Lvl } from "../../assets/generated/levels/generated-level-data";
import { sleep } from "../../lib/game-engine/promise/sleep";
import { objStatusBar } from "../objects/obj-status-bar";
import { RpgProgress } from "../rpg/rpg-progress";
import { objAngelBouncing } from "../objects/enemies/obj-angel-bouncing";

export function PlayerTest() {
Sprite.from(Tx.Placeholder).at(128, 128 - 14).mixin(mxnCutscene, async () => {
Expand Down Expand Up @@ -43,155 +44,6 @@ export function PlayerTest() {
if (Input.justWentDown('Jump'))
console.log(JSON.parse(JSON.stringify(RpgProgress)))
})
}

const playerLooksJson = {
"head": {
"color": 10854782,
"placement": {
"x": 0,
"y": -5
},
"crest": {
"shape": 0,
"color": 941101,
"placement": {
"x": 0,
"y": 0
},
"flipV": false,
"flipH": false
},
"eyes": {
"placement": {
"x": 0,
"y": 0
},
"gap": 1,
"tilt": 0,
"pupils": {
"mirrored": true,
"placement": {
"x": -1,
"y": 1
}
},
"left": {
"sclera": {},
"eyelid": {
"color": 10064727,
"placement": 2
},
"pupil": {
"shape": 7,
"color": 68111,
"placement": {
"x": 0,
"y": 0
},
"flipH": false
}
},
"right": {
"sclera": {},
"eyelid": {
"color": 10064727,
"placement": 2
},
"pupil": {
"shape": 7,
"color": 68111,
"placement": {
"x": 0,
"y": 0
},
"flipH": false
}
}
},
"horn": {
"shape": -1,
"color": 941101,
"placement": {
"x": 0,
"y": 0
}
},
"mouth": {
"shape": 0,
"color": 68111,
"placement": {
"x": 0,
"y": 0
},
"flipV": false
}
},
"body": {
"color": 2380974,
"placement": {
"x": 0,
"y": 0
},
"tail": {
"shape": 1,
"color": 941101,
"placement": {
"x": -7,
"y": 0
},
"club": {
"shape": 2,
"color": 2380974,
"placement": {
"x": 0,
"y": -3
}
}
}
},
"feet": {
"fore": {
"left": {
"shape": 5,
"color": 10064727,
"claws": {
"color": 14868415,
"shape": 0,
"placement": 2
}
},
"right": {
"shape": 5,
"color": 10064727,
"claws": {
"color": 14868415,
"shape": 0,
"placement": 2
}
}
},
"hind": {
"left": {
"shape": 0,
"color": 10064727,
"claws": {
"color": 14868415,
"shape": 0,
"placement": 2
}
},
"right": {
"shape": 0,
"color": 10064727,
"claws": {
"color": 14868415,
"shape": 0,
"placement": 2
}
}
},
"gap": 2,
"backOffset": 3
}
};
objAngelBouncing().at(playerObj).add(40, -16).show();
}

0 comments on commit acc6a31

Please sign in to comment.