Home All Groups Group Topic Archive Search About
Author
20 Mar 2006 10:50 PM
oasion
i am currently making a ame with a cannon where it fires a bullet at a forty degree angle for an amount of time set by the player and it only flys like --> /\ instead of curving and i would need to find out how to make it curve can anyone help? -- oasion ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------

Author
21 Mar 2006 1:19 AM
Jeff Johnson [MVP: VB]
"oasion" <oasion.24z***@mail.codecomments.com> wrote in message
news:oasion.24zvlq@mail.codecomments.com...

> i am currently making a ame with a cannon where it fires a bullet at a
> forty degree angle for an amount of time set by the player and it only
> flys like --> /\ instead of curving and i would need to find out how to
> make it curve can anyone help?

Sounds like you need to grab a math book and read up on parabolas and the
formula that defines them.
Author
21 Mar 2006 4:31 AM
Rick Rothstein
> Sounds like you need to grab a math book and read
> up on parabolas and the formula that defines them.

..... or a Physics book in the section where they discuss acceleration,
specifically to part about acceleration due to gravity.

Rick
Author
21 Mar 2006 5:06 AM
Ken Halter
"oasion" <oasion.24z***@mail.codecomments.com> wrote in message
news:oasion.24zvlq@mail.codecomments.com...
>
> i am currently making a ame with a cannon where it fires a bullet at a
> forty degree angle for an amount of time set by the player and it only
> flys like --> /\ instead of curving and i would need to find out how to
> make it curve can anyone help?
>

For small projects like this, remember..... PlanetSourceCode.com (VB
category)

This one looks good....

Trajectory Calculation Functions (With Graph)
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=53991&lngWId=1

This may be enough....

Cannon Battle (Like scorched Earth)
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=45561&lngWId=1

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Author
21 Mar 2006 7:50 PM
ralph
Show quote Hide quote
"Ken Halter" wrote:

> "oasion" <oasion.24z***@mail.codecomments.com> wrote in message
> news:oasion.24zvlq@mail.codecomments.com...
> >
> > i am currently making a ame with a cannon where it fires a bullet at a
> > forty degree angle for an amount of time set by the player and it only
> > flys like --> /\ instead of curving and i would need to find out how to
> > make it curve can anyone help?
> >
>
> For small projects like this, remember..... PlanetSourceCode.com (VB
> category)
>
> This one looks good....
>
> Trajectory Calculation Functions (With Graph)
> http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=53991&lngWId=1
>
> This may be enough....
>
> Cannon Battle (Like scorched Earth)
> http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=45561&lngWId=1
>
> --
> Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
> DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
>

This doesn't contribute anything, but I am just curious. Didn't NT use to
ship with a QBasic program with some Gorilla throwing rocks or something
which slowly destroyed buildnings? What was the name of it?

I wonder if anyone ever ported that thing?

-ralph
Author
21 Mar 2006 8:07 PM
Ken Halter
"ralph" <ra***@discussions.microsoft.com> wrote in message
news:488A016A-CCAF-4C62-8365-13D0D0085741@microsoft.com...
>
> This doesn't contribute anything, but I am just curious. Didn't NT use to
> ship with a QBasic program with some Gorilla throwing rocks or something
> which slowly destroyed buildnings? What was the name of it?

Sure did <g> In fact, I searched the Windows folder for '*.bas' before
looking on PSC. It was called Gorillas.bas, iirc

I think MS stopped installing it (by default anyway) after NT4...

> I wonder if anyone ever ported that thing?

I haven't seen anything. Of course, it wouldn't be too hard to swap the
gorillas for some other graphic so, it's still out there in one form or
another.

> -ralph

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm