Solved

The game called "Tron" ?

Posted on 1997-11-04
5
181 Views
Last Modified: 2010-04-16
Please send me instructions about how to make that game.
Is about 2 cars or motorcycles, that you can manipulate wiht the keyboard; each car has a color and if the car run it's color is make a rut; both cars go to a distinct velocity and the winner car is that wich close the other like a wall to stop it's vogaye.
The program is based in arrays, and the game run in a aleatory form.

I hope your answer.
If it's possible send it before the next november 7th,1997.
Anyway i will wait.
thanks !.

0
Comment
Question by:rol
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Expert Comment

by:fant0m
ID: 1216454
Heh, sounds like a homework assignment :).  I don't do that.  Any pascal programer should be able to program something like that given all the details listed.  Why does it have to be due before the specified date anyways?
0
 

Author Comment

by:rol
ID: 1216455
No it isn´t...fant0m !!

Not matter the date, the fact is that I have been tryng to
make the program for 3 days ...and I have advanced it  in some, but...I send  to the experts my questions becauese I thaught that you can help me with that. And I need that help !.
Because I need help with the arrays, I don´t understand them well, and I know that it a little difficult.

If I know how use them, you're right, I wouldn´t send you a question...

Please, if you can help me, I'll be very grateful !!.
In fact, in how I can manipulate the velocity of both cars..,
and how make that while each car run (for example: 1 red and 1 green), how make that each car display it's color in it's way.

Rol.




 






0
 
LVL 2

Accepted Solution

by:
kellyjj earned 100 total points
ID: 1216456
what you need to is first put your code into some kind of vector.  ( time slicing).  this way the program will be more "real time".  Second you will need to chain the movement of the cars to the tick timer interrupt.  As far as using arrays for this, I would not,  if all you are using is 2 cars then 2  records would be more than able to handle the the type of work you are describing.

They way you can control the speed is the decrease / increase the number of spaces they will move.

For 100 points for this kind of ? you proboly will not get any source code
0
 

Author Comment

by:rol
ID: 1216457

Thankyou kellyjj.!
I didn´t imagine  that the answer would be so quickly !!
but, I would like to tell you something:

I don't understand well, the last part of your asnwer.. about
the increase and decrease the number of spaces of movement of
the cars ?.

I would be very grateful, if you explain it a little more !!

Thanks.
Rol


0
 
LVL 2

Expert Comment

by:kellyjj
ID: 1216458
What I meant, is if you tie the cars to the tick timer then you can increase the wait or you can decrease the wait.  is this any clearer
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Pascal -- How do I use the variables of a procedure in another? 4 694
Determine Drive Types 2 478
Delphi Skype API 2 1,857
searching for DavidI's "Mobile Summer School download" 3 147
While it may be true that the internet is a place of possibilities, it is also a hostile environment lurking with many dangers. By clicking on the wrong link, trusting the wrong person or using a weak password, you are virtually inviting hackers to …
Building a cohesive image for your brand is vital to making an impression on consumers. When the economy is tough, brands do better than unbranded  products. This can have a huge impact on your long-term profits, as the economy goes up and down.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question