Illustrating adjusting various colors/fog settings and previewing them in editor.
Summary
Adds new entity LevelInfo which is an adapter to allow us to more easily set various fields on the level in the editor. The biggest change is it allows more control over the lighting conditions of the level.
π Implementation Notes
Implemented entity fields as static class fields. This is to handle the case of adding multiple LevelInfo entities to a level and ensure they will all have the same state.
Created a new package com.interrupt.dungeoneer.entities.infos in case we need to wrap any more non-entities to expose them to the editor.
Shiny new icon!
~Decided not to add the skybox to the LevelInfo for the initial implementation (though this might not be that hard?).~
Added skybox support!
π§ Changes
Fog/ambient light now previewable in editor.
Fixed issue with lighting being broken when exiting play mode in editor.
Remove hacky old code in player that allows setting of fog colors.
Audited areas where we were reassigning objects when we really wanted to just set the color.
Trying to be more smart when loading a non-generated file. The intention here is to allow the fields specified in section.dat to take precedence but also use values saved in the level if not specified in the section.dat file.
Summary
Adds new entity
LevelInfo
which is an adapter to allow us to more easily set various fields on the level in the editor. The biggest change is it allows more control over the lighting conditions of the level.π Implementation Notes
com.interrupt.dungeoneer.entities.infos
in case we need to wrap any more non-entities to expose them to the editor.π§ Changes