Skip to content

Latest commit

 

History

History
120 lines (74 loc) · 2.98 KB

TODO.md

File metadata and controls

120 lines (74 loc) · 2.98 KB

-- OverAll --


[ ] Player "Entity" Class? [√] Player position (Global [√] Player movement

[x] DONE chunk loading/creation when within 7 tiles of edge if chunk is not already created? (2 chunks out?) [√] DONE chunk loading/creation when entering new chunk (perimeter checking for chunks, then generating)

[ ] Rewrite code/ refactor code for classes and proper js modules

[ ] Rewrite the calculation of where a player is by having it mostly be performed on a tile by tile basis (each tile knows what its neighboring tiles are?) - then it can just be a lookup of that tile. This probably should be calculated when each tile is generated.

[ ] Redo the draggable interface [ ] Save panel positions for next load?

Thoughts:

-- Chunk Rendering --


chunk rendering based on parents location on window
chunk rendering order and positions based on previous ^
fix function to be called when moving player (really just move the entire rendered map by one tile in direction the player is facing.)
cleanup conditionals??

abstract drawImage/rect to its own function in renderChunk
  • change to multiple canvas elements?

    Thoughts:



-- Chunk Generating --


[√] fix edges according to next chunk [√] store map in localstorage? [ ] create Room List

Thoughts:
  • Room list [ ] In generating chunks, create room list that recursively checks each tile //if tile already has roomId in it, then skip, //else check right(east) and bottom(south) for open walls, //generate new roomId, //add corresponding tile with open wall to roomId //proceed to check that tiles perimeter (minus the previous tile) //recursive //move to next tile


-- Player Movement --


[ ] Finish Map.discoverTiles and implement in player movement?

Bug:

[ ] discoverTiles error when entering new chunk

[√] Adding null multiple times per row in ChunkGrid [√] hold down forward to go consecutively



------ Cleanup -------


Use tile getters create tile setters use chunkId getters

cleanup player.js move some stuff to functions in player.js


------ Global Tile Grid Positioning -------


Create Global Tile Grid just for referencing in case of future pathfinding quests


----- UI Layout -----


Change size and spacing and position of UI Elements Create function for moving element


----- Bugs -----


Issues:

Fixed:

[√] Adding null to each row each time a new "East" chunk is added - Just needed a new conditional to finish checking for end of each row and if the new chunk would exceed the end of all rows length