Changeset 32 for trunk/UCore.pas
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 4 4 tunneler.exe 5 5 heaptrclog.trc 6 tunneler.lps
-
- Property svn:ignore
-
trunk/UCore.pas
r28 r32 8 8 Dialogs, Classes, SysUtils, Contnrs, Graphics, SpecializedMatrix, SpecializedList, 9 9 IntfGraphics, FPImage, LCLType, SpecializedBitmap, GraphType, Math, URectangle, 10 Syncobjs, UThreading, Forms, DateUtils ;10 Syncobjs, UThreading, Forms, DateUtils, UAudioSystem, UAudioSystemMPlayer; 11 11 12 12 const … … 213 213 CurrentRound: Integer; 214 214 MaxRound: Integer; 215 AudioShot: TMediaPlayer; 216 AudioExplode: TMediaPlayer; 215 217 procedure CheckGameEnd; 216 218 constructor Create; … … 765 767 //with Engine, World do 766 768 //if TMatter(Matter[Surface.Items[Position]]).Diggable ; 769 Engine.AudioShot.Play; 767 770 end; 768 771 end; … … 821 824 Explosion(Position, ExplosionRange); 822 825 Exploded := True; 826 Engine.AudioExplode.Play; 823 827 end; 824 828 end else begin … … 846 850 Explosion(Position, ExplosionRange); 847 851 Exploded := True; 852 Engine.AudioExplode.Play; 848 853 end; 849 854 … … 1543 1548 World := TWorld.Create; 1544 1549 World.Engine := Self; 1550 DefaultAudioSystem := TAudioSystemMPlayer.Create(nil); 1551 AudioShot := TMediaPlayer.Create(nil); 1552 AudioShot.FileName := 'Audio/GE_KF7_Soviet.wav'; 1553 AudioShot.Open; 1554 AudioExplode := TMediaPlayer.Create(nil); 1555 AudioExplode.FileName := 'Audio/bomb.wav'; 1556 AudioExplode.Open; 1545 1557 InitPlayerPool; 1546 1558 DigMasks := TListObject.Create; … … 1553 1565 begin 1554 1566 Active := False; 1555 DigMasks.Free; 1556 FBitmapLower.Free; 1557 FBitmapLock.Free; 1558 IntfImage.Free; 1559 PlayerPool.Free; 1560 Players.Free; 1561 Keyboard.Free; 1562 World.Free; 1563 Lock.Free; 1567 FreeAndNil(DigMasks); 1568 FreeAndNil(FBitmapLower); 1569 FreeAndNil(FBitmapLock); 1570 FreeAndNil(IntfImage); 1571 FreeAndNil(PlayerPool); 1572 FreeAndNil(Players); 1573 FreeAndNil(Keyboard); 1574 FreeAndNil(World); 1575 FreeAndNil(Lock); 1576 FreeAndNil(AudioShot); 1577 FreeAndNil(AudioExplode); 1564 1578 inherited Destroy; 1565 1579 end;
Note:
See TracChangeset
for help on using the changeset viewer.