mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-19 02:46:35 -05:00
8a547ebf0e
* Prevent input fighting between terminal and other input listeners. * Moving files around, removing exports * Add missing line
42 lines
750 B
Go
42 lines
750 B
Go
package d2gamescene
|
|
|
|
import (
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2data/d2video"
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2core/d2asset"
|
|
"github.com/hajimehoshi/ebiten"
|
|
)
|
|
|
|
type BlizzardIntro struct {
|
|
videoDecoder *d2video.BinkDecoder
|
|
}
|
|
|
|
func CreateBlizzardIntro() *BlizzardIntro {
|
|
result := &BlizzardIntro{}
|
|
|
|
return result
|
|
}
|
|
|
|
func (v *BlizzardIntro) Load() []func() {
|
|
return []func(){
|
|
func() {
|
|
videoBytes, err := d2asset.LoadFile("/data/local/video/BlizNorth640x480.bik")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
v.videoDecoder = d2video.CreateBinkDecoder(videoBytes)
|
|
},
|
|
}
|
|
}
|
|
|
|
func (v *BlizzardIntro) Unload() {
|
|
|
|
}
|
|
|
|
func (v *BlizzardIntro) Render(screen *ebiten.Image) {
|
|
|
|
}
|
|
|
|
func (v *BlizzardIntro) Update(tickTime float64) {
|
|
|
|
}
|