Skip to content

Commit a3e0c95

Browse files
committed
Merge branch 'master' of github.com:EverestAPI/SpringCollab2020
2 parents a33e7bd + 16e0f0c commit a3e0c95

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module SpringCollab2020DiagonalWingedStrawberry
2+
3+
using ..Ahorn, Maple
4+
5+
@mapdef Entity "SpringCollab2020/diagonalWingedStrawberry" DiagonalWingedStrawberry(x::Integer, y::Integer, order::Integer=-1, checkpointID::Integer=-1)
6+
7+
const placements = Ahorn.PlacementDict(
8+
"Diagonal Winged Strawberry (Spring Collab 2020)" => Ahorn.EntityPlacement(
9+
DiagonalWingedStrawberry
10+
)
11+
)
12+
13+
function Ahorn.selection(entity::DiagonalWingedStrawberry)
14+
x, y = Ahorn.position(entity)
15+
16+
return Ahorn.getSpriteRectangle("collectables/strawberry/wings01", x, y)
17+
end
18+
19+
function Ahorn.renderAbs(ctx::Ahorn.Cairo.CairoContext, entity::DiagonalWingedStrawberry, room::Maple.Room)
20+
x, y = Ahorn.position(entity)
21+
22+
Ahorn.drawSprite(ctx, "collectables/strawberry/wings01", x, y)
23+
end
24+
25+
end

0 commit comments

Comments
 (0)