----------------------------------- JuL Mon Dec 30, 2002 5:12 pm heyy... i have a HUGE request.. PLZ ----------------------------------- HEYY im new in here.. and well i also study turing in class.. but my teacher really doesnt explain anything.. and i really dont get anything.. now i have to do a project.. a big one.. and ih ave to do a game.. and i have no idea even what game am i suppose to do. i have to chose one.. i cant chose tic tac toe and the rest i have no idea how to program games.. is there like a site with games in turing and their codes?? because i really really have no idea and it's a big part of my mark.. can u plz plz help me .. i appreciate it thank u soo much Jul ----------------------------------- Tony Thu Jan 02, 2003 1:40 pm ----------------------------------- hey jul, sorry for the delayed reply, server seemed to went down for a bit. Anyway, programming is really about 2 things. Calculating numbers... and... well using those numbers for entertainment :? If you want to take a look at example game, you can visit our FTP tetris pong tic-tac-toe frogger snake and about any other classical game. Asteroyds maybe? ----------------------------------- krishon Thu Jan 02, 2003 5:18 pm ----------------------------------- As well, if u have the newer turing 4.04b, u can look in the examples folder. In there, u can look at the different codes to help u wit wutever game u want. There is also an asteroids game in the examples folder, its a neat game :D . But yeah, u can also look at tutorials and look around on the internet. Have fun making the game :wink: (i liked makin my game, but it took way too much time, lol, meh) ----------------------------------- Tony Thu Jan 02, 2003 6:18 pm ----------------------------------- ya, you see krishon's 85 posts there? he got 80 of them from that single topic about his own game :D (ok, maybe not 80, but a lot of them) so ya, if you have an idea we gonna help you program it. As long its not something like "make me a game cuz I don't feel like doing it myself" :? Good luck ----------------------------------- Brightguy Fri Jan 03, 2003 12:48 am Re: heyy... i have a HUGE request.. PLZ ----------------------------------- Last year I got ahead of my class in programming, so I wrote a complete Tetris program for some fun. Of course, I had just started programming and did everything the long way... I believe it's nearly 2000 lines long. This year I've learned quite a bit more, and even added a high-score board to it. As for selecting an 'old' game, has anyone here ever heard of the Kroz series? Those games were the very computer games I ever remember playing. I'm in the process right now of making a game similar to those "text-based adventure" games... Those were the days! ----------------------------------- Tony Fri Jan 03, 2003 1:47 pm ----------------------------------- hey brightguy, it'd be awesome if you can share your tetris game with us. You don't have to show any of the source code, a compiled program would be fine. You can send it to ether myself or Dan and we'll upload it to the FTP server. :D ----------------------------------- Brightguy Sat Jan 04, 2003 3:26 pm Re: Tetris ----------------------------------- Okay, it should be in your inbox now! :) I hadn't looked at it for a while, and I guess I over-estimated the number of lines it was... it actually hadn't even passed 1500. It always seems longer when you're writing it, right. :wink: It was written in Turing 7.05A, although maybe I'd compile it in OOT if it's not too much work... Anyway, if anyone has any suggestions or bug reports, you can post in this forum or e-mail me. (I know it's far from perfect.) Something I was trying to change, but I don't think I can, is when you hold down the DOWN key, it waits for a second before pushing the block down. (Like when you're typing and you hold down a key - it waits for a second before repeating it.) Because of this, it makes it almost impossible to actually use the DOWN key in the higher levels. Maybe there's a way around this? Here's the part of the code that gets the user's key input: var timer, prevTime : int := 0 var speed : int var key : string (1) %Speed decreases as level increases speed := 1000 %Empties the getch buffer procedure empty loop exit when not hasch getch (key) end loop end empty loop key := " " loop if hasch then getch (key) ~instructions for each individual key press~ empty end if clock (timer) exit when timer > prevTime + speed end loop prevTime := timer ~statements to push down block, check for full line, change speed, etc.~ end loop ----------------------------------- Tony Sat Jan 04, 2003 4:59 pm ----------------------------------- i suppose that down does work, its just that its speed increase is not noticable at the higher levels. You might also consider using Key.Down if you plan to move onto OOT platform. There's a tutorial describing it called "Controlling your character" or something like that. I don't think its available for dos version. Also check user's submissions topics, I should have a link to your program there.