You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
441 B
Go
34 lines
441 B
Go
1 year ago
|
package main
|
||
|
|
||
|
import (
|
||
|
// "fmt"
|
||
|
|
||
|
"github.com/EngoEngine/ecs"
|
||
|
|
||
|
"code.ndumas.com/ndumas/gomud/engine"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
w := ecs.World{}
|
||
|
trs := engine.TELNETRenderSystem{}
|
||
|
|
||
|
w.AddSystem(trs)
|
||
|
|
||
|
player1 := engine.DemoEntity{
|
||
|
ecs.NewBasic(),
|
||
|
&engine.RenderComponent{
|
||
|
Color: true,
|
||
|
},
|
||
|
}
|
||
|
|
||
|
w.AddEntity(&player1)
|
||
|
// addbyinterface isn't working right, why
|
||
|
|
||
|
w.Update(.25)
|
||
|
w.Update(.25)
|
||
|
w.Update(.25)
|
||
|
w.Update(.25)
|
||
|
w.Update(.25)
|
||
|
|
||
|
}
|