This was an interesting week. Most importantly the next tutorial article is out! Take a look at it here. Commenting was also enabled on the site so you can leave your 2 cents there. This article is an in-depth guide to design a game UI, and generate a game world (caves in our case). In the next we’ll explore input handling and add a simple ECS(ish) library to the project.
For Caves of Zircon:
- We finalized the Zircon splash screen! Take a look here. We had several versions previously and we kept this in the end. It was also added to the game. These gifs are actual game footage.
- There were also some small problems which were fixed (the
LogArea
bug for example which I detail below).
For Zircon:
- All components now support data binding! This means that the problem which most of you mentioned (immutable components) is now history! The properties which can be changed were also extracted into a separate behavior. Each property can have listeners attached to it so you can listen to changes.
- We did the same with selections. Now you can do
isSelected
andsetSelected
and listen to the selection event withonSelectionChanged
. So what this means is that now you can do all 3 operations ontext
andselection
values which we intended to add: listen on changes, get/set values and bind properties. Binding is very simple. All you have to do to bindfooLabel
’s text tobarLabel
is to dofooLabel.textProperty.bind(barLabel.textProperty)
We’ll add a convenience feature later which will look like thisfooLabel.bindTextPropertyTo(barLabel)
Icon
s now support any kind ofTile
not justGraphicTile
. Thetile
of anIcon
is aProperty
so you can change and/or bind it on the fly- Fixed a bug in
Size
which testedPosition
containment - A bug was fixed which occurred when no
size
was set forTextArea
s. Now it is mandatory (as it was intended originally) LogArea
had a bug which prevented it to be properly wrapped with a box. Now this works.- The default width of a
TextBox
is now1
(it was0
originally) so now it is not possible to get an exception because of a division by 0. View
s now have a default value fortheme
s so you don’t need to specify it if you don’t want to- All of this is present in the latest preview version of Zircon!.
Do you have questions? Ask us on our Discord Server.
If you like what we do and want to support us consider becoming a Patron.