Skip to content

Commit 2476f33

Browse files
committed
zima 0.8.0
1 parent 1150952 commit 2476f33

File tree

7 files changed

+39
-11
lines changed

7 files changed

+39
-11
lines changed

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group 'pl.asie.zima'
9-
version '0.7.0'
9+
version '0.8.0'
1010

1111
repositories {
1212
mavenCentral()
@@ -54,3 +54,7 @@ shadowJar {
5454
}
5555

5656
build.dependsOn(shadowJar)
57+
58+
tasks.withType(Copy).all {
59+
duplicatesStrategy 'exclude'
60+
}

docs/changelog/0.7.1.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/changelog/0.8.0.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Improvements:
2+
3+
* Added custom palette generation support!
4+
* You can now select colors in the "Palette" menu to be replaced with
5+
image-specific colors.
6+
* The colors are allocated in a way where the areas covered by the
7+
fixed/unchanged colors are taken into account.
8+
* Resulting palettes can be exported as .PAL files or in Weave ZZT
9+
#PALETTE command format.
10+
* Added WeaveZZT 2.5 support!
11+
* .CFG file parsing supported for custom element characters.
12+
* "CUSTOMTEXT" (element ID 46) is also supported.
13+
* Square character sets in Super ZZT are no longer stretched.
14+
15+
Bugs fixed:
16+
17+
* Fixed freeze when opening directories with thousands of files.
18+
* Fixed GMse algorithm not working with non-8x14 character sets.

docs/changelog/versions.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
0.5.0
88
0.5.1
99
0.6.0
10-
0.7.0
10+
0.7.0
11+
0.8.0

src/main/java/pl/asie/libzzt/ElementLibrarySuperZZT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class ElementLibrarySuperZZT {
6666
private static final Element SPINNING_GUN = Element.builder().character(24).cycle(2).hasDrawProc(true).name("Spinning gun").id(39).build();
6767
private static final Element PUSHER = Element.builder().character(16).color(Element.COLOR_CHOICE_ON_BLACK).hasDrawProc(true).cycle(4).name("Pusher").id(40).build();
6868
private static final Element LION = Element.builder().character(234).color(0x0C).destructible(true).pushable(true).cycle(2).name("Lion").scoreValue(1).id(41).build();
69-
private static final Element TIGER = Element.builder().character(227).color(0x0B).destructible(true).pushable(true).cycle(2).name("Lion").scoreValue(2).id(42).build();
69+
private static final Element TIGER = Element.builder().character(227).color(0x0B).destructible(true).pushable(true).cycle(2).name("Tiger").scoreValue(2).id(42).build();
7070
// 43
7171
private static final Element CENTIPEDE_HEAD = Element.builder().character(233).destructible(true).cycle(2).name("Head").scoreValue(1).id(44).build();
7272
private static final Element CENTIPEDE_SEGMENT = Element.builder().character('O').destructible(true).cycle(2).name("Segment").scoreValue(3).id(45).build();

src/main/java/pl/asie/libzzt/ElementLibraryZZT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class ElementLibraryZZT {
6666
private static final Element SPINNING_GUN = Element.builder().character(24).cycle(2).hasDrawProc(true).name("Spinning gun").id(39).build();
6767
private static final Element PUSHER = Element.builder().character(16).color(Element.COLOR_CHOICE_ON_BLACK).hasDrawProc(true).cycle(4).name("Pusher").id(40).build();
6868
private static final Element LION = Element.builder().character(234).color(0x0C).destructible(true).pushable(true).cycle(2).name("Lion").scoreValue(1).id(41).build();
69-
private static final Element TIGER = Element.builder().character(227).color(0x0B).destructible(true).pushable(true).cycle(2).name("Lion").scoreValue(2).id(42).build();
69+
private static final Element TIGER = Element.builder().character(227).color(0x0B).destructible(true).pushable(true).cycle(2).name("Tiger").scoreValue(2).id(42).build();
7070
private static final Element BLINK_RAY_NS = Element.builder().character(186).id(43).build();
7171
private static final Element CENTIPEDE_HEAD = Element.builder().character(233).destructible(true).cycle(2).name("Head").scoreValue(1).id(44).build();
7272
private static final Element CENTIPEDE_SEGMENT = Element.builder().character('O').destructible(true).cycle(2).name("Segment").scoreValue(3).id(45).build();

src/main/java/pl/asie/zima/image/ImageConverterRules.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,18 @@ public ImageConverterRules(Platform platform, boolean isSuperZztBased) {
169169
if (unknown46.isText()) {
170170
rules.add(ElementRule.text(platform, "UNKNOWN_46"));
171171
}
172+
Element monitor = platform.getLibrary().byInternalName("MONITOR");
173+
if (monitor.getCharacter() != 32 && monitor.getCharacter() != 0) {
174+
statlessRules.add(ElementRule.element(platform, "MONITOR"));
175+
}
176+
Element edge = platform.getLibrary().byInternalName("BOARD_EDGE");
177+
if (edge.getCharacter() != 32 && edge.getCharacter() != 0) {
178+
rules.add(ElementRule.element(platform, "BOARD_EDGE"));
179+
}
180+
Element messageTimer = platform.getLibrary().byInternalName("MESSAGE_TIMER");
181+
if (messageTimer.getCharacter() != 32 && messageTimer.getCharacter() != 0) {
182+
statlessRules.add(ElementRule.element(platform, "MESSAGE_TIMER"));
183+
}
172184

173185
// for custom rulesets
174186
this.allRules = rulesetSorted(true, alwaysRules, blockyRules, rules, statlessRules, unsafeStatlessRules);

0 commit comments

Comments
 (0)