Adding tilemap layer feature, part 1 - Tilemap Editor - Part 4
Автор: Lumorsunil
Загружено: 2025-02-24
Просмотров: 42
Описание:
In this three-part mini series, we aim to add a feature to our game and editor that enables us to layer tilemaps.
This is some work that needs to be done for the demo village milestone.
Repo for editor project: https://github.com/lumorsunil/zig-gam...
https://github.com/lumorsunil
/ discord
/ lumorsunil
I'm using:
Zig 0.13.0
lumorsunil/zxg: https://github.com/lumorsunil/zxg - My wrapper around ImGui + Raylib + zgui + rlImGui
fabioarnold/nfd-zig: https://github.com/fabioarnold/nfd-zig - Native file dialogs
Attributions:
Zig logo from: https://github.com/ziglang/logo
00:00 - Intro
00:22 - Adding layers to Tilemap struct
07:13 - Installing uuid package
08:45 - Adding layers to Tilemap struct, cont
10:04 - Implementing json-friendly uuid
16:58 - Initializing the first layer
18:35 - Adding/adjusting helper functions
28:10 - Changing layers to pointers
33:02 - Adding layer support to draw tilemap
34:40 - Fixing errors
42:00 - Adding active layer
47:02 - Grid struct
53:56 - Fixing errors
01:00:06 - Fixing json parse uuid bug
01:03:24 - New tilemap format works saving/loading
01:03:39 - Adding name to layers
01:08:26 - Adding layer menu
01:11:00 - Adding add layer button
01:14:50 - Showing working add layer button
01:15:25 - Adding remove layer button
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: