World Wrapping Editor
It was clear from the start that I was going to have to develop editor tools to go with the World Wrapping system so that it wouldn't be a complain pain to use. The main thing was assigning game objects to tiles would have to be automated otherwise it would take the level-designers forever to do it. After some iterations, the editor looked like this:
Each scene with World Wrapping in it has a World Manager that manages the tiles of the system and moves them according to the player's position. The editor can manipulate the World Manager and therefore the tiles.
"Create World Tiles" does just that. It creates the array of world tiles based on the dimensions defined in the attached World Manager.
"Assign Game Objects" assigns every game object in the scene (with some exceptions) to a corresponding world tile based on the objects x and z positions.
"Resize World Array" will create a new world tile array with the given dimensions.
"Resize Tiles" will change the size of the tiles themselves. The default size of a tile is 100x100 units. This will also adjust the scale of the visuals so that they match.
"Toggle Visuals" will disable the Mesh Renderers of the tiles. The visuals of the tiles have no functional purpose to the system, but make it easier to visualize what gameobjects are attacked to what tile.
"Delete Tiles" will delete all the tiles in the array. This is done without deleting all the gameobjects attached to the tiles. This was mostly added while the kinks were still getting worked out, since having to delete and recreate the world tile array happened more frequently and needing to remove all the gameobjects so they wouldn't also be deleted takes a while.
The editor has proven very useful and may be expanded in the future if more functionality is needed.
Thanks for reading!
- Matt
Get Space Shepherd
Space Shepherd
An open world casual simulation game
Status | In development |
Author | SpaceShepherd |
Genre | Simulation, Adventure |
Tags | 3D, Casual, sheep |
More posts
- World Wrapping - UpdateApr 30, 2021
- The Original Intention of the GameApr 16, 2021
- World WrappingApr 16, 2021
- How we make the decisionsApr 16, 2021
- Working with the teamApr 16, 2021
- Marketing PlanApr 16, 2021
Leave a comment
Log in with itch.io to leave a comment.