Hard Reset: Purged all assets and cleaned up PreloadScene image loading

This commit is contained in:
2025-12-28 01:55:28 +01:00
parent c8743986ad
commit 5b0aebe3dc
19801 changed files with 158 additions and 38940 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 656 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 728 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 875 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 546 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 314 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 848 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 894 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 522 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 520 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 572 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 367 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 546 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 600 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 545 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 472 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 591 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 503 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 496 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 478 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 482 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 428 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 538 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 684 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 696 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 732 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 604 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 576 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 766 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 557 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 491 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 671 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 720 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 733 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 631 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 598 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 710 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 656 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 845 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 580 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 548 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 722 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 746 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 585 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 761 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 577 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 626 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 570 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 718 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 534 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 710 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 520 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 604 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 868 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 711 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 842 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 830 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 743 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 960 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 616 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 677 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 499 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 754 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 734 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 646 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 659 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 610 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 816 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 535 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 696 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 583 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 629 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 694 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 824 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 631 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 865 KiB

View File

@@ -1,138 +0,0 @@
# 🎮 Kako Uporabiti Obdelane Tilesete v Tiled
## ✅ Kaj Smo Naredili
Uspešno smo obdelali **234 tileset slik** iz treh map:
- `topdown_objects` (7 slik)
- `krvava_zetev_sprites` (60 slik)
- `tiled_sprites` (180 slik)
Vse slike so zdaj:
- ✂️ **Narezane** (odstranjen prazen prostor)
- 📏 **Pomanjšane** na 50% originalne velikosti
- 💾 **Shranjene** v `assets/narezano_in_majhno/`
---
## 🚀 Naslednji Koraki
### 1⃣ Preglej Obdelane Slike
Odpri mapo in preveri, ali so slike pravilno obdelane:
```
c:\novafarma\assets\narezano_in_majhno\
```
### 2⃣ Ustvari TSX Datoteke za Tiled
Za vsako sliko, ki jo želiš uporabiti v Tiled, ustvari `.tsx` datoteko:
**Primer: `kai_character_2x2_grid_1766098371171_obdelan.png`**
Ustvari datoteko: `assets/tilesets/kai_character_obdelan.tsx`
```xml
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.10" tiledversion="1.11.1" name="Kai Character (Obdelan)" tilewidth="96" tileheight="96" tilecount="1" columns="1">
<image source="../narezano_in_majhno/krvava_zetev_sprites/kai_character_2x2_grid_1766098371171_obdelan.png" width="96" height="96"/>
</tileset>
```
**Pomembno**:
- `tilewidth` in `tileheight` morata biti velikost **enega tile-a** (ne celotne slike!)
- Če je slika 96x96px in je to en objekt, uporabi `tilewidth="96" tileheight="96"`
- Če je slika 192x192px in vsebuje 2x2 grid (4 tile-e), uporabi `tilewidth="96" tileheight="96"`
### 3⃣ Dodaj Tileset v Tiled Mapo
1. Odpri svojo mapo (npr. `micro_farm_128x128.tmx`)
2. Klikni **Map****Add External Tileset...**
3. Izberi `.tsx` datoteko, ki si jo ustvaril
4. Tileset se bo prikazal v **Tilesets** panelu
### 4⃣ Uporabi v Mapi
1. Izberi tileset v **Tilesets** panelu
2. Izberi tile, ki ga želiš postaviti
3. Klikni na mapo, kjer želiš postaviti tile
4. Tile se bo prikazal na mapi!
---
## 📐 Priporočene Velikosti za Tiled
Glede na tvoj projekt (48x48px ground tiles):
### Objekti na Mapi
- **Majhni objekti** (orodja, predmeti): 48x48px (1x1 tile)
- **Srednji objekti** (šotor, ogenj): 96x96px (2x2 tiles)
- **Veliki objekti** (hiše, drevesa): 144x144px ali 192x192px (3x3 ali 4x4 tiles)
### Če Želiš Spremeniti Velikost
Če so obdelane slike še vedno prevelike/premajhne:
1. Odpri `tools/obdelaj_tilesete.py`
2. Spremeni `nova_velikost_faktor`:
```python
nova_velikost_faktor = 0.3 # Za 30% (manjše)
nova_velikost_faktor = 0.7 # Za 70% (večje)
```
3. Zaženi ponovno:
```bash
python tools/obdelaj_tilesete.py
```
---
## 🎨 Primeri Uporabe
### Primer 1: Dodaj Kai Karakterja
1. Ustvari `assets/tilesets/kai_obdelan.tsx`
2. Dodaj v `micro_farm_128x128.tmx`
3. Postavi na mapo kot **Object Layer** (ne Tile Layer!)
### Primer 2: Dodaj Orodja Pack
1. Ustvari `assets/tilesets/tools_pack_obdelan.tsx`
2. Če je na sliki več orodij (grid), nastavi `tilewidth` in `tileheight` na velikost enega orodja
3. Dodaj v mapo in izberi posamezno orodje iz grida
### Primer 3: Dodaj Zgradbe
1. Ustvari `assets/tilesets/buildings_obdelan.tsx`
2. Če je zgradba večja (npr. 192x192px), nastavi `tilewidth="192" tileheight="192"`
3. Dodaj kot **Object** (ne Tile!), da lahko postaviš na poljubno pozicijo
---
## 🔧 Avtomatizacija (Opcijsko)
Če želiš **avtomatsko generirati TSX datoteke** za vse obdelane slike:
```python
# Ustvari tools/generiraj_tsx.py
# Ta skript bo avtomatsko ustvaril .tsx datoteke za vse slike v narezano_in_majhno/
```
Ali pa mi povej, če želiš, da ti ustvarim ta skript! 😊
---
## 📝 Troubleshooting
### Problem: Slika je preveč narezana
- Zmanjšaj `min_velikost_objekta` v `obdelaj_tilesete.py`
### Problem: Slika je še vedno prevelika
- Zmanjšaj `nova_velikost_faktor` (npr. na 0.3)
### Problem: Na sliki je več objektov, a so vsi skupaj
- Skript poskuša najti ločene objekte glede na prosojnost
- Če so objekti povezani, jih bo obdelal kot en objekt
- Ročno narezovanje v Photoshop/GIMP je najboljša opcija
---
**Srečno z ustvarjanjem map!** 🎮✨

View File

@@ -1,115 +0,0 @@
# 📊 Obdelava Tileset Slik - Povzetek
**Datum**: 2025-12-21
**Status**: ✅ USPEŠNO KONČANO
---
## 🎯 Kaj Smo Naredili
Uspešno obdelali **234 tileset slik** iz več map, kjer so bile na posameznih slikah več predmetov skupaj.
### Proces:
1. ✅ Ustvarjen Python skript `tools/obdelaj_tilesete.py`
2. ✅ Nameščene potrebne knjižnice (numpy, scipy, pillow)
3. ✅ Obdelanih 234 slik iz 3 map
4. ✅ Ustvarjena izhodna struktura v `assets/narezano_in_majhno/`
5. ✅ Ustvarjena dokumentacija in navodila
---
## 📂 Rezultati
### Vhodne Mape (Izvorne Slike):
- `assets/topdown_objects` → 7 slik
- `assets/krvava_zetev_sprites` → 60 slik
- `assets/tiled_sprites` → 180 slik
### Izhodna Mapa (Obdelane Slike):
```
assets/narezano_in_majhno/
├── topdown_objects/ (7 obdelanih slik)
├── krvava_zetev_sprites/ (60 obdelanih slik)
└── tiled_sprites/ (180 obdelanih slik)
```
**Skupaj**: 247 obdelanih datotek
---
## 🔧 Nastavitve Obdelave
- **Faktor pomanjševanja**: 0.5 (50% originalne velikosti)
- **Minimalna velikost objekta**: 20px
- **Format**: PNG z alpha kanalom (prosojnost)
- **Kvaliteta**: LANCZOS resampling (najboljša kvaliteta)
---
## 📝 Ustvarjene Datoteke
1. **`tools/obdelaj_tilesete.py`** - Glavni skript za obdelavo
2. **`assets/narezano_in_majhno/README.md`** - Dokumentacija o obdelanih slikah
3. **`assets/narezano_in_majhno/KAKO_UPORABITI.md`** - Navodila za uporabo v Tiled
4. **`assets/narezano_in_majhno/POVZETEK.md`** - Ta datoteka
---
## 🚀 Naslednji Koraki
### 1. Preglej Obdelane Slike
Odpri mapo `assets/narezano_in_majhno/` in preveri rezultate.
### 2. Ustvari TSX Datoteke
Za vsako sliko, ki jo želiš uporabiti v Tiled, ustvari `.tsx` datoteko v `assets/tilesets/`.
**Primer**:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.10" name="Ime Tileseta" tilewidth="96" tileheight="96" tilecount="1" columns="1">
<image source="../narezano_in_majhno/[mapa]/[ime_slike].png" width="96" height="96"/>
</tileset>
```
### 3. Dodaj v Tiled Mapo
- Odpri `micro_farm_128x128.tmx`
- Map → Add External Tileset...
- Izberi `.tsx` datoteko
- Uporabi tile na mapi!
---
## 🎨 Priporočila
### Velikosti za Tvoj Projekt (48x48px ground tiles):
- **Majhni objekti**: 48x48px (1x1 tile)
- **Srednji objekti**: 96x96px (2x2 tiles)
- **Veliki objekti**: 144x144px ali 192x192px (3x3 ali 4x4 tiles)
### Če Želiš Spremeniti Velikost:
1. Odpri `tools/obdelaj_tilesete.py`
2. Spremeni `nova_velikost_faktor` (npr. 0.3 za 30%, 0.7 za 70%)
3. Zaženi: `python tools/obdelaj_tilesete.py`
---
## 📊 Statistika
- **Obdelanih slik**: 234
- **Izhodnih datotek**: 247
- **Skupna velikost (približno)**: ~150 MB → ~40 MB (73% prihranek)
- **Čas obdelave**: ~10 sekund
---
## ✨ Uspeh!
Vse tileset slike so zdaj pripravljene za uporabo v Tiled Map Editor-ju! 🎮
**Naslednji korak**: Ustvari `.tsx` datoteke in dodaj v svojo mapo.
---
**Skript**: `tools/obdelaj_tilesete.py`
**Dokumentacija**: `assets/narezano_in_majhno/README.md`
**Navodila**: `assets/narezano_in_majhno/KAKO_UPORABITI.md`

View File

@@ -1,91 +0,0 @@
# 📦 Narezani in Pomanjšani Tileset Asseti
## 🎯 Namen
Ta mapa vsebuje **avtomatsko obdelane** tileset slike iz izvornih map. Vsaka slika je bila:
- ✂️ **Narezana** - odstranjeno prazno ozadje
- 📏 **Pomanjšana** na 50% originalne velikosti
- 💾 **Shranjena** v organizirani strukturi
## 📂 Struktura
```
narezano_in_majhno/
├── topdown_objects/ (7 slik)
├── krvava_zetev_sprites/ (60 slik)
└── tiled_sprites/ (180 slik)
```
**Skupaj: 247 obdelanih slik**
## 🔧 Kako je bilo obdelano
### Izvorna Mapa → Obdelana Mapa
- `assets/topdown_objects``narezano_in_majhno/topdown_objects`
- `assets/krvava_zetev_sprites``narezano_in_majhno/krvava_zetev_sprites`
- `assets/tiled_sprites``narezano_in_majhno/tiled_sprites`
### Proces Obdelave
1. **Nalaganje slike** - Prebere PNG/JPG sliko
2. **Iskanje objektov** - Najde vse neprosojne dele slike
3. **Narezovanje** - Izreže vsak objekt posebej (odstrani prazno ozadje)
4. **Pomanjševanje** - Zmanjša na 50% (faktor: 0.5)
5. **Shranjevanje** - Shrani kot `[ime]_obdelan.png`
### Nastavitve
- **Faktor pomanjševanja**: 0.5 (50%)
- **Minimalna velikost objekta**: 20px
- **Format**: PNG z alpha kanalom (prosojnost)
## 🎨 Uporaba v Tiled
Te slike so **pripravljene za uporabo v Tiled Map Editor**:
1. **Uvozi tileset**:
- `Map``New Tileset`
- Izberi sliko iz te mape
- Nastavi tile size glede na velikost slike
2. **Uporabi v mapi**:
- Povleci tile iz tileset palete
- Postavi na mapo
## 📊 Primerjava Velikosti
### Primer: `starting_camp_topdown_1766184594524.png`
- **Original**: 623 KB, ~1024x1024px
- **Obdelan**: ~156 KB, ~512x512px
- **Prihranek**: ~75% manjša datoteka
## 🔄 Ponovno Generiranje
Če želiš ponovno obdelati slike ali spremeniti nastavitve:
```bash
python tools/obdelaj_tilesete.py
```
### Spreminjanje Nastavitev
Odpri `tools/obdelaj_tilesete.py` in spremeni:
```python
nova_velikost_faktor = 0.5 # Spremeni na 0.3 za 30%, 0.7 za 70%, itd.
min_velikost_objekta = 20 # Spremeni minimalno velikost objekta
```
## 📝 Opombe
- **Večobjektne slike**: Če je na eni sliki več objektov, skript poskuša najti vse objekte posebej
- **Prosojnost**: Skript deluje najbolje s PNG slikami s prosojnim ozadjem
- **Kvaliteta**: Uporablja LANCZOS resampling za najboljšo kvaliteto pomanjševanja
## 🚀 Naslednji Koraki
1. **Preglej slike** - Preveri, ali so slike pravilno narezane
2. **Ustvari TSX datoteke** - Za vsako sliko ustvari Tiled tileset (.tsx)
3. **Dodaj v mapo** - Uporabi v `micro_farm_128x128.tmx` ali drugih mapah
---
**Generirano**: 2025-12-21
**Skript**: `tools/obdelaj_tilesete.py`
**Obdelanih slik**: 234 → 247 output datotek

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 414 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 459 KiB

Some files were not shown because too many files have changed in this diff Show More