Computer Science Canada

nortron -another tron game

Author:  36002 [ Tue Feb 08, 2005 8:30 pm ]
Post subject:  nortron -another tron game

Current Version: 2.2.5, found on next page!
Hi there, this is my first project that I've really spent some time on. Its called NorTron, and is a pretty much a basic tron type game. You and a partner (havn't gotten comp. AI working that well yet) control lines and the objective is to get your oponent to hit a line, either theirs, the arenas lines, or yours. However, I've had some things (well, one right now) and that is a turbo. When you press the corrosponding turbo key for your line, it will give you a slight increase in speed for a few seconds. This is a little buggy though, because in the right circumstance it will allow you to go through lines. Anyway, tell my what you think and what you think I could add Smile Instructions in the game (which btw is about 587 lines, loads of comments though).
[edit]
Well, I'm still working on it and will continue to do so until I hand it in and I have updated much of it. I can't remember what is different, so I will just list all the things.
-2 players
-dumb computer AI, but it does have it, so you can play 1 player
-change player names
-change keys from original
-in a game, press 'F1' to view the help screen, 'p' to pause the game, 'Esc' to quit the game (completly exits)
-scoring
-turbo and you can lay 'bombs'
-maybe some other things I can't remember
-------------------------------------------
This is the game of NorTron. It is a game where you control a line, against another person, or the computer. The objective is to be the last line running by making the other line run into yours, the wall, or a bomb. The other line does the same to you. You can drop a 'bomb', which is a large circle that explodes when the opponent (or you) hits it, causing them to die. You can also use the turbo if you are kneck-in-kneck with the other player and need just that little 'push'. Warning though, you only have a limited amount of turbo uses and bombs, so use them wisely!
---
Default Keys (In Game):
Pause: p
Help: F1
Quit: Escape
Player 1:
Up: Up Arrow
Down: Down Arrow
Left: Left Arrow
Right: Right Arrow
Lay Bomb: . (dot)
Turbo: / (slash)
Player 2:
Up: w
Down: s
Left: a
Right: d
Lay Bomb: v
Turbo: c

Author:  ssr [ Wed Feb 09, 2005 8:17 pm ]
Post subject: 

um the computer is erally buggy alright
somehow it went off the screen, and it says its tied! Shocked

good effort though
Very Happy

Author:  36002 [ Wed Feb 09, 2005 8:44 pm ]
Post subject: 

Thanks Smile Ya the computer has major problems, for me it always goes off the screen too. But I will work on it another time. But did you or anybody else have any other problem or bug in it?

Author:  ssr [ Sun Feb 13, 2005 8:52 pm ]
Post subject: 

mostly the computer AI part, otherwise would be great. Very Happy

Author:  36002 [ Thu Apr 07, 2005 4:03 pm ]
Post subject: 

I've added an updated version, its at the top. Tell me what you think Smile Also, I know about the computer AI part, and it needs to be better looking, but the basics of the game are ok. Tell me of any bugs that you find

Author:  Mr. T [ Thu Apr 07, 2005 10:57 pm ]
Post subject: 

streaky title page

Author:  jamonathin [ Fri Apr 08, 2005 7:55 am ]
Post subject: 

Yeah, try offscreenonly and View.Update.

Author:  36002 [ Fri Apr 08, 2005 2:37 pm ]
Post subject: 

Oops Embarassed, I thought I fixed that, its fixed now. I've also made the menu at first a little more user friendly. Its a bit slow, but it works. You can also use thekeys 1-8 to select the menu option, then hit enter.

Author:  jamonathin [ Fri Apr 08, 2005 2:52 pm ]
Post subject: 

Much Better, I like your menu idea, but why not use Font.Draw and make the text look better, or you savin some "special stuff" for version nortron_2_1_3.
Anyways, good job.

Author:  36002 [ Fri Apr 08, 2005 3:52 pm ]
Post subject: 

I still have some ideas. I wanted to code the basics now and make it look nice later. But I may work on the menu, make it look nicer. Thanks for the comments Smile

Author:  Mr. T [ Fri Apr 08, 2005 8:27 pm ]
Post subject: 

the font.draw still leaves streaks Confused

Author:  36002 [ Fri Apr 15, 2005 8:11 pm ]
Post subject: 

Really? That seems odd. I have a somewhat crappy computer at home, its fine. Even on the surprising better computers at school (somewhat better anyway), its fine. Anyway, heres the latest version. I forget whats changed exactly, but now you can skip the opening screen if you want be pressing any key.

Author:  36002 [ Sat Jun 04, 2005 3:12 pm ]
Post subject: 

Here's a new release, its version 2.2.3. Lots of changes I think, many menus redone. Change name, reset scores, etc.. Begininng of map functionality in this release... There is sound as well, no button yet to disable it. Also fixed the 'ghost' writing bug, don't know why it was happening. Suggestions/comments/bugs?

Author:  [Gandalf] [ Sat Jun 04, 2005 8:41 pm ]
Post subject: 

Good game, interesting menu well made. The ai is a bit... easy.

Author:  36002 [ Sun Jun 05, 2005 9:03 am ]
Post subject: 

Thanks. The main focus for the game was 2 player, so AI at this time isn't really the focus. I would still like to make it better though.

Author:  gohan [ Mon Jun 06, 2005 8:37 am ]
Post subject: 

I like the game very much(my friend too)...I didnt try it with the AI because i was playing against my friend....I have one question...how did you get the extra windows on there as well...(you know...the score, and the title blocks)

Author:  36002 [ Mon Jun 06, 2005 3:14 pm ]
Post subject: 

Thanks Smile I opened up more windows with Window.Open. With the case of the scoring/information window, I used Window.Select so that information could be written to it.

Author:  36002 [ Fri Jun 10, 2005 7:46 pm ]
Post subject: 

Well, I'm up to version 2.2.5 now. I've taken out the map editing functionality, as it wasn't going to be done in time. This is the version I plan on handing for my ISU so I was hoping that some people could test it, let me know of any bugs, maybe a handy feature I don't have yet, etc.

I've also added the ability to mute the sound, but right now you have to be in a game to do that. It's a little bugy though. Still working on that.

Let me know.

Author:  jamonathin [ Sat Jun 11, 2005 6:52 am ]
Post subject: 

Very nice. I like your Menu Screen. Would have been a little more impressive if instead of using images, it was in your coding, but it still looks pretty sharp. And I'm not sure why you duped all of your images. One .bmp ong .jpg. Its also too bad you have all that stuff for only 'Tron'.
Razz
But anyways, good job.

+ 15 Bits

Author:  36002 [ Sat Jun 11, 2005 10:00 am ]
Post subject: 

Thanks Smile The things being duped, ie in jpg and bmp, for a small amount of time I was considering using jpg as the images instead of bmp, but the quality wasn't there. I just havn't got around to deleting them. The reason for all the images was it was a lot easier to just make th epicture with all the words and stuff on it, otherwise I would have to add a whole lot of lines.... And because the font I used for the "NorTron" titles and some other stuff was in a font I had to dl off the net, so most computers wouldn't have it. Anyway, thansk for the bits

Author:  ZeroPaladn [ Tue Jun 21, 2005 9:00 am ]
Post subject: 

would yo be able to post the file as a .t so that us people still in school can test it out? ty

Author:  36002 [ Wed Jun 29, 2005 1:33 pm ]
Post subject: 

Alrighty, I think most people are out of school now so as promised I will be uploading the .t file as a zip later on. This is because it has a whole lot of images and other stuff. The coding isn't the greatest, most things have comments, but hey, it works.

[edit]
As promised, here is the source code.


: