{"author_link":"\/users\/mhgamework","author_name":"MHGameWork","author_uid":"mhgamework","comments":[],"epoch":1494267816,"event":"LD38","format":"md","ldjam_node_id":30468,"likes":4,"metadata":{"p_key":"93004","p_author":"MHGameWork","p_authorkey":"1013546","p_urlkey":"305922","p_title":"Everything's all Wonky!","p_cat":"LDJam ","p_event":"LD38","p_time":"1494267816","p_likes":"4","p_comments":"0","p_status":"WAYBACK","us_key":"1013546","us_name":"MHGameWork","us_username":"mhgamework","event_start":"1492732800","event_key":"69","event_name":"LD 38"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD38","removed_author":false},"_superparent":9405,"_trust":1,"author":13546,"body":"![004.png](\/\/\/raw\/ae4\/3\/z\/40bf.png)\n\nIn [The Wonky Wizard](https:\/\/ldjam.com\/events\/ludum-dare\/38\/the-wonky-wizard) you have to shoot different types of enemies before getting swarmed. The entire game takes place on a on oddly-non flat planet as our interpretation of this editions theme, \"small world\". \n\nYou can [Play and Rate The Wonky Wizard here](https:\/\/ldjam.com\/events\/ludum-dare\/38\/the-wonky-wizard)!\n\n### Art\nWe found some pictures of small low poly planets and immediately fell in love with the look. Putting normal objects on a dis-proportionally small world makes everything look all weird and Wonky!\n\nWe used so called \"Gnomonic projection\" to project from a planar to the spherical surface. This projection has the property normals to flat plane become normals to the sphere, so that it produces a nice cartoonish look.\n\n![Projection.png](\/\/\/raw\/ae4\/3\/z\/40d8.png)\n\nWe developed a custom mesh projection script to project normal 3d models onto a spherical surface. This way we could use normal modelling techniques to create the models for the islands, bridges and props. Bending is performed in the editor so that we can easily build spherical levels directly in the editor.\n\n### Gameplay\nIn the Wonky Wizard there are 3 types of enemies and 3 types of spells. Each enemy is countered by one of the spells so the player can discover and exploit the advantages of each spell.\n\n![EnemiesAndProjectiles.gif](\/\/\/raw\/ae4\/3\/z\/40e4.gif)\n\nOn a spherical level projectiles do not \"fly straight\" like in regular levels. The ice projectile's movement is corrected at each step by so that its velocity is tangential to the sphere. For the grenade the traditional directional gravitation was replaced by a gravitational force to the center of the sphere. In the image below you can see the \"straight\" projectile flying around the globe. \n\n![FastprojectileSmall.gif](\/\/\/raw\/ae4\/3\/z\/40d5.gif)\n\nThe trickiest was the beam spell. For this, we created a \"spherical raycast', by doing multiple raycasts forming a circle. \n\n\n### Level\nBuilding a spherical level proved to be challenging :). Unity's editing tools are not really designed for building spherical levels, so we created some editing tools to easily place, rotate and scale objects on a sphere. \n\n![LevelBuilder4.gif](\/\/\/raw\/ae4\/3\/z\/40e2.gif)\n\nTo build spawn scenes and level logic we created a minimal level scripting system. The behaviour is created by placing invisible objects like checkpoints, triggers, spawners and enemy detectors on the level. These are then all linked together using a small C# co-routine. \n\n\n![LevelScripting.png](\/\/\/raw\/ae4\/3\/z\/40db.png)\n\n### Conclusion\nWe are very happy with the results. Our only regret is that we did not have enough time to implement a whole load of other ideas on our list for this game. But that might still happen in the future ...\n\n[Play and Rate The Wonky Wizard here](https:\/\/ldjam.com\/events\/ludum-dare\/38\/the-wonky-wizard)!\n\n#### References\nhttps:\/\/en.wikipedia.org\/wiki\/Orthographic_projection_in_cartography","comments":0,"created":"2017-05-07T15:50:09Z","files":[],"files-timestamp":0,"id":30468,"love":4,"love-timestamp":"2017-05-09T06:45:16Z","meta":[],"modified":"2017-05-09T06:45:16Z","name":"Everything's all Wonky!","node-timestamp":"2017-05-08T18:23:36Z","parent":16119,"parents":[1,5,9,9405,16119],"path":"\/events\/ludum-dare\/38\/the-wonky-wizard\/everythings-all-wonky","published":"2017-05-08T18:23:36Z","scope":"public","slug":"everythings-all-wonky","subsubtype":"","subtype":"","type":"post","version":80481},"node_metadata":{"n_key":"30468","n_urlkey":"305922","n_parent":"16119","n_path":"\/events\/ludum-dare\/38\/the-wonky-wizard\/everythings-all-wonky","n_slug":"everythings-all-wonky","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"13546","n_created":"1494172209","n_modified":"1494312316","n_version":"80481","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/38\/the-wonky-wizard\/everythings-all-wonky","text":"![004.png](\/\/\/raw\/ae4\/3\/z\/40bf.png)\n\nIn [The Wonky Wizard](https:\/\/ldjam.com\/events\/ludum-dare\/38\/the-wonky-wizard) you have to shoot different types of enemies before getting swarmed. The entire game takes place on a on oddly-non flat planet as our interpretation of this editions theme, \"small world\". \n\nYou can [Play and Rate The Wonky Wizard here](https:\/\/ldjam.com\/events\/ludum-dare\/38\/the-wonky-wizard)!\n\n### Art\nWe found some pictures of small low poly planets and immediately fell in love with the look. Putting normal objects on a dis-proportionally small world makes everything look all weird and Wonky!\n\nWe used so called \"Gnomonic projection\" to project from a planar to the spherical surface. This projection has the property normals to flat plane become normals to the sphere, so that it produces a nice cartoonish look.\n\n![Projection.png](\/\/\/raw\/ae4\/3\/z\/40d8.png)\n\nWe developed a custom mesh projection script to project normal 3d models onto a spherical surface. This way we could use normal modelling techniques to create the models for the islands, bridges and props. Bending is performed in the editor so that we can easily build spherical levels directly in the editor.\n\n### Gameplay\nIn the Wonky Wizard there are 3 types of enemies and 3 types of spells. Each enemy is countered by one of the spells so the player can discover and exploit the advantages of each spell.\n\n![EnemiesAndProjectiles.gif](\/\/\/raw\/ae4\/3\/z\/40e4.gif)\n\nOn a spherical level projectiles do not \"fly straight\" like in regular levels. The ice projectile's movement is corrected at each step by so that its velocity is tangential to the sphere. For the grenade the traditional directional gravitation was replaced by a gravitational force to the center of the sphere. In the image below you can see the \"straight\" projectile flying around the globe. \n\n![FastprojectileSmall.gif](\/\/\/raw\/ae4\/3\/z\/40d5.gif)\n\nThe trickiest was the beam spell. For this, we created a \"spherical raycast', by doing multiple raycasts forming a circle. \n\n\n### Level\nBuilding a spherical level proved to be challenging :). Unity's editing tools are not really designed for building spherical levels, so we created some editing tools to easily place, rotate and scale objects on a sphere. \n\n![LevelBuilder4.gif](\/\/\/raw\/ae4\/3\/z\/40e2.gif)\n\nTo build spawn scenes and level logic we created a minimal level scripting system. The behaviour is created by placing invisible objects like checkpoints, triggers, spawners and enemy detectors on the level. These are then all linked together using a small C# co-routine. \n\n\n![LevelScripting.png](\/\/\/raw\/ae4\/3\/z\/40db.png)\n\n### Conclusion\nWe are very happy with the results. Our only regret is that we did not have enough time to implement a whole load of other ideas on our list for this game. But that might still happen in the future ...\n\n[Play and Rate The Wonky Wizard here](https:\/\/ldjam.com\/events\/ludum-dare\/38\/the-wonky-wizard)!\n\n#### References\nhttps:\/\/en.wikipedia.org\/wiki\/Orthographic_projection_in_cartography","title":"Everything's all Wonky!","wayback_source":[]}