Something something palettes are messed up

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
Nic0Nic0Nii 3 years ago
parent 2939293f2f
commit b22098febf
  1. BIN
      bin/RabiClone.jar
  2. 38
      mulfok32-1x.png palette.gpl
  3. BIN
      sprites/maptileinfo.gif
  4. 5
      src/sig/engine/Sprite.java
  5. 2
      src/sig/objects/EditorRenderer.java

Binary file not shown.

@ -0,0 +1,38 @@
GIMP Palette
Name: mulfok32-1x.png palette
Columns: 0
#
91 166 117 Untitled
107 201 108 Untitled
171 221 100 Untitled
252 239 141 Untitled
255 184 121 Untitled
234 98 98 Untitled
204 66 94 Untitled
163 40 88 Untitled
117 23 86 Untitled
57 9 71 Untitled
97 24 81 Untitled
135 53 85 Untitled
166 85 95 Untitled
201 115 115 Untitled
242 174 153 Untitled
255 195 242 Untitled
238 143 203 Untitled
212 110 179 Untitled
135 62 132 Untitled
31 16 42 Untitled
74 48 82 Untitled
123 84 128 Untitled
166 133 159 Untitled
217 189 200 Untitled
255 255 255 Untitled
174 226 255 Untitled
141 183 255 Untitled
109 128 250 Untitled
132 101 236 Untitled
131 77 196 Untitled
125 45 160 Untitled
78 24 124 Untitled
255 0 255 Untitled

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

@ -3,6 +3,7 @@ package sig.engine;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.awt.image.DataBufferByte;
import javax.imageio.ImageIO;
@ -12,6 +13,7 @@ public enum Sprite{
NANA(new File(new File("..","sprites"),"3x.png")),
NANA_SMALL(new File(new File("..","sprites"),"1x.gif")),
TILE_SHEET(new File(new File("..","sprites"),"tiles.gif")),
MAP_TILE_INFO(new File(new File("..","sprites"),"maptileinfo.gif")),
;
@ -27,6 +29,9 @@ public enum Sprite{
this.width=img.getWidth();
this.height=img.getHeight();
bi_array = ((DataBufferByte)(img.getRaster().getDataBuffer())).getData();
if (this.ordinal()==3) {
System.out.println(Arrays.toString(bi_array));
}
} catch (IOException e) {
e.printStackTrace();
}

@ -6,6 +6,7 @@ import java.awt.event.MouseEvent;
import sig.RabiClone;
import sig.engine.MouseScrollValue;
import sig.engine.Panel;
import sig.engine.Sprite;
import sig.map.Map;
import sig.map.Tile;
@ -56,5 +57,6 @@ public class EditorRenderer extends LevelRenderer{
@Override
public void draw(byte[] p) {
super.draw(p);
Draw_Sprite(16, 16, Sprite.MAP_TILE_INFO);
}
}

Loading…
Cancel
Save