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

Feat/map2 #133

Merged
merged 70 commits into from
Feb 11, 2021
Merged

Feat/map2 #133

merged 70 commits into from
Feb 11, 2021

Conversation

oskarrough
Copy link
Owner

@oskarrough oskarrough commented Dec 26, 2020

This PR adds a dynamic, dare I say procedural, map. It is flexible in size, responsive in layout and has drawn paths on top using SVG.

  1. A function createGraph that creates a 2d array. This will have to be somehow merged into our Dungeon.
  2. A <slay-map> custom element that renders this graph as a map AND draws the paths on top

Currently everything is in index.html, because that page has livereload... We need to

  • move from index.html to map overlay
  • remove accidental changes to tests/{game/dungeon}
  • find a way to integrate it with the game logic/dungeon
  • implement logic that allows you to select a path
  • probably many more things...
  • the svg paths are not "responsive" like the map, so when you resize the window nothing fits anymore. Need to either make it responsive or some resize observer that updates the path

Closes #28

@oskarrough oskarrough self-assigned this Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map generation
1 participant