|
-
Jan 24th, 2011, 07:41 PM
#1
Thread Starter
New Member
maths spiraling astroman!
For my assignment i have been given a task into-making a fast-paced
game in which you need to rescue an astronaut before they end up squashed to a singularity by a black hole.The initial design specification is that the astronaut spirals towards the black hole in an exponential fashion. The astronaut is rescued if you can click on them before they get squashed by the black hole. Your score is better the sooner you manage to click on the astronaut after the start of the game. You decide to code up your prototype in VB Script. After some thought, you decide that the astronaut should do one revolution in two seconds and his distance to the black hole (in the centre of the screen) should decrease exponentially so that the distance to the black hole is halved every two seconds.
1. Calculate the value of k so that the exponential function r(t) = ekt gives the radius
that the astronaut is away from the black hole at each time t.
2. Calculate the value of m so that the x and y coordinates of the astronaut are given
by x(t) = r(t) cos(mt), y(t) = r(t) sin(mt).
3. Using your values above, write your program as a web page using VB Script.
ive stated to write my program but atm it is only going round in a circle im look for someone to show me some tutorials or somewhere to go with this...im using visual basic 10 writing in internet explorer 6 and its a website its due in tommorow so the quicker the respone the happier ill bee
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|