Computer Science Canada A little thing I wrote bored in class sort of like Geometry wars |
Author: | petree08 [ Wed Oct 28, 2009 7:36 pm ] |
Post subject: | A little thing I wrote bored in class sort of like Geometry wars |
Yeah, I was bored during a lecture so I wrote this, I have decided that i am going to continue working on it for a while. if you got to this page from the link on my facebook please direct any comments you have under comments for the link, or PM me. |
Author: | petree08 [ Wed Oct 28, 2009 7:54 pm ] | ||
Post subject: | RE:A little thing I wrote bored in class sort of like Geometry wars | ||
here is the code, it is kind of a jumble in terms of were things are but it isn't too bad considering the time i spent on it
oh, and another thought just occured to me, it might look wierd because i used a font that is most likely not on your computer. |
Author: | Tony [ Wed Oct 28, 2009 8:11 pm ] | ||||
Post subject: | RE:A little thing I wrote bored in class sort of like Geometry wars | ||||
I think your function Distance_Calc is build in as Math.Distance Things like
really just mean Seconds := Seconds % 60 Spawn Enemy repeats the same code
x4 |
Author: | petree08 [ Wed Oct 28, 2009 9:23 pm ] |
Post subject: | RE:A little thing I wrote bored in class sort of like Geometry wars |
Math.Distance doesn't work with all versions of turing, lets say the program has been running for 70 seconds Seconds will equal 70 Seconds := Seconds - 60 Seconds now equals 10 not like Seconds := Seconds % 60 at all the reason I had to do that was because the the display would output trippy stuff after 60 seconds, it is a really lazy way to fix it i know but it worked and i wasn't going to put anymore focus on it, and your absolutly right about the redundant code in Spawn_Enemies. I am slightly embarrassed that i didn't catch that, but again this was written over the course of a lecture, the lecture was about binary conversion, i felt i could skip on that and i was bored. |
Author: | Tony [ Wed Oct 28, 2009 9:45 pm ] |
Post subject: | RE:A little thing I wrote bored in class sort of like Geometry wars |
oh, wait... in Turing % is the comment character... I meant mod. (70 mod 60 = 10) |
Author: | petree08 [ Wed Oct 28, 2009 9:45 pm ] |
Post subject: | RE:A little thing I wrote bored in class sort of like Geometry wars |
oh, yeah that actually makes sense now, thanks |
Author: | petree08 [ Wed Nov 04, 2009 2:41 pm ] |
Post subject: | Re: A little thing I wrote bored in class sort of like Geometry wars |
Worked on it again for a bit, added a new enemy type, a screen clear button (EMP blast press spacebar) and steven hawking voice overs (using Speakonia) |
Author: | S_Grimm [ Wed Nov 04, 2009 5:20 pm ] |
Post subject: | RE:A little thing I wrote bored in class sort of like Geometry wars |
the text is sort of crowed together. other than that, good job |
Author: | petree08 [ Thu Nov 05, 2009 3:35 pm ] |
Post subject: | RE:A little thing I wrote bored in class sort of like Geometry wars |
http://www.searchfreefonts.com/free/monofonto.htm yeah the text is placed odd because i used a font that isn't default. the above is a link to the font |
Author: | twinblade27 [ Fri Nov 06, 2009 2:24 pm ] |
Post subject: | RE:A little thing I wrote bored in class sort of like Geometry wars |
well done i like it man but i had to put more enemies to change the shooting delay |
Author: | Turing_Gamer [ Fri Nov 06, 2009 4:05 pm ] |
Post subject: | Re: A little thing I wrote bored in class sort of like Geometry wars |
Well done 9/10 |
Author: | belarussian [ Mon Nov 16, 2009 7:21 pm ] |
Post subject: | Re: A little thing I wrote bored in class sort of like Geometry wars |
ok So you can make them save their scores when you make a new file such as \ Code: var highScoreFile : int var highName : string var highScore : int %open HighScore.txt open : highScoreFile, "HighScore.txt", get get : highScoreFile, highName : * get : highScoreFile, highScore close : highScoreFile put "Please enter your name " .. get highName : * highScore := numberOfTries %Write the highscore and name to the HighScore.txt file open : highScoreFile, "HighScore.txt", put put : highScoreFile, highName put : highScoreFile, highScore close : highScoreFile IF HIGHSCORE IS NOT BETTER THAN PREVIOUSLY SAVED SCORES put "Sorry you did not get the highscore" put "The current high score is ", highScore, " by ", highName |
Author: | petree08 [ Mon Nov 16, 2009 7:29 pm ] |
Post subject: | RE:A little thing I wrote bored in class sort of like Geometry wars |
"ok So you can make them save their scores when you make a new file" really I had no idea... there are a million other things that this could "do" but at this version scoring wasn't a priority and if i decide to add high score saving i will most likely use an array to save multiple entries and sort them. |
Author: | BigBear [ Mon Nov 16, 2009 10:19 pm ] |
Post subject: | RE:A little thing I wrote bored in class sort of like Geometry wars |
Seems unusual that you would rather have a Narrator voice sound clip but not a high score. |