Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dungeon #26

Merged
merged 41 commits into from
Mar 6, 2020
Merged

Dungeon #26

merged 41 commits into from
Mar 6, 2020

Conversation

oskarrough
Copy link
Owner

@oskarrough oskarrough commented Feb 29, 2020

Right now there is one monster to fight and it is hardcoded as state.monster. Instead of this, I want to introduce the concepts from Slay The Spire.

You enter a dungeon. Each dungeon has a randomly generated path of encounters. There are different encounters like battle, campfire and shop. Although I think we ignore shop for now.

Is battle the right word?

This also means that creating and setting a dungeon should be introduced as a required step when when starting a new game.

@oskarrough oskarrough changed the title WIP Dunageon Feb 29, 2020
@oskarrough oskarrough changed the title Dunageon Dungeon Feb 29, 2020
@oskarrough
Copy link
Owner Author

Screenshot 2020-03-01 at 09 14 00

@vercel vercel bot requested a deployment to Preview March 2, 2020 12:26 Abandoned
@oskarrough
Copy link
Owner Author

This PR now…

  • supports a target argument to playCard
  • replaced changeHealth with addHealth and removeHealth
  • adds a Dungeon with monster and campfire rooms
  • adds a monster function
  • changes the entire game state to support this "dungeon" structure. Before we relied on a single monster

@oskarrough
Copy link
Owner Author

Let's see if we can make it nicer before merging. Time to self-review.

public/game/actions.js Outdated Show resolved Hide resolved
public/game/actions.js Show resolved Hide resolved
public/game/actions.js Outdated Show resolved Hide resolved
import {uuid} from './utils.js'

// A dungeon is where the adventure starts. It has a path of rooms, you know where you are and you can continue to the next room.
export default function Dungeon(props) {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax is not so nice with all the this. can we do better?

public/game/utils.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant