added textures for ores

This commit is contained in:
Alexandre 2024-07-18 13:41:53 +02:00
parent a96ed3b1bd
commit 443b95d55a
24 changed files with 298 additions and 10 deletions

BIN
a.out

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4,6 +4,9 @@ Random.self_init () ;;
let __width__ = 1500 let __width__ = 1500
and __height__ = 1000 ;; and __height__ = 1000 ;;
let openstring = " 1500x1000" ;;
(* --------------------------------------------- *)
type tile = Free | Wall | Crate | Exit | Craxit | Camera ;; type tile = Free | Wall | Crate | Exit | Craxit | Camera ;;
@ -84,6 +87,7 @@ let ironIncrChance = 88 ;;
(* ------------------------------------------------------------- *) (* ------------------------------------------------------------- *)
type texture = {mutable width : int ; mutable height : int ; mutable arr_red : int array array ; mutable arr_green : int array array ; mutable arr_blue : int array array} ;; type texture = {mutable width : int ; mutable height : int ; mutable arr_red : int array array ; mutable arr_green : int array array ; mutable arr_blue : int array array} ;;
type textureStatic = {mutable width : int ; mutable height : int ; mutable color_arr : Graphics.color array array} ;;
let parse_texture filename = let parse_texture filename =
let ptr = open_in filename in let ptr = open_in filename in
@ -112,8 +116,8 @@ let parse_texture filename =
end end
done; done;
Printf.printf "size is (%d, %d)" tex.width tex.height; (*Printf.printf "size is (%d, %d)" tex.width tex.height;
Stdlib.print_endline " "; Stdlib.print_endline " ";*)
tex.arr_red <- Array.make_matrix (tex.width) (tex.height) 0; tex.arr_red <- Array.make_matrix (tex.width) (tex.height) 0;
tex.arr_green <- Array.make_matrix (tex.width) (tex.height) 0; tex.arr_green <- Array.make_matrix (tex.width) (tex.height) 0;
@ -180,7 +184,139 @@ let parse_texture filename =
tex tex
| exn -> close_in ptr ; raise exn ;; | exn -> close_in ptr ; raise exn ;;
let stone = parse_texture "output.txt" ;; let parse_texture_static filename =
let ptr = open_in filename in
let tex = {width = 0 ; height = 0; color_arr = Array.make_matrix 1 1 0} in
try
let buffer = ref 0 in
let side = ref 0 in
(* read dimensions *)
while !side <> 2 do
let c = input_char ptr in
let code = Char.code c in
if code >= 48 && code <= 57 then begin
buffer := !buffer * 10;
buffer := !buffer + code - 48
end
else begin
if !side = 0 then
tex.width <- !buffer
else
tex.height <- !buffer;
incr side;
buffer := 0
end
done;
(*Printf.printf "size is (%d, %d)" tex.width tex.height;
Stdlib.print_endline " ";*)
tex.color_arr <- Array.make_matrix (tex.width) (tex.height) (rgb 0 0 0);
(* read data*)
let cred = ref 0
and cgreen = ref 0
and cblue = ref 0 in
let which_color = ref 0 in
let cur_w = ref 0
and cur_h = ref 0 in
while true do
let c = input_char ptr in
let code = Char.code c in
if code >= 48 && code <= 57 then begin (* integer *)
buffer := !buffer * 10;
buffer := !buffer + code - 48
end
else if c = ',' then begin
if !which_color = 0 then
cred := !buffer
else
cgreen := !buffer;
(* blue is not seen here *)
incr which_color;
buffer := 0
end
else if c = ' ' then begin
cblue := !buffer;
tex.color_arr.(!cur_w).(!cur_h) <- rgb !cred !cgreen !cblue;
incr cur_w;
buffer := 0;
which_color := 0
end
else if c = '\n' then begin
cblue := !buffer;
tex.color_arr.(!cur_w).(!cur_h) <- rgb !cred !cgreen !cblue;
incr cur_h;
cur_w := 0;
buffer := 0;
which_color := 0
end
done;
failwith "Oh so while true can exit on its own..."
with
| End_of_file ->
close_in ptr ;
Printf.printf "Successfully parsed texture (s) ";
Printf.printf "'%s'" filename;
Stdlib.print_endline " ";
tex
| exn -> close_in ptr ; raise exn ;;
let forbidden = rgb 1 1 1 ;;
let draw_rect x y w h =
fill_poly [|(x, y); (x+w, y); (x+w, y+h); (x, y+h)|] ;;
let draw_2D_texture (tex : textureStatic) x y px_size =
(* x and y are bottomleft corner coord *)
for h = 0 to tex.height -1 do
for w = 0 to tex.width -1 do
if tex.color_arr.(w).(h) <> forbidden then begin
set_color tex.color_arr.(w).(h);
draw_rect (x + w*px_size) (y + h*px_size) px_size px_size
end
done
done ;;
(*
type chemical = Iron | Copper | Gold | Steel | Zinc | Carbon | Diamond | Tungsten | Stackyte ;;
*)
let copperTexture = parse_texture_static "textures/copper.txt" ;;
let ironTexture = parse_texture_static "textures/iron.txt" ;;
let goldTexture = parse_texture_static "textures/gold.txt" ;;
let diamondTexture = parse_texture_static "textures/diamond.txt" ;;
let tungstenTexture = parse_texture_static "textures/copper.txt" ;;
let zincTexture = parse_texture_static "textures/zinc.txt" ;;
let carbonTexture = parse_texture_static "textures/carbon.txt" ;;
let steelTexture = parse_texture_static "textures/carbon.txt" ;;
let stackyteTexture = parse_texture_static "textures/star.txt" ;;
let textureOreList = [|
ironTexture;
copperTexture;
goldTexture;
steelTexture;
zincTexture;
carbonTexture;
diamondTexture;
tungstenTexture;
stackyteTexture
|]
(* -------------------------------------------------------------- *)
(* -------------------------------------------------------------- *)
let dyn_create i = let dyn_create i =
{tab = Array.make 25 i ; len = 0 ; memlen = 25} ;; {tab = Array.make 25 i ; len = 0 ; memlen = 25} ;;
@ -1476,6 +1612,7 @@ let draw_inventories () =
for i = 0 to (Array.length playerOreInventory -1) do for i = 0 to (Array.length playerOreInventory -1) do
set_color colorsInv.(i); set_color colorsInv.(i);
draw_2D_texture textureOreList.(i) 10 (__height__ - (240 + 50 * (Array.length playerOreInventory -1 -i))) 1;
draw_integer_alignedleft 40 (__height__ - (240 + 50 * (Array.length playerOreInventory -1 -i))) playerOreInventory.(i) 20 draw_integer_alignedleft 40 (__height__ - (240 + 50 * (Array.length playerOreInventory -1 -i))) playerOreInventory.(i) 20
done ;; done ;;
@ -1514,7 +1651,7 @@ let play_dos laby =
while true do while true do
if !redraw then begin (* update the display *) if !redraw then begin (* update the display *)
auto_synchronize false; auto_synchronize false;
open_graph " 1500x1000"; open_graph openstring;
set_color black; set_color black;
fill_poly [|(0, 0); (__width__, 0); (__width__, __height__); (0, __height__); (0, 0)|]; fill_poly [|(0, 0); (__width__, 0); (__width__, __height__); (0, __height__); (0, 0)|];

BIN
display.o

Binary file not shown.

View File

@ -2,20 +2,28 @@ import math
import numpy as np import numpy as np
import PIL.Image as Img import PIL.Image as Img
def import_img(filename, show=False): def import_img(filename, out_name, show=False):
img = Img.open(filename) img = Img.open(filename)
width, height = img.size width, height = img.size
#print(width, " ", height)
if(show): if(show):
Img.show(img) Img.show(img)
ptr = open("output.txt", "w") ptr = open(out_name, "w")
ptr.write(str(width) + " " + str(height)) ptr.write(str(width) + " " + str(height))
ptr.write("\n") ptr.write("\n")
for w in range(0,width,10): for w in range(0,width):
for h in range(0,height,10): for h in range(0,height):
(red, green, blue) = img.getpixel((w,h)) (red, green, blue) = img.getpixel((w,h))
if red * green * blue != 1:
if red * green * blue != 255*255*255:
ptr.write(str(red) + "," + str(green) + "," + str(blue)) ptr.write(str(red) + "," + str(green) + "," + str(blue))
else:
ptr.write("1,1,1")
else:
ptr.write("1,1,1")
if(h != height-1): if(h != height-1):
ptr.write(" ") ptr.write(" ")
ptr.write("\n") ptr.write("\n")
@ -23,4 +31,11 @@ def import_img(filename, show=False):
print("Successfully parsed image '", filename, "'") print("Successfully parsed image '", filename, "'")
ptr.close() ptr.close()
import_img("stone.bmp") import_img("textures/copper_ingot.bmp", "textures/copper.txt")
import_img("textures/carbon_ingot.bmp", "textures/carbon.txt")
import_img("textures/iron_ingot.bmp", "textures/iron.txt")
import_img("textures/gold_ingot.bmp", "textures/gold.txt")
import_img("textures/tungsten.bmp", "textures/tungsten.txt")
import_img("textures/nether_star.bmp", "textures/star.txt")
import_img("textures/zinc_ingot.bmp", "textures/zinc.txt")
import_img("textures/diamond.bmp", "textures/diamond.txt")

17
textures/carbon.txt Normal file
View File

@ -0,0 +1,17 @@
16 16
1,1,1 1,1,1 1,1,1 1,1,1 1,1,1 1,1,1 35,35,35 35,35,35 35,35,35 35,35,35 35,35,35 1,1,1 1,1,1 1,1,1 1,1,1 1,1,1
1,1,1 1,1,1 1,1,1 1,1,1 1,1,1 35,35,35 96,96,96 63,63,63 63,63,63 63,63,63 49,49,49 35,35,35 1,1,1 1,1,1 1,1,1 1,1,1
1,1,1 1,1,1 1,1,1 1,1,1 1,1,1 35,35,35 81,81,81 96,96,96 63,63,63 63,63,63 63,63,63 49,49,49 35,35,35 1,1,1 1,1,1 1,1,1
1,1,1 1,1,1 1,1,1 1,1,1 1,1,1 35,35,35 81,81,81 81,81,81 96,96,96 63,63,63 63,63,63 63,63,63 49,49,49 35,35,35 1,1,1 1,1,1
1,1,1 1,1,1 1,1,1 1,1,1 35,35,35 63,63,63 81,81,81 81,81,81 81,81,81 96,96,96 81,81,81 81,81,81 63,63,63 35,35,35 1,1,1 1,1,1
1,1,1 1,1,1 1,1,1 1,1,1 35,35,35 81,81,81 81,81,81 81,81,81 81,81,81 96,96,96 49,49,49 49,49,49 49,49,49 20,20,20 1,1,1 1,1,1
1,1,1 1,1,1 1,1,1 1,1,1 35,35,35 81,81,81 81,81,81 81,81,81 96,96,96 81,81,81 43,43,43 43,43,43 33,33,33 20,20,20 1,1,1 1,1,1
1,1,1 1,1,1 1,1,1 35,35,35 63,63,63 81,81,81 81,81,81 81,81,81 96,96,96 49,49,49 43,43,43 43,43,43 20,20,20 1,1,1 1,1,1 1,1,1
1,1,1 1,1,1 1,1,1 35,35,35 81,81,81 81,81,81 81,81,81 81,81,81 96,96,96 43,43,43 43,43,43 49,49,49 20,20,20 1,1,1 1,1,1 1,1,1
1,1,1 1,1,1 1,1,1 35,35,35 81,81,81 81,81,81 81,81,81 96,96,96 81,81,81 43,43,43 43,43,43 49,49,49 20,20,20 1,1,1 1,1,1 1,1,1
1,1,1 1,1,1 35,35,35 63,63,63 81,81,81 81,81,81 81,81,81 96,96,96 49,49,49 43,43,43 63,63,63 20,20,20 1,1,1 1,1,1 1,1,1 1,1,1
1,1,1 1,1,1 35,35,35 63,63,63 81,81,81 81,81,81 81,81,81 96,96,96 43,43,43 43,43,43 63,63,63 20,20,20 1,1,1 1,1,1 1,1,1 1,1,1
1,1,1 1,1,1 1,1,1 43,43,43 63,63,63 81,81,81 96,96,96 81,81,81 43,43,43 63,63,63 49,49,49 20,20,20 1,1,1 1,1,1 1,1,1 1,1,1
1,1,1 1,1,1 1,1,1 1,1,1 43,43,43 63,63,63 96,96,96 43,43,43 49,49,49 63,63,63 20,20,20 1,1,1 1,1,1 1,1,1 1,1,1 1,1,1
1,1,1 1,1,1 1,1,1 1,1,1 1,1,1 43,43,43 81,81,81 63,63,63 63,63,63 63,63,63 20,20,20 1,1,1 1,1,1 1,1,1 1,1,1 1,1,1
1,1,1 1,1,1 1,1,1 1,1,1 1,1,1 1,1,1 43,43,43 20,20,20 20,20,20 20,20,20 1,1,1 1,1,1 1,1,1 1,1,1 1,1,1 1,1,1

BIN
textures/carbon_ingot.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

BIN
textures/carbon_ingot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

17
textures/copper.txt Normal file
View File

@ -0,0 +1,17 @@
16 16
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 156,69,41 156,69,41 156,69,41 156,69,41 156,69,41 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 156,69,41 252,153,130 231,124,86 231,124,86 231,124,86 231,124,86 156,69,41 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 156,69,41 193,90,54 252,153,130 193,90,54 156,78,49 156,78,49 193,90,54 156,69,41 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 156,69,41 231,124,86 231,124,86 252,153,130 193,90,54 156,78,49 156,78,49 156,78,49 156,69,41 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 156,69,41 193,90,54 231,124,86 231,124,86 231,124,86 251,195,182 252,153,130 252,153,130 231,124,86 156,69,41 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 156,69,41 231,124,86 231,124,86 193,90,54 231,124,86 252,153,130 193,90,54 156,78,49 156,78,49 109,52,33 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 156,69,41 231,124,86 193,90,54 193,90,54 252,153,130 193,90,54 156,78,49 156,78,49 193,90,54 109,52,33 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 156,69,41 231,124,86 193,90,54 156,78,49 193,90,54 252,153,130 156,78,49 156,78,49 193,90,54 109,52,33 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 156,69,41 193,90,54 156,78,49 156,78,49 231,124,86 252,153,130 156,78,49 193,90,54 193,90,54 109,52,33 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 156,69,41 156,78,49 156,78,49 193,90,54 252,153,130 231,124,86 193,90,54 193,90,54 156,78,49 109,52,33 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 156,69,41 193,90,54 156,78,49 193,90,54 231,124,86 252,153,130 193,90,54 193,90,54 156,78,49 109,52,33 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 156,69,41 193,90,54 193,90,54 231,124,86 231,124,86 252,153,130 193,90,54 156,78,49 138,65,41 109,52,33 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 138,65,41 231,124,86 231,124,86 252,153,130 193,90,54 156,78,49 138,65,41 156,78,49 109,52,33 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 138,65,41 193,90,54 252,153,130 156,78,49 138,65,41 138,65,41 109,52,33 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 138,65,41 231,124,86 156,78,49 156,78,49 193,90,54 109,52,33 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 138,65,41 109,52,33 109,52,33 109,52,33 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0

BIN
textures/copper_ingot.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

BIN
textures/diamond.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

17
textures/diamond.txt Normal file
View File

@ -0,0 +1,17 @@
16 16
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 17,114,122 17,114,122 17,114,122 17,114,122 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 17,114,122 17,114,122 1,1,1 1,1,1 1,1,1 213,255,246 20,94,83 20,94,83 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 17,114,122 1,1,1 1,1,1 74,237,217 74,237,217 1,1,1 74,237,217 74,237,217 44,224,216 20,94,83 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 17,114,122 1,1,1 74,237,217 74,237,217 1,1,1 213,255,246 32,197,181 74,237,217 26,170,167 26,170,167 28,145,154 20,94,83 0,0,0
0,0,0 0,0,0 17,114,122 1,1,1 74,237,217 161,251,232 1,1,1 74,237,217 74,237,217 161,251,232 26,170,167 32,197,181 32,197,181 74,237,217 20,94,83 0,0,0
0,0,0 0,0,0 17,114,122 1,1,1 74,237,217 161,251,232 213,255,246 74,237,217 161,251,232 161,251,232 26,170,167 32,197,181 32,197,181 74,237,217 20,94,83 0,0,0
0,0,0 0,0,0 17,114,122 1,1,1 161,251,232 213,255,246 1,1,1 161,251,232 161,251,232 161,251,232 26,170,167 32,197,181 32,197,181 161,251,232 20,94,83 0,0,0
0,0,0 0,0,0 17,114,122 213,255,246 213,255,246 161,251,232 213,255,246 161,251,232 161,251,232 74,237,217 26,170,167 32,197,181 32,197,181 161,251,232 20,94,83 0,0,0
0,0,0 0,0,0 0,0,0 17,114,122 32,197,181 74,237,217 74,237,217 26,170,167 28,145,154 28,145,154 32,197,181 26,170,167 26,170,167 32,197,181 20,94,83 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 20,94,83 32,197,181 74,237,217 32,197,181 32,197,181 26,170,167 32,197,181 32,197,181 161,251,232 20,94,83 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 20,94,83 20,94,83 26,170,167 26,170,167 26,170,167 28,145,154 20,94,83 20,94,83 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 20,94,83 20,94,83 20,94,83 20,94,83 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0

17
textures/gold.txt Normal file
View File

@ -0,0 +1,17 @@
16 16
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 178,100,17 178,100,17 178,100,17 178,100,17 178,100,17 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 178,100,17 255,253,224 250,214,74 250,214,74 250,214,74 233,177,21 178,100,17 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 178,100,17 253,245,95 255,253,224 253,245,95 253,245,95 253,245,95 233,177,21 178,100,17 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 178,100,17 253,245,95 253,245,95 255,253,224 250,214,74 250,214,74 250,214,74 233,177,21 178,100,17 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 178,100,17 250,214,74 253,245,95 253,245,95 253,245,95 1,1,1 253,245,95 253,245,95 250,214,74 178,100,17 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 178,100,17 253,245,95 253,245,95 253,245,95 253,245,95 255,253,224 233,177,21 233,177,21 233,177,21 117,40,2 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 178,100,17 253,245,95 253,245,95 253,245,95 255,253,224 253,245,95 220,150,19 220,150,19 233,177,21 117,40,2 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 178,100,17 253,245,95 253,245,95 253,245,95 253,245,95 255,253,224 233,177,21 220,150,19 220,150,19 117,40,2 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 178,100,17 253,245,95 253,245,95 253,245,95 253,245,95 255,253,224 220,150,19 220,150,19 233,177,21 117,40,2 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 178,100,17 253,245,95 253,245,95 253,245,95 255,253,224 253,245,95 220,150,19 220,150,19 233,177,21 117,40,2 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 178,100,17 250,214,74 253,245,95 253,245,95 253,245,95 255,253,224 233,177,21 220,150,19 233,177,21 117,40,2 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 178,100,17 250,214,74 253,245,95 253,245,95 253,245,95 255,253,224 220,150,19 220,150,19 250,214,74 117,40,2 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 178,100,17 253,245,95 253,245,95 255,253,224 253,245,95 220,150,19 233,177,21 250,214,74 117,40,2 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 178,100,17 250,214,74 255,253,224 220,150,19 220,150,19 250,214,74 117,40,2 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 117,40,2 253,245,95 250,214,74 250,214,74 250,214,74 117,40,2 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 117,40,2 117,40,2 117,40,2 117,40,2 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0

BIN
textures/gold_ingot.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

17
textures/iron.txt Normal file
View File

@ -0,0 +1,17 @@
16 16
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 94,94,94 94,94,94 94,94,94 94,94,94 94,94,94 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 94,94,94 1,1,1 168,168,168 168,168,168 168,168,168 130,130,130 94,94,94 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 94,94,94 216,216,216 1,1,1 168,168,168 168,168,168 168,168,168 130,130,130 94,94,94 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 94,94,94 216,216,216 216,216,216 1,1,1 168,168,168 168,168,168 168,168,168 130,130,130 94,94,94 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 94,94,94 168,168,168 216,216,216 216,216,216 216,216,216 1,1,1 216,216,216 216,216,216 168,168,168 94,94,94 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 94,94,94 216,216,216 216,216,216 216,216,216 216,216,216 1,1,1 130,130,130 130,130,130 130,130,130 53,53,53 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 94,94,94 216,216,216 216,216,216 216,216,216 1,1,1 216,216,216 114,114,114 114,114,114 88,88,88 53,53,53 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 94,94,94 168,168,168 216,216,216 216,216,216 216,216,216 1,1,1 130,130,130 114,114,114 114,114,114 53,53,53 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 94,94,94 216,216,216 216,216,216 216,216,216 216,216,216 1,1,1 114,114,114 114,114,114 130,130,130 53,53,53 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 94,94,94 216,216,216 216,216,216 216,216,216 1,1,1 216,216,216 114,114,114 114,114,114 130,130,130 53,53,53 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 94,94,94 168,168,168 216,216,216 216,216,216 216,216,216 1,1,1 130,130,130 114,114,114 168,168,168 53,53,53 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 94,94,94 168,168,168 216,216,216 216,216,216 216,216,216 1,1,1 114,114,114 114,114,114 168,168,168 53,53,53 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 114,114,114 168,168,168 216,216,216 1,1,1 216,216,216 114,114,114 168,168,168 130,130,130 53,53,53 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 114,114,114 168,168,168 1,1,1 114,114,114 130,130,130 168,168,168 53,53,53 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 114,114,114 216,216,216 168,168,168 168,168,168 168,168,168 53,53,53 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 114,114,114 53,53,53 53,53,53 53,53,53 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0

BIN
textures/iron_ingot.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

BIN
textures/iron_ingot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 B

BIN
textures/nether_star.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

17
textures/star.txt Normal file
View File

@ -0,0 +1,17 @@
16 16
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 100,144,144 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 100,144,144 136,164,164 100,144,144 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 100,144,144 136,164,164 218,226,226 136,164,164 85,107,107 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 100,144,144 185,201,201 253,255,168 185,201,201 85,107,107 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 100,144,144 100,144,144 136,164,164 203,214,214 253,255,168 203,214,214 136,164,164 85,107,107 85,107,107 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 100,144,144 136,164,164 185,201,201 203,214,214 203,214,214 253,255,168 185,201,201 203,214,214 185,201,201 136,164,164 85,107,107 0,0,0 0,0,0
0,0,0 0,0,0 100,144,144 136,164,164 218,226,226 253,255,168 253,255,168 253,255,168 210,210,0 224,226,119 253,255,168 253,255,168 203,214,214 136,164,164 85,107,107 0,0,0
0,0,0 0,0,0 0,0,0 85,107,107 136,164,164 185,201,201 203,214,214 203,214,214 224,226,119 185,201,201 185,201,201 136,164,164 136,164,164 85,107,107 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 85,107,107 85,107,107 136,164,164 203,214,214 253,255,168 185,201,201 136,164,164 85,107,107 85,107,107 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 85,107,107 185,201,201 253,255,168 136,164,164 85,107,107 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 85,107,107 136,164,164 185,201,201 136,164,164 85,107,107 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 85,107,107 136,164,164 85,107,107 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 85,107,107 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0

BIN
textures/tungsten.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

17
textures/tungsten.txt Normal file
View File

@ -0,0 +1,17 @@
16 16
6,3,11 6,3,11 0,0,1 0,0,1 0,0,1 16,12,28 16,12,28 6,3,11 0,0,1 39,30,61 16,12,28 0,0,1 6,3,11 39,30,61 0,0,1 16,12,28
0,0,1 0,0,1 0,0,1 59,39,84 39,30,61 16,12,28 16,12,28 0,0,1 0,0,1 16,12,28 6,3,11 16,12,28 59,39,84 39,30,61 39,30,61 6,3,11
0,0,1 6,3,11 59,39,84 39,30,61 16,12,28 16,12,28 6,3,11 16,12,28 59,39,84 0,0,1 6,3,11 6,3,11 59,39,84 16,12,28 6,3,11 0,0,1
0,0,1 16,12,28 59,39,84 16,12,28 16,12,28 0,0,1 16,12,28 59,39,84 39,30,61 0,0,1 0,0,1 6,3,11 16,12,28 6,3,11 6,3,11 16,12,28
0,0,1 0,0,1 39,30,61 16,12,28 16,12,28 0,0,1 39,30,61 16,12,28 16,12,28 16,12,28 6,3,11 16,12,28 0,0,1 6,3,11 16,12,28 0,0,1
6,3,11 16,12,28 0,0,1 39,30,61 0,0,1 16,12,28 59,39,84 16,12,28 16,12,28 6,3,11 6,3,11 0,0,1 16,12,28 6,3,11 6,3,11 6,3,11
16,12,28 6,3,11 6,3,11 6,3,11 0,0,1 6,3,11 59,39,84 0,0,1 16,12,28 39,30,61 6,3,11 6,3,11 16,12,28 0,0,1 39,30,61 16,12,28
6,3,11 0,0,1 39,30,61 16,12,28 0,0,1 6,3,11 39,30,61 16,12,28 39,30,61 39,30,61 16,12,28 16,12,28 16,12,28 16,12,28 6,3,11 39,30,61
0,0,1 59,39,84 39,30,61 6,3,11 0,0,1 6,3,11 6,3,11 0,0,1 39,30,61 16,12,28 6,3,11 6,3,11 39,30,61 16,12,28 6,3,11 16,12,28
59,39,84 16,12,28 16,12,28 16,12,28 0,0,1 6,3,11 0,0,1 0,0,1 6,3,11 6,3,11 6,3,11 59,39,84 59,39,84 16,12,28 16,12,28 0,0,1
39,30,61 6,3,11 16,12,28 0,0,1 0,0,1 59,39,84 39,30,61 0,0,1 0,0,1 0,0,1 0,0,1 59,39,84 16,12,28 6,3,11 16,12,28 6,3,11
6,3,11 6,3,11 0,0,1 0,0,1 6,3,11 39,30,61 0,0,1 0,0,1 0,0,1 16,12,28 0,0,1 39,30,61 6,3,11 6,3,11 0,0,1 6,3,11
6,3,11 39,30,61 16,12,28 6,3,11 6,3,11 6,3,11 6,3,11 0,0,1 39,30,61 6,3,11 16,12,28 16,12,28 16,12,28 6,3,11 6,3,11 6,3,11
39,30,61 59,39,84 39,30,61 16,12,28 6,3,11 6,3,11 0,0,1 59,39,84 16,12,28 16,12,28 6,3,11 16,12,28 59,39,84 0,0,1 0,0,1 6,3,11
59,39,84 16,12,28 0,0,1 6,3,11 0,0,1 0,0,1 0,0,1 39,30,61 16,12,28 6,3,11 0,0,1 16,12,28 16,12,28 39,30,61 0,0,1 6,3,11
39,30,61 6,3,11 6,3,11 0,0,1 6,3,11 0,0,1 6,3,11 0,0,1 16,12,28 6,3,11 39,30,61 16,12,28 6,3,11 6,3,11 6,3,11 6,3,11

17
textures/zinc.txt Normal file
View File

@ -0,0 +1,17 @@
16 16
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 80,109,99 49,84,78 49,84,78 49,84,78 49,84,78 49,84,78 33,59,63 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 80,109,99 214,255,220 165,192,160 146,155,135 146,155,135 165,192,160 165,192,160 120,130,115 33,59,63 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 80,109,99 214,255,220 1,1,1 165,192,160 146,155,135 146,155,135 165,192,160 165,192,160 120,130,115 33,59,63 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 80,109,99 185,233,193 214,255,220 1,1,1 185,233,193 185,233,193 185,233,193 185,233,193 120,130,115 33,59,63 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 80,109,99 165,192,160 185,233,193 185,233,193 214,255,220 120,130,115 80,109,99 80,109,99 49,84,78 49,84,78 33,59,63 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 80,109,99 185,233,193 185,233,193 185,233,193 214,255,220 80,109,99 49,84,78 49,84,78 49,84,78 49,84,78 33,59,63 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 80,109,99 214,255,220 185,233,193 214,255,220 165,192,160 80,109,99 49,84,78 49,84,78 49,84,78 33,59,63 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 80,109,99 165,192,160 214,255,220 214,255,220 214,255,220 120,130,115 80,109,99 80,109,99 49,84,78 80,109,99 33,59,63 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 80,109,99 165,192,160 214,255,220 214,255,220 185,233,193 80,109,99 80,109,99 49,84,78 80,109,99 49,84,78 33,59,63 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 80,109,99 185,233,193 214,255,220 165,192,160 120,130,115 80,109,99 80,109,99 80,109,99 33,59,63 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 80,109,99 185,233,193 120,130,115 120,130,115 120,130,115 120,130,115 49,84,78 33,59,63 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 33,59,63 33,59,63 33,59,63 33,59,63 33,59,63 33,59,63 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0
0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0 0,0,0

BIN
textures/zinc_ingot.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B