trust me to set up the vanity path before fixing the module
Some checks failed
Go / build (push) Has been cancelled
Some checks failed
Go / build (push) Has been cancelled
This commit is contained in:
parent
0be2bd36b2
commit
deebbca0ed
21 changed files with 36 additions and 34 deletions
|
@ -1,9 +1,9 @@
|
|||
# ichigo 🍓
|
||||
|
||||
![Build status](https://github.com/DrJosh9000/ichigo/actions/workflows/go.yml/badge.svg)
|
||||
[![Go Reference](https://pkg.go.dev/badge/github.com/DrJosh9000/ichigo.svg)](https://pkg.go.dev/github.com/DrJosh9000/ichigo)
|
||||
[![Go Report Card](https://goreportcard.com/badge/github.com/DrJosh9000/ichigo)](https://goreportcard.com/report/github.com/DrJosh9000/ichigo)
|
||||
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/DrJosh9000/ichigo/blob/main/LICENSE)
|
||||
![Build status](https://drjosh.dev/ichigo/actions/workflows/go.yml/badge.svg)
|
||||
[![Go Reference](https://pkg.go.dev/badge/drjosh.dev/ichigo.svg)](https://pkg.go.dev/drjosh.dev/ichigo)
|
||||
[![Go Report Card](https://goreportcard.com/badge/drjosh.dev/ichigo)](https://goreportcard.com/report/drjosh.dev/ichigo)
|
||||
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://gitea.drjosh.dev/josh/ichigo/blob/main/LICENSE)
|
||||
|
||||
Game engine development in progress.
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"errors"
|
||||
"log"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
)
|
||||
|
||||
// Ensure Actor satisfies interfaces.
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"encoding/gob"
|
||||
"fmt"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"encoding/gob"
|
||||
"image"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import (
|
|||
"math"
|
||||
"strings"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
|
@ -364,6 +364,7 @@ func (d dag) addEdge(u, v Drawer) {
|
|||
}
|
||||
|
||||
// removeEdge removes the edge (u -> v) in O(1).
|
||||
//
|
||||
//lint:ignore U1000 this exists for symmetry with addEdge
|
||||
func (d dag) removeEdge(u, v Drawer) {
|
||||
delete(d[v].in, u)
|
||||
|
|
|
@ -19,7 +19,7 @@ package engine
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
|
|
@ -27,7 +27,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
|
@ -60,10 +60,10 @@ type Game struct {
|
|||
VoxelScale geom.Float3
|
||||
|
||||
dbmu sync.RWMutex
|
||||
byID map[string]Identifier // Named components by ID
|
||||
byAB map[abKey]*Container // paths matching interface
|
||||
parent map[any]any // parent[x] is parent of x
|
||||
children map[any]*Container // children[x] are children of x
|
||||
byID map[string]Identifier // Named components by ID
|
||||
byAB map[abKey]*Container // paths matching interface
|
||||
parent map[any]any // parent[x] is parent of x
|
||||
children map[any]*Container // children[x] are children of x
|
||||
}
|
||||
|
||||
// Draw draws everything.
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"io/fs"
|
||||
"reflect"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"encoding/gob"
|
||||
"fmt"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"fmt"
|
||||
"image"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ package engine
|
|||
import (
|
||||
"image"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ package engine
|
|||
import (
|
||||
"encoding/gob"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
)
|
||||
|
||||
var _ Collider = SolidRect{}
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"fmt"
|
||||
"image"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import (
|
|||
"image"
|
||||
"io/fs"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ package engine
|
|||
import (
|
||||
"image"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -18,7 +18,8 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
// This is an example game using the engine. Run it with:
|
||||
// go run -tags example example.go
|
||||
//
|
||||
// go run -tags example example.go
|
||||
package main
|
||||
|
||||
import (
|
||||
|
@ -31,9 +32,9 @@ import (
|
|||
"runtime"
|
||||
"runtime/pprof"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/engine"
|
||||
"github.com/DrJosh9000/ichigo/example"
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/engine"
|
||||
"drjosh.dev/ichigo/example"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@ import (
|
|||
"fmt"
|
||||
"math"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/engine"
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/engine"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
"github.com/hajimehoshi/ebiten/v2/inpututil"
|
||||
)
|
||||
|
|
|
@ -21,8 +21,8 @@ import (
|
|||
"image"
|
||||
"math/rand"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/engine"
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/engine"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
)
|
||||
|
||||
var _ interface {
|
||||
|
|
|
@ -20,8 +20,8 @@ import (
|
|||
"image"
|
||||
"time"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/engine"
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/engine"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
)
|
||||
|
||||
// Level1 creates the level_1 scene.
|
||||
|
|
|
@ -23,7 +23,7 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/DrJosh9000/ichigo/geom"
|
||||
"drjosh.dev/ichigo/geom"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/DrJosh9000/ichigo
|
||||
module drjosh.dev/ichigo
|
||||
|
||||
go 1.18
|
||||
|
||||
|
|
Loading…
Reference in a new issue