HOME
School
Java Games (CSIS 4491)
KSU Webpage Setup
KSU Email Forwarding
Shell Extension Projects
Other Projects
Tech. Reference
Links
Codeproject
Google
HTML Tutorial
MSFN (forums)
DonationCoder
LifeHacker
About
|
CSIS 4491 - Game Programming in Java
updated: Mar 13th, 2007:
Lab 3 - Extra Motion Patterns
These are extra motion patterns developed for Lab 3. The bounce pattern is also brought back just for fun. These new motion patterns use "circular logic" to accomplish their task; they implement a center and radius, then calculate an angular speed in radians using sine, cosine, or both. This speed is then used to determine the new position of the object along a arc.
New Motion Patterns
- StaticOrbit - This motion pattern has the sprite travel around a fixed/static position in an orbit. It will work will any oval, and the sprite will center itself along the orbital path.
- X-WaveMove - This pattern has the sprite move across the x-axis similar to the X-Move motion pattern, but the sprite will oscillate along a vertical center as it traverses across the screen.
- Y-WaveMove - This is similar to the above, but for the y-axis/Y-Move pattern. It oscillates horizontally as it moves down the screen.
|
|