cleaned up fixmes, tests passing

This commit is contained in:
thefish 2019-11-13 03:10:01 +03:00
parent 8b4844211b
commit 8b4c27216e
3 changed files with 3 additions and 26 deletions

View File

@ -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":

View File

@ -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