Drag flow into view-map

This is pretty awful, but will let me wire up items more easily without
needing to do the big refactor into independent menu handlers
This commit is contained in:
2020-06-13 16:37:39 +01:00
parent 7677c30572
commit 3b7cfb6ecc
5 changed files with 65 additions and 29 deletions

View File

@@ -2,7 +2,6 @@
package scenario
import (
"fmt"
"image"
"code.ur.gs/lupine/ordoor/internal/assetstore"
@@ -36,9 +35,9 @@ func NewScenario(assets *assetstore.AssetStore, name string) (*Scenario, error)
}
// Eager load sprites. TODO: do we really want to do this?
if err := area.LoadSprites(); err != nil {
return nil, fmt.Errorf("Eager-loading sprites failed: %v", err)
}
//if err := area.LoadSprites(); err != nil {
// return nil, fmt.Errorf("Eager-loading sprites failed: %v", err)
//}
out := &Scenario{
area: area,