posodobitve

This commit is contained in:
2025-12-12 13:40:51 +01:00
parent a210638002
commit 6c583a6576
32 changed files with 6586 additions and 703 deletions

101
assets/videos/README.md Normal file
View File

@@ -0,0 +1,101 @@
# 🎬 VIDEO FILES
**Lokacija:** `assets/videos/`
---
## 📁 **KAM DATI MP4 VIDEO:**
**1. Kopiraj MP4 file sem:**
```
c:\novafarma\assets\videos\
```
**Primeri:**
- `intro.mp4` - Intro cutscene
- `boss_intro.mp4` - Boss encounter
- `background.mp4` - Background loop
- `tutorial.mp4` - Tutorial video
---
## 🎮 **KAKO UPORABITI:**
**1. Preload (v GameScene.js ali PreloadScene.js):**
```javascript
preload() {
this.load.video('intro', 'assets/videos/intro.mp4');
}
```
**2. Play (v create()):**
```javascript
create() {
const video = this.add.video(400, 300, 'intro');
video.play();
}
```
---
## 📝 **PRIMERI:**
### **Fullscreen Intro:**
```javascript
const video = this.add.video(
this.cameras.main.centerX,
this.cameras.main.centerY,
'intro'
);
video.setDisplaySize(
this.cameras.main.width,
this.cameras.main.height
);
video.play();
```
### **Background Loop:**
```javascript
const bg = this.add.video(0, 0, 'background');
bg.setOrigin(0, 0);
bg.setDisplaySize(800, 600);
bg.setDepth(-1000);
bg.setLoop(true);
bg.play();
```
### **Skip on Click:**
```javascript
this.input.on('pointerdown', () => {
video.stop();
this.scene.start('GameScene');
});
```
---
## ⚠️ **POMEMBNO:**
**File Format:**
- MP4 (H.264 codec)
- Resolution: 720p ali 1080p
- File size: < 50 MB
**Performance:**
- Ne uporabljaj preveč video hkrati
- Mobile: Lower resolution
---
## ✅ **QUICK START:**
1. **Kopiraj MP4 v:** `assets/videos/intro.mp4`
2. **Dodaj v code:** Glej zgoraj
3. **Test:** Zaženi igro
---
**Mapa je pripravljena!** 🎬
**Kopiraj MP4 file v:**
`c:\novafarma\assets\videos\`