Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions packages/warriorjs-tower-baby-steps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,35 @@ warriorjs
```

For more in depth documentation see: https://warrior.js.org/docs/player/towers.

## Levels

### Level 3: Healing Intro

_You sense a larger sludge ahead, but you feel a bit weaker than usual._

> **TIP:** You must heal between battles! Use `warrior.health()` to check your
> health and `warrior.rest()` to regain health before fighting the second
> sludge.

#### Floor Map

```
╔══════╗
║@ s s>║
╚══════╝

@ = Warrior (10 HP)
s = Sludge (12 HP)
> = stairs
```

#### Abilities

- `warrior.health()`: Returns your current health.
- `warrior.rest()`: Regain 10% of max health (2 HP per rest).
- `warrior.walk()`: Move forward.
- `warrior.attack()`: Attack a unit in front.

_All subsequent levels are shifted up by one (old Level 3 → 4, etc.) to maintain
progression._
44 changes: 44 additions & 0 deletions packages/warriorjs-tower-baby-steps/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,50 @@ export default {
],
},
},
// Healing Intro Level (new Level 3)
{
description:
'You sense a larger sludge ahead, but you feel a bit weaker than usual.',
tip:
'You must heal between battles! Use `warrior.health()` to check your health and `warrior.rest()` to regain health before fighting the second sludge.',
clue:
"When there's no enemy ahead of you, call `warrior.rest()` until your health is full before walking forward.",
timeBonus: 30,
aceScore: 40,
floor: {
size: {
width: 6,
height: 1,
},
stairs: {
x: 5,
y: 0,
},
warrior: {
...Warrior,
abilities: {
health: health(),
rest: rest({ healthGain: 0.1 }),
},
position: {
x: 0,
y: 0,
facing: EAST,
},
health: 10, // low health to require healing
},
units: [
{
...Sludge,
position: { x: 2, y: 0, facing: WEST },
},
{
...Sludge,
position: { x: 4, y: 0, facing: WEST },
},
],
},
},
{
description:
'The air feels thicker than before. There must be a horde of sludge.',
Expand Down