diff options
| author | 1029chris <1029chris@gmail.com> | 2022-02-09 21:15:42 -0800 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2022-02-09 21:15:42 -0800 |
| commit | 975c52b251905d4f0e76f0db09780f00f7bb6590 (patch) | |
| tree | a58015fb9edae15d7dfbfef6c176d83008bf8d96 | |
| parent | bd34aa853e993665c781fcfc553852d847d52345 (diff) | |
big circle shooter more likely to drop pickup
| -rw-r--r-- | background.lua | 2 | ||||
| -rw-r--r-- | enemies.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/background.lua b/background.lua index bd1febe..ef08485 100644 --- a/background.lua +++ b/background.lua @@ -43,7 +43,7 @@ function drawbg() --stars for i = 1, 64, 1 do - pset((((-gt*0.1)+i*4.3824)*(i/32))%128, sin(i*0.536382)*64+64, 4) + pset((((-gt*0.1)+i*4.3824)*(i/32))%128, sin(i*0.536382)*64+64, 4) --funny random star algorithm!! end --galaxies diff --git a/enemies.lua b/enemies.lua index 7864f1a..3283ec3 100644 --- a/enemies.lua +++ b/enemies.lua @@ -230,7 +230,7 @@ function addballshooter(x, y, health, speed) for i = 1, 24, 1 do addcircle(enemy.x+rnd(8), enemy.y+rnd(8), rnd(4)-2, -rnd(2)-1, 1, 2, rnd({3, 11, 9}), -0.1) end - if rnd(100) > 80 then + if rnd(100) > 70 then addpickup(enemy.x, enemy.y) end if shake < 3 then |
