glyph serialization

This commit is contained in:
2026-07-26 23:29:43 -05:00
parent 9844671c46
commit ab5f22fe76
20 changed files with 408 additions and 143 deletions
+5 -5
View File
@@ -28,12 +28,12 @@ fn opposite_tag(me) {
else { "BUILTIN_transporter_east" }
}
// The 4-frame animation loop for this direction (CP437 tile codes).
// The 4-frame animation loop for this direction.
fn frames(me) {
if me.has_tag("BUILTIN_transporter_north") { [94, 45, 94, 126] } // ^ - ^ ~
else if me.has_tag("BUILTIN_transporter_south") { [118, 95, 118, 45] } // v _ v -
else if me.has_tag("BUILTIN_transporter_east") { [41, 124, 41, 62] } // ) | ) >
else { [40, 124, 40, 60] } // ( | ( <
if me.has_tag("BUILTIN_transporter_north") { ["^", "-", "^", "~"] }
else if me.has_tag("BUILTIN_transporter_south") { ["v", "_", "v", "-"] }
else if me.has_tag("BUILTIN_transporter_east") { [")", "|", ")", ">"] }
else { ["(", "|", "(", "<"] }
}
fn tick(me, dt) {