Skip to content

Commit

Permalink
Aaaaand final level
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezzamonn committed Oct 3, 2021
1 parent 044bde0 commit 878503c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
Binary file added src/static/levels/move-tower.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/levels/unstable.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/ts/game/entity/dog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class Dog extends Entity {
// TODO: These maxes should probably have dt worked into them somehow.
// Also the 0.3 multipliers need to be updated for slowmo.
if (this.upDog) {
const maxXDistAllowed = physFromPx(8);
const maxXDistAllowed = physFromPx(5);

const desiredMidX = this.midX;
const xDiff = desiredMidX - this.upDog.midX;
Expand Down
2 changes: 2 additions & 0 deletions src/ts/game/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ const LEVELS = [
"dogs-on-head",
"double-jump",
"select-a-dog",
"unstable",
"multibone",
"getting-stuck",
"testlevel",
"move-tower",
"win",
];

Expand Down
7 changes: 5 additions & 2 deletions src/ts/game/level.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ const FONT_NAME = `${FONT_SIZE}px Babyblocks`;

const HINTS: {[key: string]: string} = {
'intro': `Ooh, a bone! Let's get it!\n\nArrow keys or WASD to move\nSpace or Z to jump`,
'double-jump': `With a dog on your head, jump in mid air to do a double jump`,
'select-a-dog': `Press up and down to change which dog you'll be when you\nsplit off with a double jump`,
'dogs-on-head': `Hm. This one is too high to jump to...`,
'double-jump': `With a dog on your head, jump in midair to do a double jump`,
'select-a-dog': `Press up and down to change which dog you'll be when you split off`,
'multibone': `Ooh! More bones! We have to get them ALL!\n\nPress R to reset`,
'getting-stuck': `If I'm alone and I get a bone, I'm not moving!\nYou'll have to reset the level with R.`,
'unstable': `Turns out a tower of dogs is pretty unstable...`,
'move-tower': `This game needs more dogs`,
'win': `You win!\nWelcome to the dog playground!`,
};

Expand Down

0 comments on commit 878503c

Please sign in to comment.