glyph serialization
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user