Example #1
0
// Initialize the game with some default data. Eventually this will come from
// data files and those will be loaded elsewhere.
func initGameSvc(g *game.Game, svc ServiceContext) {
	spider := sf.InitSpider(g.GetUid())
	g.AddEntity(spider)
	go spider.Run(svc)
}