• Rahix's avatar
    sprites: Don't hold center coordinates in component · ff31586d
    Rahix authored
    Query the size of the sprite on the fly during rendering.  This makes
    component instanciation much easier because it no longer requires access
    to the `Rendering` API.
    
    As a later optimization, we could move this ofsetting into the
    draw_image() function via a new parameter.
    ff31586d
ingame.rs 5.65 KB