Added the Grid, Camera, Level system
Basic player Started (Barely) on the TextureManager And other fixes
BIN
Resources/VisualStudioBad.png
Normal file
|
After Width: | Height: | Size: 232 KiB |
BIN
Resources/test.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
30
Resources/tiles/dirt/ConvertTexture.py
Normal file
@@ -0,0 +1,30 @@
|
||||
import os
|
||||
from PIL import Image
|
||||
|
||||
def convert_to_32bit(file_path):
|
||||
try:
|
||||
# Open the image
|
||||
image = Image.open(file_path)
|
||||
|
||||
# Convert to 32-bit color depth
|
||||
if image.mode != 'RGBA':
|
||||
image = image.convert('RGBA')
|
||||
|
||||
# Save the converted image
|
||||
converted_file_path = file_path.replace('.png', '_32bit.png')
|
||||
image.save(converted_file_path)
|
||||
|
||||
print(f"Conversion complete for '{file_path}'. Saved as '{converted_file_path}'")
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
script_directory = os.path.dirname(os.path.realpath(__file__))
|
||||
png_files = [f for f in os.listdir(script_directory) if f.lower().endswith('.png')]
|
||||
|
||||
if not png_files:
|
||||
print("No .png files found in the script directory.")
|
||||
else:
|
||||
for file_name in png_files:
|
||||
file_path = os.path.join(script_directory, file_name)
|
||||
convert_to_32bit(file_path)
|
||||
BIN
Resources/tiles/dirt/dirt1.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
Resources/tiles/dirt/dirt2.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
Resources/tiles/dirt/dirt3.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
Resources/tiles/dirt/dirt4.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
Resources/tiles/dirt/dirt5.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |