Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions doc/tutorials/space_shooter/step_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,7 @@ class Player extends SpriteAnimationComponent
period: .2,
selfPositioning: true,
factory: (index) {
return Bullet(
position: position +
Vector2(
0,
-height / 2,
),
);

return bullet;
return Bullet(position: position + Vector2(0, -height / 2));
},
autoStart: false,
);
Expand Down
Loading