Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Zippy Race
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
copthesaint




PostPosted: Wed Nov 19, 2008 1:12 pm   Post subject: Zippy Race

As I am also making Final Fantasy I decided to take on a second project
Zippy race Plz don't post until I have asked a question.
Posted Image, might have been reduced in size. Click Image to view fullscreen.

Q1: (isn't about turing) what would be the best way to increase the score?
Sponsor
Sponsor
Sponsor
sponsor
andrew.




PostPosted: Wed Nov 19, 2008 6:25 pm   Post subject: RE:Zippy Race

A1: Why don't you make the score go up every second by 10 and if you crash it goes down by 20?
copthesaint




PostPosted: Wed Nov 19, 2008 7:34 pm   Post subject: RE:Zippy Race

ya I could do that with time vars (not delay I'm not completely sure at the moment but I think it's Time.Sec running since 1970!;pWink
Anyonther thought I would like many THEN I will pick the best or use more then one.

(EDIT)
(EDIT2)
Here's the newest version added a couple more things.
copthesaint




PostPosted: Fri Nov 21, 2008 9:04 pm   Post subject: RE:Zippy Race

Watch Video of Zippy Race

Q2: does anyone have a good AI titorial? if not does anyone have any ideas of making AI, (code not required) I just want to have more thoughts of how I should do this then just my own thoughts.

(plz still also give thoughts for Q1)
andrew.




PostPosted: Sat Nov 22, 2008 11:41 am   Post subject: RE:Zippy Race

Don't use Time.Sec, use Time.Elapsed or something that counts the time (in milliseconds) since your program started running. You could then say that when Time.Elapsed mod 10 is 1000 then the points go up by 10.

A2: I don't think there is an AI tutorial so you just have to make it yourself. Maybe you can have the other cars try to block you by moving left or right until they're x values are close to your x values.
copthesaint




PostPosted: Sun Nov 23, 2008 10:34 am   Post subject: Re: Zippy Race

andrew. wrote:

Maybe you can have the other cars try to block you by moving left or right until they're x values are close to your x values.

Well I know that lol.
I accually have the game zippy race.^^

andrew. wrote:

Don't use Time.Sec, use Time.Elapsed or something that counts the time (in milliseconds) since your program started running. You could then say that when Time.Elapsed mod 10 is 1000 then the points go up by 10.

The only Problem with this is their's no time limit for zippy race just gas. So for example if someone wanted a high sore why not just sit at the start for 4 hours and get 14400 points?

(14400 sec in 4 hours)
Insectoid




PostPosted: Sun Nov 23, 2008 10:36 am   Post subject: RE:Zippy Race

So base points on distance, or have a minimum speed above 0.
andrew.




PostPosted: Sun Nov 23, 2008 11:21 am   Post subject: RE:Zippy Race

I think distance makes more sense. For every 100 pixels, give them 10 points.
Sponsor
Sponsor
Sponsor
sponsor
DanielG




PostPosted: Sun Nov 23, 2008 1:33 pm   Post subject: RE:Zippy Race

or you can have as someone earlier said, a minimum speed once starting, and add a mutliplied if you win, so you will want to go as slow as you possibly can and still be first.
copthesaint




PostPosted: Sun Nov 23, 2008 2:40 pm   Post subject: Re: Zippy Race

Well anyways This is just how I will increase the score.

Points Requirements
100 Pick an Item up
500 Pass a car
10 Per 100 pixels
1000 Per level
DanielG




PostPosted: Sun Nov 23, 2008 5:41 pm   Post subject: RE:Zippy Race

wouldn't your current point system make you want to let a car pass you, then pass it, and repeat then repeat?
S_Grimm




PostPosted: Sun Nov 23, 2008 6:14 pm   Post subject: RE:Zippy Race

you should include code to make sure that the player doesn't get points for passing the same car twice.

I think Boolean variables just might do the trick.
copthesaint




PostPosted: Mon Nov 24, 2008 8:40 am   Post subject: RE:Zippy Race

... I have It so when you have passed a car it's speed will then equal 0.

thats what I was planning.

further more remember if you crash you loss 25 to gas and also My AI will make the car try to move in front of you.
SO it will be very difficult anyways if you wanted to go back and forth.
copthesaint




PostPosted: Tue Dec 02, 2008 3:19 pm   Post subject: Re: Zippy Race

Here is my most recent version of Zippy Race.
Curently I would say I am about 90% complete.
I'm still Looking for new Ideas and thoughts.

Still to complete:

-score section within options (pictures,buttons)
-space level (star, setup, space cars)

Please post comments.

(EDIT)
-Last post is 97% done one thing to do but anywho this is pretty much done
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 14 Posts ]
Jump to:   


Style:  
Search: