heyy... i have a HUGE request.. PLZ
Author |
Message |
JuL
|
Posted: Mon Dec 30, 2002 5:12 pm Post subject: 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 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Thu Jan 02, 2003 1:40 pm Post subject: (No subject) |
|
|
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 [url]swat@danco.no-ip.com[/url] we got couple of RPGs, pong, and who knows what up there. Not much, but you'll get an idea of what you can do. Check out Dan's QFTB, its really good.
Until I can upload my snake game to the FTP, you can get it at www.geocities.com/tonysgames/snake.zip Its not compiled and was writen during my first few month after introduction to programming. So its buggy. It also has a shit load of useless code if you chouse to play normal mode.
It could have been done much better, but can't expect much since I just started programing at that time.
Also don't bother coping the code. It has been over a year since I wrote this game and since then I gave it out to MANY people. When I made a website for it, I belive it made a 1st place in google's "snake source code" search and was downloaded numearous times. (Site is down now in favour of my online resume of sords.. doesn't really have a resume yet... I suck )
Some favorite game choices are:
tetris
pong
tic-tac-toe
frogger
snake
and about any other classical game. Asteroyds maybe? |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
krishon
|
Posted: Thu Jan 02, 2003 5:18 pm Post subject: (No subject) |
|
|
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 . But yeah, u can also look at tutorials and look around on the internet. Have fun making the game (i liked makin my game, but it took way too much time, lol, meh) |
|
|
|
|
|
Tony
|
Posted: Thu Jan 02, 2003 6:18 pm Post subject: (No subject) |
|
|
ya, you see krishon's 85 posts there? he got 80 of them from that single topic about his own game (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 |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Brightguy
|
Posted: Fri Jan 03, 2003 12:48 am Post subject: 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
|
Posted: Fri Jan 03, 2003 1:47 pm Post subject: (No subject) |
|
|
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.
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Brightguy
|
Posted: Sat Jan 04, 2003 3:26 pm Post subject: 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. 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:
code: | 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
|
Posted: Sat Jan 04, 2003 4:59 pm Post subject: (No subject) |
|
|
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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Sponsor Sponsor
|
|
|
|
|