move source files to src

This commit is contained in:
2023-07-08 12:20:34 +02:00
parent 6028c5770f
commit e5c2294f6c
43 changed files with 23 additions and 21 deletions

View File

@@ -1,9 +1,9 @@
package main package main
import ( import (
"game/domain" "game/src/domain"
"game/konstructor" "game/src/konstructor"
"game/konstructor/engines/easy_ebitengine" "game/src/konstructor/engines/easy_ebitengine"
) )
func main() { func main() {

View File

@@ -1,7 +1,7 @@
package domain package domain
import ( import (
"game/konstructor" "game/src/konstructor"
) )
const ( const (

View File

@@ -1,7 +1,7 @@
package domain package domain
import ( import (
"game/konstructor" "game/src/konstructor"
) )
type Domain struct { type Domain struct {

View File

@@ -1,7 +1,7 @@
package domain package domain
import ( import (
"game/konstructor" "game/src/konstructor"
"image/color" "image/color"
) )

View File

@@ -1,7 +1,7 @@
package domain package domain
import ( import (
"game/konstructor" "game/src/konstructor"
"image/color" "image/color"
"github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten"

View File

@@ -1,6 +1,6 @@
package domain package domain
import "game/konstructor" import "game/src/konstructor"
func (d *Domain) AddToInventory(item *konstructor.Item) bool { func (d *Domain) AddToInventory(item *konstructor.Item) bool {
return true return true

View File

@@ -1,6 +1,6 @@
package domain package domain
import "game/konstructor" import "game/src/konstructor"
const ( const (
Level1Playground1 konstructor.PlaygroundID = "level_1_playground_1" Level1Playground1 konstructor.PlaygroundID = "level_1_playground_1"

View File

@@ -2,7 +2,7 @@ package domain
import ( import (
"fmt" "fmt"
"game/konstructor" "game/src/konstructor"
"os" "os"
) )

View File

@@ -1,6 +1,6 @@
package domain package domain
import "game/konstructor" import "game/src/konstructor"
func (d *Domain) Process(options konstructor.DomainProcessArgs) { func (d *Domain) Process(options konstructor.DomainProcessArgs) {

View File

@@ -1,6 +1,6 @@
package domain package domain
import "game/konstructor" import "game/src/konstructor"
const ( const (
SwordItemType konstructor.ItemTypeMapKey = "sword" SwordItemType konstructor.ItemTypeMapKey = "sword"

View File

@@ -1,6 +1,6 @@
package domain package domain
import "game/konstructor" import "game/src/konstructor"
const ( const (
TestNPCType konstructor.NPCTypeMapKey = "test_npc" TestNPCType konstructor.NPCTypeMapKey = "test_npc"

View File

@@ -1,6 +1,6 @@
package domain package domain
import "game/konstructor" import "game/src/konstructor"
const ( const (
TestPlatformType konstructor.PlatformTypeMapKey = "test_platform" TestPlatformType konstructor.PlatformTypeMapKey = "test_platform"

View File

@@ -1,6 +1,6 @@
package domain package domain
import "game/konstructor" import "game/src/konstructor"
const ( const (
DefaultPlayerType konstructor.PlayerTypeID = "default" DefaultPlayerType konstructor.PlayerTypeID = "default"

View File

@@ -1,7 +1,7 @@
package easy_ebitengine package easy_ebitengine
import ( import (
"game/konstructor" "game/src/konstructor"
"os" "os"
"github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten"

View File

@@ -1,7 +1,7 @@
package easy_ebitengine package easy_ebitengine
import ( import (
"game/konstructor" "game/src/konstructor"
"log" "log"
_ "image/png" _ "image/png"

View File

@@ -1,7 +1,7 @@
package easy_ebitengine package easy_ebitengine
import ( import (
"game/konstructor" "game/src/konstructor"
"github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten"
) )

View File

@@ -1,7 +1,7 @@
package easy_ebitengine package easy_ebitengine
import ( import (
"game/konstructor" "game/src/konstructor"
"github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten"
) )

View File

@@ -1,7 +1,7 @@
package easy_ebitengine package easy_ebitengine
import ( import (
"game/konstructor" "game/src/konstructor"
"github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten"
) )

View File

@@ -2,7 +2,7 @@ package easy_ebitengine
import ( import (
"fmt" "fmt"
"game/konstructor" "game/src/konstructor"
"image/color" "image/color"
"github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten"

View File

@@ -1,5 +1,7 @@
// Game framework inspired by AGI
package konstructor package konstructor
// Main struct of framework
type Konstructor struct { type Konstructor struct {
Domain DomainInterface Domain DomainInterface
EngineWrapper EngineWrapperInterface EngineWrapper EngineWrapperInterface