Posted: Fri Feb 29, 2008 10:51 pm Post subject: RE:Turing Tower Defense
It's neat but why on earth is all the code on a single line... I hope to god that's not how you program heh...
Game is fun, goodjob on the blocking detection and placement of towers along with tracking of enemies and such.
Fun
DanielG
Posted: Sat Mar 01, 2008 2:42 am Post subject: RE:Turing Tower Defense
Great game, good job fishtastic
michaelp
Posted: Sat Mar 01, 2008 9:51 am Post subject: RE:Turing Tower Defense
Very good game. I'm playing it now.
And I hope you don't put all code on a single line either.
edit: Final score of 1970. Lost on the last level.
fishtastic
Posted: Sat Mar 01, 2008 10:40 am Post subject: Re: RE:Turing Tower Defense
LaZ3R @ Fri Feb 29, 2008 9:51 pm wrote:
It's neat but why on earth is all the code on a single line... I hope to god that's not how you program heh...
i made another program that reads all the codes and put it to another file in one line along with the instructions.
BTW, had any one found a bug yet? There was a horrible bug in my path finding.
IF you find any problem or imbalance please post here.
Also, the hard mode was added because my friend told me there were too little levels, but i don't think hard move can be easily beaten.
thanks for all the nice comments so far
MichaelM
Posted: Mon Mar 03, 2008 5:43 pm Post subject: Re: Turing Tower Defense
Great Game! If you put it in turing and press control i it doesn't have enough memory to indent it haha
BigBear
Posted: Mon Mar 03, 2008 6:07 pm Post subject: Re: Turing Tower Defense
I would like to see program to convert code into one unreadable line.
fishtastic
Posted: Mon Mar 03, 2008 10:49 pm Post subject: Re: Turing Tower Defense
BigBear @ Mon Mar 03, 2008 5:07 pm wrote:
I would like to see program to convert code into one unreadable line.
here you go
you can use this to shorten any of your code into one line(may not always work for some comments), i just love visuals
Turing:
var IN, OUT :intvar line :=0var name :stringput"file name w/ .t"get name :*open: IN, name, getopen: OUT, "output.t",putvar wtf :array1.. 100000ofstringvar total :=1 wtf (1):=""proc drawP (p :real)drawfillbox(maxxdiv2 - 200, maxydiv2 - 10, maxxdiv2 + 200, maxydiv2 + 10, red)drawfillbox(maxxdiv2 - 200 + (ceil(p *400)),maxydiv2 - 10, maxxdiv2 + 200, maxydiv2 + 10, cyan)drawbox(maxxdiv2 - 200, maxydiv2 - 10, maxxdiv2 + 200, maxydiv2 + 10, black)end drawP View.Set("offscreenonly")loop line +=1if line mod29=0thenclsput"reading: "put line View.Updateendifexitwheneof(IN)var s :stringget: IN, s :*for i :1.. length(s)if s (i)='%'and i > 1and(s (i - 1)not= '\''and s (i - 1)not= '\"')thenexitelse wtf (total) += s (i)endifendfor wtf (total) +=" "iflength(wtf (total)) > 50then total +=1 wtf (total):=""endifendloopfor i :1.. total put: OUT, wtf (i).. clsput"Putting "locate(12, 40)put i, "/", total drawP (i / total)locate(15, 40)put(i / total)*100:2:2, "%"View.Updateendfor
if you find any problem in my game please report here.
Sponsor Sponsor
Sur_real
Posted: Tue Mar 04, 2008 5:43 pm Post subject: Re: Turing Tower Defense
Nice game fishtastic, beat the last level with score of 2872 (on easy though) : )
PS: Just started laughing when I saw the variable wtf.
darkangel
Posted: Wed Mar 05, 2008 7:11 pm Post subject: Re: Turing Tower Defense
I shortened your suppress to one line program fishtastic
no need for big bulky array. (Although I did laugh when i saw it)
code:
var line : string
var IN, OUT : int
var nameIN, nameOUT : string
put "name of input with extension"
get nameIN
put "name of output with extension"
get nameOUT
open : IN, nameIN, get
open : OUT, nameOUT, put
loop
exit when eof (IN)
get : IN, line : *
put : OUT, line," " ..
end loop
No visual thou, i would have put it in but for it to work my program would have to look through the entire file first which wouldn't be too efficient.
fishtastic
Posted: Wed Mar 05, 2008 8:33 pm Post subject: Re: Turing Tower Defense
Sur_real @ Tue Mar 04, 2008 4:43 pm wrote:
Nice game fishtastic, beat the last level with score of 2872 (on easy though) : )
PS: Just started laughing when I saw the variable wtf.
When i cant think of a good variable name, i just use something really stupid.(var wtf:array 1..maxint of string / var omg:int)
not a bad score.
I almost beat hard mode in school during lunch hour.
school rule allow you to play your own game.
I might try to re balance just to make sure hard mode is beatable.
darkangel @ Wed Mar 05, 2008 6:11 pm wrote:
I shortened your suppress to one line program fishtastic
no need for big bulky array. (Although I did laugh when i saw it)
code:
.
.
.
loop
exit when eof (IN)
get : IN, line : *
put : OUT, line," " ..
end loop
haha nice!
what you did is shorter and faster, that is what i did first too. then it turn out that i had comments start with "%"
then everything after "%" became comment.
...
then it didn't work.
Mackie
Posted: Wed Mar 05, 2008 8:42 pm Post subject: RE:Turing Tower Defense
Just use /* multi-line comments */. You can put them in weird places and still have them work. Like:
code:
put /*RAWR*/ "foo"
Clayton
Posted: Wed Mar 05, 2008 8:46 pm Post subject: RE:Turing Tower Defense
fishtastic wrote:
I might try to re balance just to make sure hard mode is beatable.
It is, you just have to be careful. I did it.
Michael516
Posted: Thu Mar 13, 2008 2:51 pm Post subject: Re: Turing Tower Defense
great game, its really fun, but why does it say that there is not enough memory when you try to make it into more than one line? how many kbs was it before you compressed it to one line?
fishtastic
Posted: Thu Mar 13, 2008 6:30 pm Post subject: Re: Turing Tower Defense
Michael516 @ Thu Mar 13, 2008 1:51 pm wrote:
great game, its really fun, but why does it say that there is not enough memory when you try to make it into more than one line? how many kbs was it before you compressed it to one line?