home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19011 < prev    next >
Encoding:
Text File  |  1993-01-21  |  2.2 KB  |  46 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!mcsun!news.forth.gr!csd.uch.gr!cyprus.csd.uch.gr!not-for-mail
  3. From: kilitzir@cyprus.csd.uch.gr (Kilitzirakis christos 122)
  4. Subject: I need you knowledge for GFX SPEED!
  5. Message-ID: <1jlmmuINN6r7@cyprus.csd.uch.gr>
  6. Sender: news@csd.uch.gr
  7. Organization: Computer Science Department, University of Crete HELLAS
  8. Date: Thu, 21 Jan 1993 08:26:06 GMT
  9. Lines: 35
  10.  
  11. Hello there,
  12.   I have written a program (in Pascal) that simulates the whole
  13. screen as being a right window of a spaceship (i.e I have stars
  14. moving from left to right with various speeds and various colour)
  15.   Now the program has four Integer arrays (one array for x[i],one
  16.   for y[i] one for step[i] and finally color[i])
  17.   Allthough the speed for up to 30 or 40 stars is quite acceptable
  18. there is an annoying thing that can be seen.You can see the old pos
  19. of a star and the new pos at the same time (You see it as a double,
  20. not to mention you can see another one (two positions back) in the
  21. worst case).So what I thought was that I could have eliminate that
  22. by having two screens (one visual,and have all draws taken to the
  23. other and then flip active and visual screens)
  24.   Yeah, good thought...But I did 'setbuffsize(2);setactivepage(1);
  25.   setvisualpage(2);' and I had no problem with compiling it,but I 
  26. had a crash on running it... (Any hints here???)
  27.   So, how can I do it better?What should I optimise???
  28.   If I have sprite stars would it be better?
  29.   Should I turn to C for better results?
  30.   And if you are good in programming graphics can you write a best-
  31.   optimised program and send me the source??? (Come on it won't take
  32.   you more than 20 minutes)
  33.   Oh,here comes a stupid one...How can I break pascal programs that
  34.   are running??? (Ctrl-C DOES NOT WORK,and nothing else I have tried
  35.   too...)
  36.   Please I am desperate on seeing some source. :-)
  37.   Oh, and another one ... I have written a program to use it instead
  38.   of dir/list commands but how do I go about it, in order to set the
  39.   'pure' bit???
  40.   Thank you for taking the time and read this...I am sorry for my bad
  41.   english, I hope you did understand what I was trying to say :-)
  42.                     Friendly,
  43.                     Alkis Argiropoulos
  44.                     (kilitzir@skiathos.csd.uch.gr)
  45.  
  46.