more render improve :D
This commit is contained in:
parent
af941dc848
commit
200a0a4996
4 changed files with 18 additions and 10 deletions
|
|
@ -62,7 +62,9 @@ def _draw_entity(entity: tcod.ecs.Entity, camera_pos, camera_radius_x, camera_ra
|
|||
map_pos = world_pos_to_map_pos(pos)
|
||||
if g.world[None].components[Map].fov[map_pos.y, map_pos.x]:
|
||||
graphic = entity.components[Graphic]
|
||||
g.foreground.rgba[["ch", "fg"]][screen_pos.y + camera_radius_y, screen_pos.x + camera_radius_x] = graphic.ch, graphic.fg
|
||||
r,gg,b,a = graphic.fg
|
||||
fg = (r,gg,b,255)
|
||||
g.foreground.rgba[["ch", "fg"]][screen_pos.y + camera_radius_y, screen_pos.x + camera_radius_x] = graphic.ch, fg
|
||||
|
||||
|
||||
@attrs.define()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue