Change package name to edgaru089.ink/go/gl01 & Update dependencies
This commit is contained in:
@@ -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.
|
||||
|
@@ -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{}
|
||||
|
@@ -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.
|
||||
|
@@ -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.
|
||||
|
@@ -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.
|
||||
|
@@ -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"
|
||||
)
|
||||
|
@@ -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"
|
||||
)
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
package io
|
||||
|
||||
import "edgaru089.ml/go/gl01/internal/util"
|
||||
import "edgaru089.ink/go/gl01/internal/util"
|
||||
|
||||
var (
|
||||
MainConfig struct {
|
||||
|
@@ -3,7 +3,7 @@ package io
|
||||
import (
|
||||
"time"
|
||||
|
||||
"edgaru089.ml/go/gl01/internal/util/itype"
|
||||
"edgaru089.ink/go/gl01/internal/util/itype"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@@ -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"
|
||||
)
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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"
|
||||
)
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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 {
|
||||
|
@@ -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
|
||||
|
@@ -1,6 +1,6 @@
|
||||
package blocks
|
||||
|
||||
import "edgaru089.ml/go/gl01/internal/world"
|
||||
import "edgaru089.ink/go/gl01/internal/world"
|
||||
|
||||
const (
|
||||
Nil = iota
|
||||
|
@@ -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)
|
||||
|
@@ -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{}
|
||||
|
@@ -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{}
|
||||
|
@@ -5,7 +5,7 @@ import (
|
||||
"io"
|
||||
"log"
|
||||
|
||||
"edgaru089.ml/go/gl01/internal/util/itype"
|
||||
"edgaru089.ink/go/gl01/internal/util/itype"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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) {
|
||||
|
@@ -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.
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user