Board index » delphi » How do you make two things move in turbo pascal 7.0
Diesel
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Diesel
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
How do you make two things move in turbo pascal 7.0I'm wondering how to make 2 things move in turbo pascal 7.0 at the same diese...@geocities.com |
Arsène von Wyss [Antispam - email address in message
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How do you make two things move in turbo pascal 7.0Diesel <diese...@geocities.com> schrieb im Beitrag Quote> I'm wondering how to make 2 things move in turbo pascal 7.0 at the same move all these objects one step. That will move them at the same time. Another possibility for more demanding parallel execution is to use threads; a threading unit for BP7 can be found on my homepage. Quote> diese...@geocities.com avonwyss(at)beaulieu-software.ch +------------------------------------------------------------------------+ |
Remco de Kort
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How do you make two things move in turbo pascal 7.0QuoteDiesel wrote: loop. If you want to be able to control both movements with the keyboard you'll have to use some keyboard-routines other then CRT's. There's lots of those in SWAG. Remco de Korte |
Peter Moraliysk
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How do you make two things move in turbo pascal 7.0You actually have to use virtual pages ;) BTW if some1 knows the new series (above 21) please mail me. --==[ PART 7 ]==-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Hello! By popular request, this part is all about animation. I will be Although not often used in demo coding, animation is usually used in In this part I will also be a lot less stingy with assembler code :) By the way, I apologise for this part taking so long to be released, but If you would like to contact me, or the team, there are many ways you call during varsity) NB : If you are a representative of a company or BBS, and want ASPHYXIA =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I am sure all of you have seen a computer game with animation at one or This sounds obvious enough, but can be very difficult to code when you In this trainer I will discuss various methods of meeting these two =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= It is quite obvious that for most animation to succeed, you must have So, how do we store these frames? I hear you cry. Well, the obvious TYPE icon = Array [1..50,1..50] of byte; VAR tree : icon; Procedure LoadCEL (FileName : string; ScrPtr : pointer); BEGIN We now have the 50x50 picture of TREE.CEL in our array tree. We may access Now that we have the picture, how do we control the object? What if we TYPE Treeinfo = Record VAR Forest : Array [1..20] of Treeinfo; You now have 20 trees, each with their own information, location etc. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I will discuss three methods of doing this. These are NOT NECESSARILY METHOD 1 : Step 1 : Create two virtual pages, Vaddr and Vaddr2. In ascii, it looks like follows ... +---------+ +---------+ +---------+ The advantages of this approach is that it is straightforward, continual METHOD 2 : Step 1 : Draw background to VGA. In terms of ascii ... +---------+ The advantages of this method is that very little extra memory is METHOD 3 : Step 1 : Set up one virtual screen, VADDR. In ascii ... +---------+ +---------+ The advantages are that writing from the virtual screen is quicker then In the attached sample program, a mixture of Method 3 and Method 1 is In the sample program, you will see that I restore the entire background The following sections are explanations of how the various assembler =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To begin with, I will explain a few of the ASM variables and functions : <NOTE THAT THIS IS AN EXTREMELY SIMPLISTIC VIEW OF ...read more » |
1. I would like to know the difference between Borland Pascal 7.0 and Turbo Pascal 7.0
2. Turbo Pascal 7.0 vs Borland Pascal 7.0
3. Question: Doing two things at once?
4. Doing two things at once in D3
5. How might I get Turbo Pascal 7.0 and Turbo De{*word*81} 4.6 to play together
6. I NEED TURBO PASCAL 7.0 HELP FILE (TURBO.TPH)
7. Turbo Pascal 7.0 vs Turbo C++ 3.1
8. FREEWARE programms made in Turbo Pascal to DOWNLOAD !!!!!!
9. How can a .exe file runs in DOS has windows?(Made in Turbo Pascal)