diff --git a/a.out b/a.out index 0a6f626..577f9fa 100755 Binary files a/a.out and b/a.out differ diff --git a/display.cmi b/display.cmi index c3df8c6..4577778 100644 Binary files a/display.cmi and b/display.cmi differ diff --git a/display.cmx b/display.cmx index e88d1cf..6c21293 100644 Binary files a/display.cmx and b/display.cmx differ diff --git a/display.ml b/display.ml index 9dc4b84..32cf7b2 100644 --- a/display.ml +++ b/display.ml @@ -4,6 +4,9 @@ Random.self_init () ;; let __width__ = 1500 and __height__ = 1000 ;; +let openstring = " 1500x1000" ;; + +(* --------------------------------------------- *) 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 textureStatic = {mutable width : int ; mutable height : int ; mutable color_arr : Graphics.color array array} ;; let parse_texture filename = let ptr = open_in filename in @@ -112,8 +116,8 @@ let parse_texture filename = end done; - Printf.printf "size is (%d, %d)" tex.width tex.height; - Stdlib.print_endline " "; + (*Printf.printf "size is (%d, %d)" tex.width tex.height; + Stdlib.print_endline " ";*) tex.arr_red <- 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 | 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 = {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 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 done ;; @@ -1514,7 +1651,7 @@ let play_dos laby = while true do if !redraw then begin (* update the display *) auto_synchronize false; - open_graph " 1500x1000"; + open_graph openstring; set_color black; fill_poly [|(0, 0); (__width__, 0); (__width__, __height__); (0, __height__); (0, 0)|]; diff --git a/display.o b/display.o index 7c302ab..2aa7d82 100644 Binary files a/display.o and b/display.o differ diff --git a/image_parsing.py b/image_parsing.py index e29b587..ea24a69 100644 --- a/image_parsing.py +++ b/image_parsing.py @@ -2,20 +2,28 @@ import math import numpy as np import PIL.Image as Img -def import_img(filename, show=False): +def import_img(filename, out_name, show=False): img = Img.open(filename) width, height = img.size + #print(width, " ", height) + if(show): Img.show(img) - ptr = open("output.txt", "w") + ptr = open(out_name, "w") ptr.write(str(width) + " " + str(height)) ptr.write("\n") - for w in range(0,width,10): - for h in range(0,height,10): + for w in range(0,width): + for h in range(0,height): (red, green, blue) = img.getpixel((w,h)) - ptr.write(str(red) + "," + str(green) + "," + str(blue)) + if red * green * blue != 1: + if red * green * blue != 255*255*255: + ptr.write(str(red) + "," + str(green) + "," + str(blue)) + else: + ptr.write("1,1,1") + else: + ptr.write("1,1,1") if(h != height-1): ptr.write(" ") ptr.write("\n") @@ -23,4 +31,11 @@ def import_img(filename, show=False): print("Successfully parsed image '", filename, "'") ptr.close() -import_img("stone.bmp") \ No newline at end of file +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") \ No newline at end of file diff --git a/textures/carbon.txt b/textures/carbon.txt new file mode 100644 index 0000000..196b511 --- /dev/null +++ b/textures/carbon.txt @@ -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 diff --git a/textures/carbon_ingot.bmp b/textures/carbon_ingot.bmp new file mode 100644 index 0000000..a052dfd Binary files /dev/null and b/textures/carbon_ingot.bmp differ diff --git a/textures/carbon_ingot.png b/textures/carbon_ingot.png new file mode 100644 index 0000000..56a6f7e Binary files /dev/null and b/textures/carbon_ingot.png differ diff --git a/textures/copper.txt b/textures/copper.txt new file mode 100644 index 0000000..1176d0a --- /dev/null +++ b/textures/copper.txt @@ -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 diff --git a/textures/copper_ingot.bmp b/textures/copper_ingot.bmp new file mode 100644 index 0000000..3fd652d Binary files /dev/null and b/textures/copper_ingot.bmp differ diff --git a/textures/diamond.bmp b/textures/diamond.bmp new file mode 100644 index 0000000..4b65865 Binary files /dev/null and b/textures/diamond.bmp differ diff --git a/textures/diamond.txt b/textures/diamond.txt new file mode 100644 index 0000000..d93f1a9 --- /dev/null +++ b/textures/diamond.txt @@ -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 diff --git a/textures/gold.txt b/textures/gold.txt new file mode 100644 index 0000000..950eb0b --- /dev/null +++ b/textures/gold.txt @@ -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 diff --git a/textures/gold_ingot.bmp b/textures/gold_ingot.bmp new file mode 100644 index 0000000..7c5c188 Binary files /dev/null and b/textures/gold_ingot.bmp differ diff --git a/textures/iron.txt b/textures/iron.txt new file mode 100644 index 0000000..8f9b806 --- /dev/null +++ b/textures/iron.txt @@ -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 diff --git a/textures/iron_ingot.bmp b/textures/iron_ingot.bmp new file mode 100644 index 0000000..ece8099 Binary files /dev/null and b/textures/iron_ingot.bmp differ diff --git a/textures/iron_ingot.png b/textures/iron_ingot.png new file mode 100644 index 0000000..c332bd2 Binary files /dev/null and b/textures/iron_ingot.png differ diff --git a/textures/nether_star.bmp b/textures/nether_star.bmp new file mode 100644 index 0000000..45bd16a Binary files /dev/null and b/textures/nether_star.bmp differ diff --git a/textures/star.txt b/textures/star.txt new file mode 100644 index 0000000..d9221f7 --- /dev/null +++ b/textures/star.txt @@ -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 diff --git a/textures/tungsten.bmp b/textures/tungsten.bmp new file mode 100644 index 0000000..1e3ef33 Binary files /dev/null and b/textures/tungsten.bmp differ diff --git a/textures/tungsten.txt b/textures/tungsten.txt new file mode 100644 index 0000000..bd7c4e1 --- /dev/null +++ b/textures/tungsten.txt @@ -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 diff --git a/textures/zinc.txt b/textures/zinc.txt new file mode 100644 index 0000000..58551ce --- /dev/null +++ b/textures/zinc.txt @@ -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 diff --git a/textures/zinc_ingot.bmp b/textures/zinc_ingot.bmp new file mode 100644 index 0000000..3040d63 Binary files /dev/null and b/textures/zinc_ingot.bmp differ