Maramarcos / Group10_Zelda_Game

CEN4090L Project of a Zelda-like game
1 stars 0 forks source link

Player Warp #21

Closed ParkerJStone closed 2 years ago

ParkerJStone commented 3 years ago

A player warp is a gameobject that teleports a player to a new location

Create seperate warp info struct that contains the info needed to know where to warp from {where the warp obj is} and {where to warp the player to}

The info struct is for going inside of ChunkData to save/load the warp to the map's save file.

ParkerJStone commented 3 years ago

Loading/Creation of the gameobject should happen in Chunk.cs Creating where the warp should be is similar to the code for stating where a tile should be.