Skip to content

Commit 568e8d5

Browse files
committed
Some Ahorn plugin cleanup
1 parent a0ed86c commit 568e8d5

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Ahorn/entities/customBirdTutorial.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@ const placements = Ahorn.PlacementDict(
1414
sprite = "characters/bird/crow00"
1515

1616
function Ahorn.selection(entity::CustomBirdTutorial)
17-
nodes = get(entity.data, "nodes", ())
1817
x, y = Ahorn.position(entity)
19-
key = lowercase(get(entity.data, "mode", "Sleeping"))
2018
scaleX = get(entity.data, "faceLeft", true) ? -1 : 1
2119

2220
return Ahorn.Rectangle[Ahorn.getSpriteRectangle(sprite, x, y, sx=scaleX, jx=0.5, jy=1.0)]
2321
end
2422

2523
function Ahorn.render(ctx::Ahorn.Cairo.CairoContext, entity::CustomBirdTutorial, room::Maple.Room)
26-
key = lowercase(get(entity.data, "mode", "Sleeping"))
2724
scaleX = get(entity.data, "faceLeft", true) ? -1 : 1
2825

2926
Ahorn.drawSprite(ctx, sprite, 0, 0, sx=scaleX, jx=0.5, jy=1.0)

Ahorn/triggers/customBirdTutorial.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const placements = Ahorn.PlacementDict(
99
"Custom Bird Tutorial Trigger (Spring Collab 2020)" => Ahorn.EntityPlacement(
1010
CustomBirdTutorialTrigger,
1111
"rectangle"
12-
),
12+
)
1313
)
1414

1515
end

0 commit comments

Comments
 (0)