move source files to src
This commit is contained in:
6
main.go
6
main.go
@@ -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() {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/konstructor"
|
"game/src/konstructor"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/konstructor"
|
"game/src/konstructor"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Domain struct {
|
type Domain struct {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/konstructor"
|
"game/src/konstructor"
|
||||||
"image/color"
|
"image/color"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -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"
|
||||||
@@ -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
|
||||||
@@ -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"
|
||||||
@@ -2,7 +2,7 @@ package domain
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"game/konstructor"
|
"game/src/konstructor"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -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) {
|
||||||
|
|
||||||
@@ -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"
|
||||||
@@ -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"
|
||||||
@@ -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"
|
||||||
@@ -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"
|
||||||
@@ -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"
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package easy_ebitengine
|
package easy_ebitengine
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game/konstructor"
|
"game/src/konstructor"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
_ "image/png"
|
_ "image/png"
|
||||||
@@ -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"
|
||||||
)
|
)
|
||||||
@@ -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"
|
||||||
)
|
)
|
||||||
@@ -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"
|
||||||
)
|
)
|
||||||
@@ -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"
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user