Closed pensivepixel closed 4 years ago
Okay, I drew up an interference map for level 1. I'm going to convert it to JSON next.
Blue: Character Green: Goal Black: Can stand on Red: Triggers restart
Finished the initial design for interferenceMap.JSON. Check out e620e00348e14d44bd9a49913da2d4cc51c48bf9 https://github.com/pensivepixel/Cat-Video-Game/blob/master/Levels/Level-1/interferenceMap.JSON
Update: I added the bounding boxes to the interference map. This is important for locating the dynamic objects' interference areas.
Created custom interference areas for each animation.
Encoded interference map from Figma into /levels/x/interferenceMap.JSON.
Was thinking of having the format be an SVG so I could export straight from Figma and put it right into the program. However, after a little bit of research, there is no built-in way to convert the string version of an SVG to JSON. Doing this requires custom code. I could copy and paste it from somewhere else, but right now, I don't think it is worth the effort for this small feature. For now, the map should just be JSON, even if we have to write it ourselves.