VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

a non-vector ball bounce script that accounts for form size changes

Lee Carraher  (2 Submissions)   Custom Controls/Forms/Menus   VB 6.0   Unknown Difficulty   Tue 30th October 2001   Mon 8th February 2021

a non-vector ball bounce script that accounts for form size changes

API Declarations


'this is a ball bounce program that simulates the path of a ball bouncing
'inside of a form. instead of using vector changes for direction and speed i
'decided to use nested if statements with a boolean fo the direction. include '
are a few other options that can be initiated throught he code.
'Form set-up: one shape (Shape1) preferably a ball and one timer initiated at 1-'10

Option Explicit
Private BoundX As Integer
Private BoundY As Integer
Private circlePosX As Integer
Private circlePosY As Integer
Private isRight As Boolean
Private isDown As Boolean
'Private ValRnd As Byte

Rate a non-vector ball bounce script that accounts for form size changes (2(2 Vote))
a non-vector ball bounce script that accounts for form size changes.bas

a non-vector ball bounce script that accounts for form size changes Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters