Computer Science Canada Gunbound |
Author: | BenLi [ Wed Apr 26, 2006 3:58 pm ] | ||
Post subject: | Gunbound | ||
Hey ppl, this is the start to a gunbound like game, i've only completed the essentials, haven't built a game around it yet check it out and suggestions will be welcome
|
Author: | xHoly-Divinity [ Wed Apr 26, 2006 4:09 pm ] |
Post subject: | |
Might want to add something to slow down the power bar (when u click the mouse). Delay might not be the best solution but it works. |
Author: | BenLi [ Wed Apr 26, 2006 4:13 pm ] |
Post subject: | |
well im trying to model it from gunbound,so the delay thing is accurate, but i think i should use button initiation instead of mouse |
Author: | HellblazerX [ Wed Apr 26, 2006 8:30 pm ] | ||
Post subject: | |||
about this portion of code:
before calculating shotx and shoty, make sure that the variable speed is not 0, and that the Distance between the 2 points is not 0, cuz otherwise you'll run into the problem of dividing by 0. b/c i ran into that problem when running your program. And that power bar goes way too fast. |
Author: | xHoly-Divinity [ Thu Apr 27, 2006 3:51 pm ] |
Post subject: | |
Nahhh, no way it's that fast in gunbound. Oh well, ur choice. Yeah, I would make it using button initiation, probably the space bar. |
Author: | TokenHerbz [ Thu Apr 27, 2006 7:01 pm ] |
Post subject: | |
what's so special about that "math." feature... i dont have it and all the games that USE it i cant run ![]() Making your own mathimatical proceadures is much better for througly understanding how things work, and at least this way, people like me can play the code ![]() **asks for the Math. fcn to add to his turing lib** (just pm me with it, and instructions please ![]() /me waits for smart cervantes to hook him up |
Author: | codemage [ Fri Apr 28, 2006 8:56 am ] |
Post subject: | |
I think Turing 4.0.3 is missing the Math functions. |
Author: | Andy [ Fri Apr 28, 2006 9:47 am ] |
Post subject: | |
if you indeed go to massey, then i think i know who you are.. anywho, ask mr.mckenzie about the gunbound shawnli and shane li made 2 years ago. he should still have it. |
Author: | BenLi [ Sat Apr 29, 2006 9:53 am ] |
Post subject: | |
Andy Sun? Andyeah, i took grade 10 compsci, big mistake, anyways, i'll ask mr mac |
Author: | wtd [ Sat Apr 29, 2006 1:20 pm ] | ||||
Post subject: | |||||
HellblazerX wrote: about this portion of code:
before calculating shotx and shoty, make sure that the variable speed is not 0, and that the Distance between the 2 points is not 0, cuz otherwise you'll run into the problem of dividing by 0. b/c i ran into that problem when running your program. And that power bar goes way too fast. And factor out this:
As it stands, you're calculating the same exact value twice for no good reason. |
Author: | Cervantes [ Sat Apr 29, 2006 4:24 pm ] |
Post subject: | |
TokenHerbz wrote: **asks for the Math. fcn to add to his turing lib** (just pm me with it, and instructions please ![]() /me waits for smart cervantes to hook him up This question is asked far too often. Search around a bit. There's even a tutorial on this very subject! |
Author: | BenLi [ Sun Apr 30, 2006 4:10 pm ] |
Post subject: | |
well right the power bar and shot relies entiredly on the speed the computer loops, im working on a system to make it the same on every comp |
Author: | Andy [ Tue May 02, 2006 12:33 pm ] |
Post subject: | |
use a timer instead of delay |