diff --git a/img/box.bin b/img/box.bin deleted file mode 100644 index a5c15ae..0000000 Binary files a/img/box.bin and /dev/null differ diff --git a/img/box.png b/img/box.png deleted file mode 100644 index ae23d25..0000000 Binary files a/img/box.png and /dev/null differ diff --git a/img/coin_0.bin b/img/coin_0.bin deleted file mode 100644 index d1cea24..0000000 Binary files a/img/coin_0.bin and /dev/null differ diff --git a/img/coin_0.png b/img/coin_0.png deleted file mode 100644 index 87d1077..0000000 Binary files a/img/coin_0.png and /dev/null differ diff --git a/img/coin_1.bin b/img/coin_1.bin deleted file mode 100644 index 42173aa..0000000 Binary files a/img/coin_1.bin and /dev/null differ diff --git a/img/coin_1.png b/img/coin_1.png deleted file mode 100644 index 71bb349..0000000 Binary files a/img/coin_1.png and /dev/null differ diff --git a/img/coin_2.bin b/img/coin_2.bin deleted file mode 100644 index 6a16372..0000000 Binary files a/img/coin_2.bin and /dev/null differ diff --git a/img/coin_2.png b/img/coin_2.png deleted file mode 100644 index 4159c5d..0000000 Binary files a/img/coin_2.png and /dev/null differ diff --git a/img/colors.png b/img/colors.png deleted file mode 100644 index e4eda1d..0000000 Binary files a/img/colors.png and /dev/null differ diff --git a/img/image2binary.py b/img/image2binary.py deleted file mode 100644 index 6416072..0000000 --- a/img/image2binary.py +++ /dev/null @@ -1,47 +0,0 @@ -from PIL import Image #Import Image from Pillow -import sys - -palleteFile = "colors.png" #pallete the BIOS uses -if len(sys.argv) < 2: - convertFile = "fox.png" #image to turn into a binary - outputFile = "fox.bin" #name of output file -elif len(sys.argv) < 3: - convertFile = sys.argv[1] - outputFile = sys.argv[1]+".bin" -elif len(sys.argv) >= 3: - convertFile = sys.argv[1] - outputFile = sys.argv[2] - -pal = Image.open(palleteFile).convert('RGB') -pallete = pal.load() #load pixels of the pallete -image = Image.open(convertFile).convert('RGB') -pixels = image.load() #load pixels of the image - -binary = open(outputFile, "wb") #open/create binary file - -list = [] #create a list for the pallete -for y in range(pal.height): - for x in range(pal.width): - list.append(pallete[x,y]) #save the pallete into an array - -binary.write(bytearray([image.width&0xFF,image.height&0xFF])) #write width and height as the first two bytes -data = [] -print(image.height) -print(image.width) -for y in range(image.height): - for x in range(image.width): - difference = 0xFFFFFFF #init difference with a high value - choice = 0 #the index of the color nearest to the original pixel color - index = 0 #current index within the pallete array - #print sum([(pixels[x,y][i])**2 for i in range(3)]) - for c in list: - dif = sum([(pixels[x,y][i] - c[i])**2 for i in range(3)]) #calculate difference for RGB values - if dif < difference: - difference = dif - choice = index - index += 1 - data = bytearray([choice&0xFF]) - print("[%d,%d] %d = %d (%d)" % (x,y,choice, difference, len(data))) - binary.write(data) #write nearest pallete index into binary file -binary.close() # close file handle -print("Done.") \ No newline at end of file diff --git a/img/map.bin b/img/map.bin deleted file mode 100644 index 3cad53d..0000000 --- a/img/map.bin +++ /dev/null @@ -1 +0,0 @@ -00000000000000000000000000000000000000000000000000000000000000000 00000000000 X 000000000000000000000 000000000000 0000000000000000 000000000000000000000 000000000000 0000000000000000 000000000000000000000 000000000000 0000000000000000 000000000000000000 00000000 0000000000000000 000000000000000000 00000000 0000000000000000 000000000 X 00000000 0000000000000000 000000000 00000000 00000 0000000000000000 00000000 00000 0000000000000000 0000000000000000000000 X 00000000000000 0000000000000000 0000000000000000000000 00000000000000 0000000000000000 0000000000000000000000 00000000000000 00000 00000 00000000000000 00000 P X 00000 00000 000000000 X 00000 0000000000000000 0000000000000000 0000000000000000000000 0000000000000000 0000000000000000 000000 0000000000000000 000000000 000000 X 0000000000000000 X 000000 00000 000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 \ No newline at end of file diff --git a/img/player_back_0.bin b/img/player_back_0.bin deleted file mode 100644 index d549c07..0000000 Binary files a/img/player_back_0.bin and /dev/null differ diff --git a/img/player_back_0.png b/img/player_back_0.png deleted file mode 100644 index 0cc7609..0000000 Binary files a/img/player_back_0.png and /dev/null differ diff --git a/img/player_back_1.bin b/img/player_back_1.bin deleted file mode 100644 index ba7afab..0000000 Binary files a/img/player_back_1.bin and /dev/null differ diff --git a/img/player_back_1.png b/img/player_back_1.png deleted file mode 100644 index 0ad676c..0000000 Binary files a/img/player_back_1.png and /dev/null differ diff --git a/img/player_back_2.bin b/img/player_back_2.bin deleted file mode 100644 index 9e34896..0000000 Binary files a/img/player_back_2.bin and /dev/null differ diff --git a/img/player_back_2.png b/img/player_back_2.png deleted file mode 100644 index 8efb707..0000000 Binary files a/img/player_back_2.png and /dev/null differ diff --git a/img/player_front_0.bin b/img/player_front_0.bin deleted file mode 100644 index 550b5f2..0000000 Binary files a/img/player_front_0.bin and /dev/null differ diff --git a/img/player_front_0.png b/img/player_front_0.png deleted file mode 100644 index 32a0f49..0000000 Binary files a/img/player_front_0.png and /dev/null differ diff --git a/img/player_front_1.bin b/img/player_front_1.bin deleted file mode 100644 index bbbc732..0000000 Binary files a/img/player_front_1.bin and /dev/null differ diff --git a/img/player_front_1.png b/img/player_front_1.png deleted file mode 100644 index 1fa37cc..0000000 Binary files a/img/player_front_1.png and /dev/null differ diff --git a/img/player_front_2.bin b/img/player_front_2.bin deleted file mode 100644 index 97930f7..0000000 Binary files a/img/player_front_2.bin and /dev/null differ diff --git a/img/player_front_2.png b/img/player_front_2.png deleted file mode 100644 index e14ebc5..0000000 Binary files a/img/player_front_2.png and /dev/null differ diff --git a/img/player_left_0.bin b/img/player_left_0.bin deleted file mode 100644 index 4599e26..0000000 Binary files a/img/player_left_0.bin and /dev/null differ diff --git a/img/player_left_0.png b/img/player_left_0.png deleted file mode 100644 index 2baca03..0000000 Binary files a/img/player_left_0.png and /dev/null differ diff --git a/img/player_left_1.bin b/img/player_left_1.bin deleted file mode 100644 index dd647fc..0000000 Binary files a/img/player_left_1.bin and /dev/null differ diff --git a/img/player_left_1.png b/img/player_left_1.png deleted file mode 100644 index 3cf3f9f..0000000 Binary files a/img/player_left_1.png and /dev/null differ diff --git a/img/player_left_2.bin b/img/player_left_2.bin deleted file mode 100644 index dd647fc..0000000 Binary files a/img/player_left_2.bin and /dev/null differ diff --git a/img/player_left_2.png b/img/player_left_2.png deleted file mode 100644 index 3cf3f9f..0000000 Binary files a/img/player_left_2.png and /dev/null differ diff --git a/img/player_right_0.bin b/img/player_right_0.bin deleted file mode 100644 index 4e1060e..0000000 Binary files a/img/player_right_0.bin and /dev/null differ diff --git a/img/player_right_0.png b/img/player_right_0.png deleted file mode 100644 index bb19c69..0000000 Binary files a/img/player_right_0.png and /dev/null differ diff --git a/img/player_right_1.bin b/img/player_right_1.bin deleted file mode 100644 index 5910571..0000000 Binary files a/img/player_right_1.bin and /dev/null differ diff --git a/img/player_right_1.png b/img/player_right_1.png deleted file mode 100644 index 022673c..0000000 Binary files a/img/player_right_1.png and /dev/null differ diff --git a/img/player_right_2.bin b/img/player_right_2.bin deleted file mode 100644 index 5910571..0000000 Binary files a/img/player_right_2.bin and /dev/null differ diff --git a/img/player_right_2.png b/img/player_right_2.png deleted file mode 100644 index 022673c..0000000 Binary files a/img/player_right_2.png and /dev/null differ diff --git a/img/tile.bin b/img/tile.bin deleted file mode 100644 index 47e274f..0000000 Binary files a/img/tile.bin and /dev/null differ diff --git a/img/tile.png b/img/tile.png deleted file mode 100644 index 6d6c46f..0000000 Binary files a/img/tile.png and /dev/null differ