diff --git a/cmd/game/main.go b/cmd/game/main.go index 8056219..83bfd43 100644 --- a/cmd/game/main.go +++ b/cmd/game/main.go @@ -69,7 +69,7 @@ func main() { //set up input decoder go decodeInput(mainCtx, mw.GetLayer("base")) - //fixme set up (load / generate) level + //fixme set up (load / generate) level - move to game / enter or title / exit level, rooms := mapgens.DefaultGen(mainCtx, gamemap.NewLevel(mainCtx, "test", 1)) State.Level = level @@ -162,25 +162,7 @@ func main() { screenMgr.SetScreenByName("title") - //fixme - //player := &mob.Player{ - // Mob: mob.Mob{ - // Appearance: &types.Appearance{ - // Glyph: &types.PlainGlyphHolder{"@"}, - // ColorSet: &types.TileColorSet{ - // Fg: &types.PlainColorHolder{255, 255, 255, 255}, - // }, - // }, - // Coords: rooms[0].Center, - // BlocksPass: true, - // }, - //} - //State.Player = player - - //vp.PlayerCoords = player.Coords - //vp.Render(&State) - - //fixme set up (load / generate) player + //fixme set up (load / generate) player - move to game / enter or title / exit player := controller.CreateEntity([]ecs.Component{}) controller.AddComponent(player, &types.Appearance{ @@ -264,11 +246,6 @@ func decodeInput(ctx appctx.ClientCtx, baseLayer *mainwindow.Layer) { //global hotkeys switch pressed { - //fixme testing only - case "F10": - State.Do(func() { - blt.Set("window: size=100x47; font: ./assets/ttf/UbuntuMono-R.ttf, size=11;") - }) case "Ctrl+q": //fallthrough //case "Escape": diff --git a/engine/fov/precomputed_shade/precomputed_shade.go b/engine/fov/precomputed_shade/precomputed_shade.go index 9c51fca..f869df8 100644 --- a/engine/fov/precomputed_shade/precomputed_shade.go +++ b/engine/fov/precomputed_shade/precomputed_shade.go @@ -202,7 +202,7 @@ func (ps *precomputedShade) recalc(level *gamemap.Level, initCoords types.Coords ps.originCoords = initCoords if radius > ps.MaxTorchRadius { - radius = ps.MaxTorchRadius //fixme + radius = ps.MaxTorchRadius } level.GetTile(initCoords).Visible = true diff --git a/util/kruskals/algorithm_test.gp.go b/util/kruskals/algorithm_test.go similarity index 100% rename from util/kruskals/algorithm_test.gp.go rename to util/kruskals/algorithm_test.go