Fix hitboxes for entities
This commit is contained in:
@@ -106,7 +106,7 @@ tile_writer.output_index_tile_offset("getTileOffset", "player", 256, TILE_WIDTH,
|
||||
vec2_transform = ["Vector2", "(Vector2) {0.0f, 0.0f}",
|
||||
lambda x: f"(Vector2) {{{x['x']}, {x['y']}}}"]
|
||||
rec_transform = ["Rectangle", "(Rectangle) { 0.0f, 0.0f, 0.0f, 0.0f}",
|
||||
lambda x: f"(Rectangle) {{{x['x']}, {x['y']}, {x['width']}, {x['height']}}}"]
|
||||
lambda x: f"(Rectangle) {{{x['x']}, {TILE_HEIGHT - x['y'] - x['height']}, {x['width']}, {x['height']}}}"]
|
||||
|
||||
tile_writer.output_has_object("hasItemHandlePoint", "handle")
|
||||
tile_writer.output_get_object("getItemHandlePoint", "handle", *vec2_transform)
|
||||
|
||||
Reference in New Issue
Block a user