pensivepixel / Cat-Video-Game

0 stars 0 forks source link

Create interference map for Level 1 #4

Closed pensivepixel closed 4 years ago

pensivepixel commented 4 years ago

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.

pensivepixel commented 4 years ago

Okay, I drew up an interference map for level 1. I'm going to convert it to JSON next.

Screen Shot 2020-06-20 at 1 38 00 AM

image Blue: Character Green: Goal Black: Can stand on Red: Triggers restart

pensivepixel commented 4 years ago

Finished the initial design for interferenceMap.JSON. Check out e620e00348e14d44bd9a49913da2d4cc51c48bf9 https://github.com/pensivepixel/Cat-Video-Game/blob/master/Levels/Level-1/interferenceMap.JSON

pensivepixel commented 4 years ago

Update: I added the bounding boxes to the interference map. This is important for locating the dynamic objects' interference areas. image

pensivepixel commented 4 years ago

image Created custom interference areas for each animation.

pensivepixel commented 4 years ago

Encoded interference map from Figma into /levels/x/interferenceMap.JSON.