QB64.org Forum
Active Forums => Programs => Topic started by: bplus on November 13, 2019, 04:14:04 pm
-
Ever wonder how cats score points when they start chasing a laser beam? ;-))
SCREEN _NEWIMAGE(800, 600, 32) 'Stick with me.bas 2019-11-13 as per Ken's Inform haha:
cnt = cnt + 1
LINE (bx
- r
/ 2, by
- r
/ 2)-STEP(r
, r
), c~&
, BF
IF ((mx
- bx
) ^ 2 + (my
- by
) ^ 2) ^ .5 < 50 THEN hits
= hits
+ 1
-
Bplus, I hope you got this idea from my Inform game. lol
-
Bplus, I hope you got this idea from my Inform game. lol
Sort a, "as per Ken's Inform" it started out as what I imagined it might be like, then I improved on that by getting rid of clicking and made scoring based on time. Didn't notice you only moved the target when the mouse was entering it.
Then I realized I was acting just like a cat trying to catch a light beam. ;-))
-
LOL! Awesome. :)
-
Nice hand/eye coordination exercise there.
-
Ha! Isn't this the basic essence of every shooter game? The cat chasing a light beam... oh wait! I have an idea for mod!
stay tuned...
-
A "BUT Don't Stick ME!" mod!
_TITLE "Stick with me but Don't Stick ME." 'b+ mod 2019-11-22 SCREEN _NEWIMAGE(800, 600, 32) 'Stick with me.bas 2019-11-13 as per Ken's Inform haha:
cnt = cnt + 1
bx
= RND * 800: by
= RND * 600 LINE (bx
- 50, by
- 50)-STEP(100, 100), &HFFFFFFFF, BF
LINE (bx
- r
/ 2, by
- r
/ 2)-STEP(r
, r
), c~&
, BF
IF ((mx
- bx
) ^ 2 + (my
- by
) ^ 2) ^ .5 < 50 THEN hits = hits + 2