View Full Version : review java game.. thanks
Jerry
May 19th, 2001, 07:02
Hi..
I'm taking JAVA as one of my high school electives and we recently had a project where we need to make a fun, original game. I decided to make a game where you drive a car on a highway and weave in and out of cars. I thought it would be fun and got the idea from a calculator game I have seen before.
I just finished with most of the code and would like to know how I can improve this game. The graphics are pretty simple right now because I am restricted to drawing with the 2d java graphic library.
Here is the link..
http://www.jsu07.com/highway/ [edited 05/27]
I call the game Highway. It should be pretty easy to figure out how to play the game. All you do is go up and down. Any comments would be much appreciated.. Thanks!
gyrbo
May 19th, 2001, 10:20
Verry nice. Damm, I didn't beated the highscore.
I give you a 10/10 ;)
DerMaulwurF
May 19th, 2001, 13:58
Same as gyrbo
good made, and easy (important for me;)
Congratulations,to the person who made the highscore
(couldn't beat it ;(
seemed pretty easy.. i beat the high score on my first try.. and I wasn't playing too seriously either..
Jerry
May 19th, 2001, 17:33
the highscore is hardcoded right now..
it shouldn't be too hard to beat it.. the level gets harder and harder towards the end..
keith
May 19th, 2001, 19:10
damn, made it to the end on the first try, just gotta be patient.
nice game.
Till that drunk driver hit me!!! Very nicely done. cool little game. Can you add motor cycles and sirans on players car. As is should still be an A.
ace0
May 19th, 2001, 22:59
could you share it?
Jerry
May 20th, 2001, 03:46
Well.. right now I'm adding in trucks.. basically the same as cars except longer.
I'll turn in the game this thursday and at this time I'll figure out how to setup a high score server and record high scores..
I'll probably also use gif images for the cars after I turn it in. I'm not suppose to make programs using gif images and things because when my teacher used to allow it.. some people would just turn in a program that prints out the whole output as a gif image. instead of drawing each and every line and writing all the text and stuff
Jerry
May 20th, 2001, 03:52
trucks = big rigs
ace0.. what do you mean by sharing it? the source?
gyrbo
May 20th, 2001, 04:42
Originally posted by Jerry
trucks = big rigs
ace0.. what do you mean by sharing it? the source?
I guess he means the game. If your interested, I want the game on my site! I'll give you credit. Please.
Jerry
May 20th, 2001, 16:36
maybe when i finish adding more features to it..
i have a version that saves high scores now..
http://www.jsu07.com/highway/ [edited 05/27]
in this version i plan on making the cars gif images and having a loading thing in the beginning of the applet to load images and the high score.. i've never had much luck with sounds so i don't think i'll add sounds..
are you using threads in your applet?
Jerry
May 21st, 2001, 18:51
yes.. i use a thread that loops over and over except when there is a game over or a pause..
also.. i double buffer each frame. .(draw to image.. then output image)
how about each car? is each car a separate thread?
Jerry
May 22nd, 2001, 03:08
oh.. no i don't multithread in this game.. every car has its own speed.. and each frame they move that speed (which is basically how many pixels Left or Right they move)..
I haven't tried multithreading it so that each car has its own thread. The computers that we have at school are old UNIX 386 or 486s and can't handle much.. even the game right now lags a little.. the fastest computers we have in our java lab is pentiums (586) running redhat linux.. we have a PC lab containing all Dell Pentium IIIs but that is for another class.. then we have an iMac lab.. which is for C++.
cool.. try working with threads, it's a nice challenge to get them set up, but you can probably add some cool features to your game somewhat easily..
anyways.. good job..
zazoo
May 26th, 2001, 17:37
heh heh heh
i got board and made a game exactly like the one you made but i made it for windows and yours is alot better
(mine flickers, doesn't have trucks and doesnt record the score)
nice game ive played it like 15 times
heh heh heh I'm getting adicted
Jerry
May 27th, 2001, 07:52
i've changed all the links to
http://www.jsu07.com/highway/
uhh.. its not done.. but i don't think i'll be working much on it anymore..
my teacher REJECTED my game on monday :P.. i think she thought i copied somebody's game. so she told me to make a simpler game..
http://www.jsu07.com/rushHour/
that's my simple game :P
if anyone wants to have highway on their site.. i included code on how to do that.. the current version only allows the code residing under my server (bytewire.net) to record high scores..
zazoo.. if you double buffered it.. it won't flicker.. ie: make image.. draw to image.. draw image to frame..
thank's for all the input everyone! if i ever feel bored enough.. i'll update the game... but i don't see that happening soon..
doesn't make sense.. If you can explain every line of code and describe how you implemented the code, you should convince her that you did not copy..
gotta cover your ---...
gyrbo
May 27th, 2001, 13:35
I like the new game too, I got ot level3, then I just stoped playing.
Jerry
May 27th, 2001, 21:12
Originally posted by stu
doesn't make sense.. If you can explain every line of code and describe how you implemented the code, you should convince her that you did not copy..
gotta cover your ---...
i commented almost every line of code :) it's ok though.. i kind of amazed myself with highway.. before that i made pacman and space invaders.. which were unbelievably slow and "flickery".. highway isn't too advanced.. but it shows myself how i have improved since the beginning of the school year..
one of the main reasons she rejected it was because of the use of threads.. which i took the time to figure out myself.. also because i double buffered it.. i double buffered rushHour too.. but the game itself looks so simple that i don't think she'll care
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.