Computer Science Canada Pow! A very simple source code. |
Author: | Foundation [ Mon Sep 18, 2006 8:11 pm ] | ||
Post subject: | Pow! A very simple source code. | ||
Just for entertainment, please reply for ways to make this better. I'm new to programming, so I'll need all the help I can get. Thanks.
|
Author: | TheOneTrueGod [ Mon Sep 18, 2006 9:45 pm ] |
Post subject: | |
http://www.compsci.ca/v2/viewtopic.php?t=7734 Its been done 1000 times, and it takes very little effort. Follow the rule: Stare at it for 2 minutes. If you still love watching it, then consider posting it... |
Author: | blaster009 [ Mon Sep 18, 2006 11:00 pm ] | ||
Post subject: | |||
Haha, oh Jeremy. Take it easy on the guy. He IS new. Anyhow, try procedures! Might take you a few clicks to get them, but it's well worth it! Also, code format. I suggest a better way of naming your variables to make it easier to read. Try cAmElCaSe. Basically, you capitalize the first letter of individual words (but not the first letter). Ex: mystringlength becomes myStringLength. Otherwise, a fairly well-written donothing program.
In this fashion, all you need to do is pass different parameters (input numbers) to the procedures, and you'll get a whole crazy slew of different outputs. Cheers! (Oh, and Jeremy's right. No more trippy flash programs.) |
Author: | Foundation [ Tue Sep 19, 2006 7:38 am ] |
Post subject: | |
Thanks. I won't put up any more weird programs now. ![]() |
Author: | ericfourfour [ Tue Sep 19, 2006 9:04 pm ] | ||
Post subject: | |||
If you think your program's weird check this one out.
With simple trig you can make some pretty cool effects. Try playing around with the variables. Especially the radius (a cool one is radx = 50 and rady = 10). |
Author: | Foundation [ Wed Sep 20, 2006 7:43 am ] |
Post subject: | |
Could you tell me how to use trig in turing? ![]() |
Author: | ericfourfour [ Wed Sep 20, 2006 2:51 pm ] |
Post subject: | |
There might already be a tutorial on using trig in turing. The sytax you want to look up though would be sin, cos, tan, arcsin, arccos, arctan, sind, cosd and tand (there may be more). I'd reccomend grade 10 math since that is where you start to learn triginometry. |
Author: | ZeroPaladn [ Fri Sep 22, 2006 12:30 pm ] |
Post subject: | |
there is no trig tut as far as i know. if you realy want to learn trig, go to school (grade 10 - 12 math and grade 11 - 12 physics should do ya) |
Author: | blaster009 [ Fri Sep 22, 2006 9:22 pm ] | ||
Post subject: | |||
ericfourfour wrote: If you think your program's weird check this one out.
...Although this is a trippy flash program, I'ma give you some credit: That one is pretty awesome. Watching it looks like motion in a tunnel shooter. Perhaps you could use a similar, faster algorithm to simulate movement? |
Author: | ericfourfour [ Fri Sep 22, 2006 10:02 pm ] |
Post subject: | |
I don't know of any special algorithms to do it but I'm sure there is. Mine just keeps on increasing the distance from the middle and paces the circle in the correct spot according to the angle and distance. I'm sure you could do this with particle system aswell. Also, with the particle system you could have multiple effects at once so it would look really amazing. |
Author: | wtd [ Sun Oct 01, 2006 12:39 pm ] |
Post subject: | |
blaster009 wrote: Try cAmElCaSe.
Or perhaps this_kind_of_name. |
Author: | Foundation [ Sat Oct 07, 2006 10:35 am ] |
Post subject: | |
Okay. I know trig, and I know sin, cos, tan etc.. ![]() ![]() |
Author: | Jekate [ Sat Oct 07, 2006 9:31 pm ] | ||
Post subject: | |||
|
Author: | TheOneTrueGod [ Sun Oct 08, 2006 4:16 pm ] |
Post subject: | |
Jakete, that really serves no purpose... read my first post in this thread. Anyways, if you know trig, to utilize it, just use: RADIANS sin cos tan arcsin arccos arctan DEGREES sind cosd tand arcsind arccosd arctand However, programming is far more than just making pretty effects. Try using trig to create AI: that is, create something that will follow your mouse around using the trig identities to start off with, then work from there. I made some pretty decent CTF AI using trig. Its worth a shot ![]() |
Author: | Foundation [ Sun Oct 08, 2006 5:41 pm ] |
Post subject: | |
First of all, thank you TheOneTrueGod, for following my post, and providing much needed advice. But people have been misunderstanding me ever since I posted that I wanted to learn trig. I am very new to programing, my first grade 11 programing class just started. (skipped grade 10 because ppl say it's substandard ![]() ![]() ![]() But I will try myself first, whatever is learnt by oneself is easier remembered. If I have too much trouble programming with trig myself, I will ask later. |
Author: | TheOneTrueGod [ Sun Oct 08, 2006 10:04 pm ] |
Post subject: | |
Allright, I put together this text document to try and help you out. I designed it so that other people could read it as well, so I explained some stuff that you probably know allready. |