Changeset 70 for trunk/UEngine.pas
- Timestamp:
- Jan 11, 2023, 1:15:24 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UEngine.pas
r69 r70 7 7 IntfGraphics, FPImage, LCLType, SpecializedBitmap, GraphType, Math, URectangle, 8 8 Syncobjs, UThreading, Forms, DateUtils, UAudioSystem, Generics.Collections, 9 UWorld, UMatter ;9 UWorld, UMatter, USound; 10 10 11 11 const … … 243 243 CurrentRound: Integer; 244 244 MaxRound: Integer; 245 AudioShot: T MediaPlayer;246 AudioExplode: T MediaPlayer;245 AudioShot: TSound; 246 AudioExplode: TSound; 247 247 DrawDuration: TDatetime; 248 248 constructor Create(AOwner: TComponent); override; … … 645 645 Engine.Redraw; 646 646 end; 647 if Shield <= 0then begin647 if (Shield <= 0) and not Exploded then begin 648 648 Shield := 0; 649 649 Explosion(Position, ExplosionRange); … … 1817 1817 World := TWorld.Create; 1818 1818 //DefaultAudioSystem := TAudioSystemMPlayer.Create(nil); 1819 AudioShot := TMediaPlayer.Create(nil); 1820 AudioShot.FileName := 'Audio/GE_KF7_Soviet.wav'; 1821 AudioShot.Open; 1822 AudioExplode := TMediaPlayer.Create(nil); 1823 AudioExplode.FileName := 'Audio/bomb.wav'; 1824 AudioExplode.Open; 1819 AudioShot := TSound.Create(nil); 1820 AudioShot.FileName := GetCurrentDir + '/Audio/GE_KF7_Soviet.wav'; 1821 AudioExplode := TSound.Create(nil); 1822 AudioExplode.FileName := GetCurrentDir + '/Audio/bomb.wav'; 1825 1823 InitPlayerPool; 1826 1824 DigMasks := TObjectList<TMatrixByte>.Create;
Note:
See TracChangeset
for help on using the changeset viewer.