home *** CD-ROM | disk | FTP | other *** search
- ╠≤δⁿ≥Φ∞σΣΦα Φ Φπ≡√
-
- ╫α±≥ⁿ VII
-
- ╧≡ε±≥εΘ αφΦ∞α÷Φεφφ√Θ Ωδα±±
-
- ▀ ⌡ε≈≤ ±ετΣα≥ⁿ αφΦ∞α÷Φ■ ± ≥ε≡α∞Φ, ε≥εß≡αµα ε≈σ≡σΣφεΘ ΩαΣ≡ Σδ ±ετΣαφΦ Γ∩σ≈α≥δσφΦ Γ≡α∙σφΦ . ─δ ≥επε, ≈≥εß√
- ±Σσδα≥ⁿ ²≥ε ΩαΩ ∞εµφε δσπ≈σ, Φ±∩εδⁿτ≤■ εß·σΩ≥φ≤■ ε≡Φσφ≥α÷Φ■, ΣεßαΓδ ∩≡ε±≥εΘ αφΦ∞α÷Φεφφ√Θ Ωδα±±. ▌≥ε≥ Ωδα±±
- ⌡≡αφΦ≥ ∩ετΦ÷Φ■ ±∩≡αΘ≥α, ≈Φ±δε ΩαΣ≡εΓ Γ σπε αφΦ∞α÷ΦεφφεΘ ∩ε±δσΣεΓα≥σδⁿφε±≥Φ Φ ±Ωε≡ε±≥ⁿ ±α∞εΘ αφΦ∞α÷ΦΦ. ▌≥ε ∩≡ε±≥εΘ
- Ωδα±±, φε εφ Γφε±Φ≥ Φτ∞σφσφΦ Γ ΩεΣ, ≥αΩΦσ ΩαΩ ΣεßαΓδσφΦσ ΦδΦ ≤ΣαδσφΦσ ±∩≡αΘ≥εΓ. ╦Φ±≥Φφπ 32.22 ∩≡σΣ±≥αΓδ σ≥ ∩≡ε±≥εΘ
- αφΦ∞α÷Φεφφ√Θ Ωδα±±.
-
- ╦Φ±≥Φφπ 32.22 ╧≡ε±≥εΘ αφΦ∞α÷Φεφφ√Θ Ωδα±±,
-
- integer
-
- class
-
- integer
- integer
- integer
- integer
-
- type
- TSimpleAnim
- private
- FFrameInterval
- FHumberOf Frames
- FLas tT ick Count
- FCurrentFrame
- protected
-
- function GetCurrentFrame ( TickCount : integer
- public
- X ' integer ;
- X : integer ;
-
- integer
- integer
- integer
- integer ] :
-
- constructor Create ( AFrameInterval
- ANumberOf Frames
- Ax, Ay
-
- integer
-
- property CurrentFrameC TickCount
-
- read GetCurrentFrame ;
- end ;
-
- integer
- integer
- integer
-
- constructor TSimpleAnim. Create ( AFrameInterval :
- ANuiriberOfFrames :
- Ax, Ay :
- begin
-
- FFrameinterval := AFrameInterval ;
- FNumberOf Frames := ANumberOf Frames ;
- X := Ax ;
- Y := Ay ;
- end ;
-
- integer
-
- function TSimpleAnim. GetCurrentFrame ( TickCount
- begin
-
- if TickCount - FLastTickCount >= FFrameinterval then begin
- FLastTickCount := TickCount ;
- inc ( FCurrentFrame ) ;
-
- if FCurrentFrame >╗ FNumberOf Frames then FCurrentFrame :=
- end ;
-
- Result := FCurrentFrame ;
- end ;
-
- integer
-
- ╩αΩ ΓΦΣΦ≥σ, Ωεφ±≥≡≤Ω≥ε≡ Create ∩≡ΦφΦ∞ασ≥ ∩α≡α∞σ≥≡√, ε∩≡σΣσδ ■∙Φσ ±∩≡αΘ≥, Φ ⌡≡αφΦ≥ Φ⌡ Γ ∩εδ ⌡ εß·σΩ≥α. ╤ΓεΘ±≥Γε
- CurrentFrame ±εεß∙ασ≥ φα∞, ΩαΩεΘ ΩαΣ≡ ±∩≡αΘ≥α Σεδµσφ ß√≥ⁿ ε≥εß≡αµσφ φα ²Ω≡αφσ ± ≤≈σ≥ε∞ ≥σΩ≤∙σπε τφα≈σφΦ TickCount.
- TickCount ⌠αΩ≥Φ≈σ±ΩΦ ∩≡σΣ±≥αΓδ σ≥ ±εßεΘ ≈Φ±δε ∞ΦδδΦ±σΩ≤φΣ, Ωε≥ε≡√σ Φ±≥σΩδΦ ± ∞ε∞σφ≥α τα∩≤±Ωα Windows. ┬√ ∞εµσ≥σ
- ∩εδ≤≈Φ≥ⁿ ²≥ε ≈Φ±δε ∩≡ε±≥√∞ Γ√τεΓε∞ ⌠≤φΩ÷ΦΦ GetTickCount. ╚±∩εδⁿτ≤σ∞√Θ ≥αΘ∞σ≡ Φ∞σσ≥ Γ√±εΩεσ ≡ατ≡σ°σφΦσ, Γ∩δε≥ⁿ Σε
- εΣφεΘ ∞ΦδδΦ±σΩ≤φΣ√. ▌≥ε φα∞φεπε ²⌠⌠σΩ≥ΦΓφσΘ, ≈σ∞ Φ±∩εδⁿτεΓαφΦσ Ωε∞∩εφσφ≥α TTimer, Ωε≥ε≡√Θ Φ∞σσ≥ ≡ατ≡σ°σφΦσ 55
- ∞ΦδδΦ±σΩ≤φΣ; εφ φσ ∞εµσ≥ Φ±∩εδⁿτεΓα≥ⁿ± ≈α∙σ, ≈σ∞ 18 ≡ατ Φ ±σΩ≤φΣ≤, Φ ²≥ε ±δΦ°Ωε∞ ∞σΣδσφφε Σδ ∩≡Φ∞σφσφΦ Γ Φπ≡α⌡.
- ╥αΩµσ TTimer φσ ε≈σφⁿ ≥ε≈σφ Φ Σασ≥ φσεΣΦφαΩεΓ√σ ≡στ≤δⁿ≥α≥√.
-
- CurrentFrame ∩≡Φ∞σφ σ≥± ⌠≤φΩ÷ΦσΘ GetCurrentFrame. CurrentFrame Φ±∩εδⁿτ≤σ≥ π≡≤ß√Θ, φε ∩≡ε±≥εΘ ∞σ≥εΣ ∩ε±δσΣεΓα-
- ≥σδⁿφεπε ∩σ≡σ⌡εΣα φα ±δσΣ≤■∙ΦΘ ΩαΣ≡, σ±δΦ Γ≡σ∞ Γ ∞ΦδδΦ±σΩ≤φΣα⌡ ± ∞ε∞σφ≥α ∩ε ΓδσφΦ ∩ε±δσΣφσπε ΩαΣ≡α ßεδⁿ°σ, ≈σ∞
- ∩≡ε∞σµ≤≥εΩ Γ≡σ∞σφΦ, ≥≡σß≤σ∞√Θ Σδ Σσ∞εφ±≥≡α÷ΦΦ ²≥επε ΩαΣ≡α. ╩επΣα ²≥ε ∩≡εΦ±⌡εΣΦ≥, CurrentFrame τα∩Φ±√Γασ≥ Γ≡σ∞ Γ
- FLastTickCount Φ ΓετΓ≡α∙ασ≥± Ω Φ±⌡εΣφε∞≤ ΩαΣ≡≤, σ±δΦ ±επδα±φε ∩ε±δσΣεΓα≥σδⁿφε±≥Φ ταΓσ≡°σφ ∩ε±δσΣφΦΘ ΩαΣ≡.
-
- ┬√ ΣεßαΓδ σ≥σ ²≥ε≥ ΩεΣ φσ∩ε±≡σΣ±≥Γσφφε Γ ∞εΣ≤δⁿ πδαΓφεΘ ⌠ε≡∞√. ▌≥ε φσ Ωε∞∩εφσφ≥, ∩ε²≥ε∞≤ φσ≥ φσεß⌡εΣΦ∞ε±≥Φ Σε-
- ßαΓδ ≥ⁿ σπε Γ ∩αδΦ≥≡≤ Ωε∞∩εφσφ≥. ▌Ωτσ∞∩δ ≡√ ±ετΣα■≥± Γ ΩεΣσ ≥εδⁿΩε Γ ≡σµΦ∞σ Γ√∩εδφσφΦ . ▌≥ε Σσδασ≥± ∩≤≥σ∞ ΣεßαΓδσ-
- φΦ TList, φατΓαφφεπε Animations, Γ ε∩≡σΣσδσφΦσ ⌠ε≡∞√. ─αφφ√Θ ±∩Φ±εΩ ±ετΣασ≥± Γ FormShow, Φ Γ√ ΣεßαΓδ σ≥σ Γ φσσ ≥≡Φ
- αφΦ∞α÷Φεφφ√⌡ εß·σΩ≥α:
-
- Animations := TList .Create ;
-
- Animations.Add( TSimpleAnim.Create( 48, 60, 260, 120 ) ) ;
- Animations.Add ( TSimpleAnim. Create( 12, 60, 420, 248 ) ) ;
- Animations.Add( TSimpleAnim. Create( 80, 60, 200, 320 ) ) ;
-
- ╟α∞σ≥ⁿ≥σ, ≈≥ε Γ≥ε≡εΘ ∩α≡α∞σ≥≡ Create ù ≈Φ±δε ΩαΣ≡εΓ Γ αφΦ∞α÷ΦεφφεΘ ∩ε±δσΣεΓα≥σδⁿφε±≥Φ ù ≡αΓσφ 60, ╫≥ε ²≥ε ετφα≈ασ≥?
- ╒ε≡ε°ε, σ±δΦ Γ√ ε≥Ω≡εσ≥σ ALL.BMP Φ ∩≡εΦτΓσΣσ≥σ Γ φσ∞ ∩≡εΩ≡≤≥Ω≤, Γ√ ≤ΓΦΣΦ≥σ Γ±σ αφΦ∞α÷Φεφφ√σ ΩαΣ≡√, ≡ατ∞σ∙σφφ√σ
- ∩εΣ ⌠εφεΓ√∞ Φτεß≡αµσφΦσ∞. ╚⌡ Γ±σπε 60, Φ εφΦ ≡ατ∞σ∙σφ√ Γ °σ±≥Φ ≡ Σα⌡ ∩ε 10 Φτεß≡αµσφΦΘ Γ ΩαµΣε∞ ≡ Σ≤. ├δαΓφεσ
-
-