Change package name to edgaru089.ink/go/gl01 & Update dependencies

This commit is contained in:
2024-08-02 18:38:33 +08:00
parent e4fc6f4d96
commit c954c502ba
34 changed files with 90 additions and 82 deletions

View File

@@ -5,7 +5,7 @@ import (
"log"
"edgaru089.ml/go/gl01/internal/util"
"edgaru089.ink/go/gl01/internal/util"
)
// WorldTextureAtlas holds all the world block textures.

View File

@@ -3,9 +3,9 @@ package entities
import (
"time"
"edgaru089.ml/go/gl01/internal/entity"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ml/go/gl01/internal/world"
"edgaru089.ink/go/gl01/internal/entity"
"edgaru089.ink/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/world"
)
type PlayerBehaviour struct{}

View File

@@ -3,8 +3,8 @@ package entity
import (
"time"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ml/go/gl01/internal/world"
"edgaru089.ink/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/world"
)
// EntityBehaviour describes the behaviour of a type of entity with the same Name.

View File

@@ -4,9 +4,9 @@ import (
"math"
"time"
"edgaru089.ml/go/gl01/internal/util"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ml/go/gl01/internal/world"
"edgaru089.ink/go/gl01/internal/util"
"edgaru089.ink/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/world"
)
// WorldHitbox returns the hitboxes of the entity, in world coordinates.

View File

@@ -3,13 +3,13 @@ package game
import (
"time"
"edgaru089.ml/go/gl01/internal/entity"
"edgaru089.ml/go/gl01/internal/render"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ml/go/gl01/internal/world"
"edgaru089.ink/go/gl01/internal/entity"
"edgaru089.ink/go/gl01/internal/render"
"edgaru089.ink/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/world"
"github.com/inkyblackness/imgui-go/v4"
_ "edgaru089.ml/go/gl01/internal/entity/entities"
_ "edgaru089.ink/go/gl01/internal/entity/entities"
)
// Game holds a game scene.

View File

@@ -7,13 +7,13 @@ import (
"os"
"runtime"
"edgaru089.ml/go/gl01/internal/asset"
"edgaru089.ml/go/gl01/internal/igwrap"
"edgaru089.ml/go/gl01/internal/igwrap/backend"
"edgaru089.ml/go/gl01/internal/io"
"edgaru089.ml/go/gl01/internal/util"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ml/go/gl01/internal/world"
"edgaru089.ink/go/gl01/internal/asset"
"edgaru089.ink/go/gl01/internal/igwrap"
"edgaru089.ink/go/gl01/internal/igwrap/backend"
"edgaru089.ink/go/gl01/internal/io"
"edgaru089.ink/go/gl01/internal/util"
"edgaru089.ink/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/world"
"github.com/go-gl/glfw/v3.3/glfw"
"github.com/inkyblackness/imgui-go/v4"
)

View File

@@ -6,14 +6,14 @@ import (
"os"
"time"
"edgaru089.ml/go/gl01/internal/igwrap/backend"
"edgaru089.ml/go/gl01/internal/io"
"edgaru089.ml/go/gl01/internal/render"
"edgaru089.ml/go/gl01/internal/util"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ml/go/gl01/internal/world"
"edgaru089.ml/go/gl01/internal/world/blocks"
"edgaru089.ml/go/gl01/internal/world/worldgen"
"edgaru089.ink/go/gl01/internal/igwrap/backend"
"edgaru089.ink/go/gl01/internal/io"
"edgaru089.ink/go/gl01/internal/render"
"edgaru089.ink/go/gl01/internal/util"
"edgaru089.ink/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/world"
"edgaru089.ink/go/gl01/internal/world/blocks"
"edgaru089.ink/go/gl01/internal/world/worldgen"
"github.com/go-gl/glfw/v3.3/glfw"
"github.com/go-gl/mathgl/mgl64"
)

View File

@@ -6,13 +6,13 @@ import (
"time"
"unsafe"
"edgaru089.ml/go/gl01/internal/asset"
"edgaru089.ml/go/gl01/internal/igwrap"
"edgaru089.ml/go/gl01/internal/igwrap/backend"
"edgaru089.ml/go/gl01/internal/io"
"edgaru089.ml/go/gl01/internal/render"
"edgaru089.ml/go/gl01/internal/util"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/asset"
"edgaru089.ink/go/gl01/internal/igwrap"
"edgaru089.ink/go/gl01/internal/igwrap/backend"
"edgaru089.ink/go/gl01/internal/io"
"edgaru089.ink/go/gl01/internal/render"
"edgaru089.ink/go/gl01/internal/util"
"edgaru089.ink/go/gl01/internal/util/itype"
"github.com/go-gl/gl/all-core/gl"
"github.com/go-gl/glfw/v3.3/glfw"
"github.com/go-gl/mathgl/mgl32"

View File

@@ -4,11 +4,11 @@ import (
"math"
"time"
"edgaru089.ml/go/gl01/internal/asset"
"edgaru089.ml/go/gl01/internal/igwrap"
"edgaru089.ml/go/gl01/internal/io"
"edgaru089.ml/go/gl01/internal/util"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/asset"
"edgaru089.ink/go/gl01/internal/igwrap"
"edgaru089.ink/go/gl01/internal/io"
"edgaru089.ink/go/gl01/internal/util"
"edgaru089.ink/go/gl01/internal/util/itype"
"github.com/inkyblackness/imgui-go/v4"
)

View File

@@ -3,8 +3,8 @@ package backend
import (
_ "embed"
"edgaru089.ml/go/gl01/internal/igwrap"
"edgaru089.ml/go/gl01/internal/render"
"edgaru089.ink/go/gl01/internal/igwrap"
"edgaru089.ink/go/gl01/internal/render"
"github.com/go-gl/gl/all-core/gl"
"github.com/go-gl/glfw/v3.3/glfw"
"github.com/go-gl/mathgl/mgl32"

View File

@@ -3,7 +3,7 @@ package igwrap
import (
"math"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/util/itype"
"github.com/inkyblackness/imgui-go/v4"
)

View File

@@ -3,7 +3,7 @@ package igwrap
import (
"sync"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/util/itype"
"github.com/inkyblackness/imgui-go/v4"
)

View File

@@ -3,7 +3,7 @@ package igwrap
import (
"fmt"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/util/itype"
"github.com/inkyblackness/imgui-go/v4"
)

View File

@@ -1,6 +1,6 @@
package io
import "edgaru089.ml/go/gl01/internal/util"
import "edgaru089.ink/go/gl01/internal/util"
var (
MainConfig struct {

View File

@@ -3,7 +3,7 @@ package io
import (
"time"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/util/itype"
)
var (

View File

@@ -4,8 +4,8 @@ import (
"image/color"
"unsafe"
"edgaru089.ml/go/gl01/internal/asset"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/asset"
"edgaru089.ink/go/gl01/internal/util/itype"
"github.com/go-gl/gl/all-core/gl"
"github.com/go-gl/mathgl/mgl32"
)

View File

@@ -4,7 +4,7 @@ import (
_ "embed"
"unsafe"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/util/itype"
"github.com/go-gl/gl/all-core/gl"
)

View File

@@ -5,7 +5,7 @@ import (
"log"
"strings"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/util/itype"
"github.com/go-gl/gl/all-core/gl"
"github.com/go-gl/mathgl/mgl32"
)

View File

@@ -1,7 +1,7 @@
package render
import (
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/util/itype"
"github.com/go-gl/mathgl/mgl32"
)

View File

@@ -8,7 +8,7 @@ import (
"log"
"sort"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/util/itype"
)
// The largest width a texture atlas can grow to.

View File

@@ -1,6 +1,6 @@
package util
import "edgaru089.ml/go/gl01/internal/util/itype"
import "edgaru089.ink/go/gl01/internal/util/itype"
func BunnyhopAccelerate(accelDir, prevVel itype.Vec3d, accelVel, maxVel float64) (resultVel itype.Vec3d) {
if accelVel < 1e-4 {

View File

@@ -3,7 +3,7 @@ package world
import (
"fmt"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/util/itype"
)
// BlockRenderType is an enum describing the rendering process of a block

View File

@@ -1,6 +1,6 @@
package blocks
import "edgaru089.ml/go/gl01/internal/world"
import "edgaru089.ink/go/gl01/internal/world"
const (
Nil = iota

View File

@@ -1,9 +1,9 @@
package blocks
import (
"edgaru089.ml/go/gl01/internal/asset"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ml/go/gl01/internal/world"
"edgaru089.ink/go/gl01/internal/asset"
"edgaru089.ink/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/world"
)
// texname is the full filename of the texture file (with .png)

View File

@@ -1,8 +1,8 @@
package blocks
import (
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ml/go/gl01/internal/world"
"edgaru089.ink/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/world"
)
type SlabBehaviour struct{}

View File

@@ -1,8 +1,8 @@
package blocks
import (
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ml/go/gl01/internal/world"
"edgaru089.ink/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/world"
)
type WaterBehaviour struct{}

View File

@@ -5,7 +5,7 @@ import (
"io"
"log"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/util/itype"
)
const (

View File

@@ -5,10 +5,10 @@ import (
"time"
"unsafe"
"edgaru089.ml/go/gl01/internal/asset"
"edgaru089.ml/go/gl01/internal/io"
"edgaru089.ml/go/gl01/internal/util"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/asset"
"edgaru089.ink/go/gl01/internal/io"
"edgaru089.ink/go/gl01/internal/util"
"edgaru089.ink/go/gl01/internal/util/itype"
"github.com/go-gl/gl/all-core/gl"
)

View File

@@ -1,7 +1,7 @@
package world
import (
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/util/itype"
)
func (w *World) castworker(from, dir itype.Vec3d, maxlen float64, current itype.Vec3i, skipdir itype.Direction) (ok bool, blockcoord itype.Vec3i, face itype.Direction, where itype.Vec3d, dist float64) {

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"io"
"edgaru089.ml/go/gl01/internal/util/itype"
"edgaru089.ink/go/gl01/internal/util/itype"
)
// World holds a number of Chunks and Entities.

View File

@@ -3,8 +3,8 @@ package worldgen
import (
"sync"
packworld "edgaru089.ml/go/gl01/internal/world"
"edgaru089.ml/go/gl01/internal/world/blocks"
packworld "edgaru089.ink/go/gl01/internal/world"
"edgaru089.ink/go/gl01/internal/world/blocks"
"github.com/aquilax/go-perlin"
)