Button Click game

General discussion

• Hey guys!

I programmed a very little and easy game.  DHQ074

That's the first version. :D

Greetings Timo

• Edited by Thursday, October 04, 2012 9:19 AM
Thursday, October 04, 2012 1:02 AM

All replies

• Here is the second version!  BZL902

Or check my blog or the upload side.

Enjoy! (And tell me what you think about it. ;) )

Greetings Timo

• Edited by Thursday, October 04, 2012 9:33 AM
Thursday, October 04, 2012 9:22 AM
• That's great! I love how you made it increasingly difficult!

I am a 10 year old that loves math, games, and computers. "Everyone is potentially great, you just have to turn it into kinetic greatness."

Thursday, October 04, 2012 2:00 PM
• x = 50
y = 100
Speed = 2
speedx = Speed
speedy = Speed
ButtonHeight = 50
ButtonWidth = 200
Controls.ButtonClicked = Bc
While 1 = 1
Shapes.Move(Button,x,y)
Controls.SetSize(Button,ButtonWidth,ButtonHeight)
Program.Delay(5)
x = x + speedx
y = y + speedy
If x < 0 Or x > GraphicsWindow.Width - ButtonWidth Then
speedx = - speedx
EndIf
If y < 0 Or y > GraphicsWindow.Height - ButtonHeight Then
speedy = - speedy
EndIf
EndWhile

Sub Bc
Speed = Speed + .5
ButtonHeight = ButtonHeight / 1.2
ButtonWidth = ButtonWidth / 1.2
speedx = Speed
speedy = Speed
EndSub

One thing that is impossible is impossible no matter if it is proven so first.

Thursday, October 04, 2012 3:23 PM
• Thanks Math Man!

@Zock77

Your code is nice, but I need another kind of code, because I will add a few new functions. ;)

Greetings Timo

Thursday, October 04, 2012 4:33 PM