Climb the Tower

NameTest
HP10
Strength2
Constitution2
Dexterity1
Intelligence1
Wisdom1

dev notes

My first job is to make some notes about this project.

The object of the game is to make it to the top of the tower and win your prize whatever that may be.

For this we want to first make a character. Class selection can come later. For now, all characters will be warriors.

We're going to level up as we go, but we're going to start at level one.

For this we'll need some stats. Let's go very basic. You have: Strength, Defence, Magic Power, Magic Defence, and Speed. There might be Luck later. We'll see if we need it.

Right. Let's start by looking up how to make a class in JavaScript because I have definitely forgotten.

Okay having created a base character class I immediately want to blow it up to be extensible. We are gonna want multiple classes and to level up.

So what I want is to plug in a name, class, and level, and have the code figure out stats from there. Awesome.

We definitely want level to be a variable because I'm going to use this class for enemies too. Okay. But players start at level 1.

Okay start should ask the player for their name. We need a text box and a submit button.