diff options
Diffstat (limited to 'game/player/PlayerBulletSubScene.cpp')
-rw-r--r-- | game/player/PlayerBulletSubScene.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/game/player/PlayerBulletSubScene.cpp b/game/player/PlayerBulletSubScene.cpp index 4ad236c..96c6b9a 100644 --- a/game/player/PlayerBulletSubScene.cpp +++ b/game/player/PlayerBulletSubScene.cpp @@ -17,9 +17,7 @@ #include "PlayerBulletScript.h" using namespace crepe; using namespace std; -int PlayerBulletSubScene::create(Scene & scn){ - vec2 size = {20, 20}; - static int counter = 0; +int PlayerBulletSubScene::create(Scene & scn,int counter){ string unique_name = "player_bullet_" + to_string(counter++); GameObject player_bullet = scn.new_object(unique_name.c_str(),"player_bullet",vec2{0,-850},0,1); |