1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-02 09:17:19 -04:00
OpenDiablo2/scenes/BlizzardIntro.go
2019-11-06 22:12:15 -05:00

44 lines
869 B
Go

package scenes
import (
"github.com/OpenDiablo2/OpenDiablo2/common"
"github.com/OpenDiablo2/OpenDiablo2/video"
"github.com/hajimehoshi/ebiten"
)
type BlizzardIntro struct {
fileProvider common.FileProvider
sceneProvider SceneProvider
videoDecoder *video.BinkDecoder
}
func CreateBlizzardIntro(fileProvider common.FileProvider, sceneProvider SceneProvider) *BlizzardIntro {
result := &BlizzardIntro{
fileProvider: fileProvider,
sceneProvider: sceneProvider,
}
return result
}
func (v *BlizzardIntro) Load() []func() {
return []func(){
func() {
videoBytes := v.fileProvider.LoadFile("/data/local/video/BlizNorth640x480.bik")
v.videoDecoder = video.CreateBinkDecoder(videoBytes)
},
}
}
func (v *BlizzardIntro) Unload() {
}
func (v *BlizzardIntro) Render(screen *ebiten.Image) {
}
func (v *BlizzardIntro) Update(tickTime float64) {
}