hedgewars/uVariables.pas
branchhedgeroid
changeset 5530 25d4118056e1
parent 5505 a55aab592950
child 5537 3d8b301a7054
equal deleted inserted replaced
5516:8710987d3484 5530:25d4118056e1
   165     disableLandBack : boolean;
   165     disableLandBack : boolean;
   166     conversionFormat: PSDL_PixelFormat;
   166     conversionFormat: PSDL_PixelFormat;
   167 
   167 
   168 {$IFDEF SDL13}
   168 {$IFDEF SDL13}
   169     SDLwindow       : PSDL_Window;
   169     SDLwindow       : PSDL_Window;
   170     SDLrender       : PSDL_Renderer;
   170     SDLGLcontext    : PSDL_GLContext;
   171 {$ENDIF}
   171 {$ENDIF}
   172 
   172 
   173     WorldDx: LongInt;
   173     WorldDx: LongInt;
   174     WorldDy: LongInt;
   174     WorldDy: LongInt;
   175 
   175 
   631             (FileName:         'throwrelease.ogg'; Path: ptSounds),// sndThrowRelease
   631             (FileName:         'throwrelease.ogg'; Path: ptSounds),// sndThrowRelease
   632             (FileName:               'splash.ogg'; Path: ptSounds),// sndSplash
   632             (FileName:               'splash.ogg'; Path: ptSounds),// sndSplash
   633             (FileName:        'shotgunreload.ogg'; Path: ptSounds),// sndShotgunReload
   633             (FileName:        'shotgunreload.ogg'; Path: ptSounds),// sndShotgunReload
   634             (FileName:          'shotgunfire.ogg'; Path: ptSounds),// sndShotgunFire
   634             (FileName:          'shotgunfire.ogg'; Path: ptSounds),// sndShotgunFire
   635             (FileName:          'graveimpact.ogg'; Path: ptSounds),// sndGraveImpact
   635             (FileName:          'graveimpact.ogg'; Path: ptSounds),// sndGraveImpact
       
   636             (FileName:           'mineimpact.ogg'; Path: ptSounds),// sndMineImpact
   636             (FileName:             'minetick.ogg'; Path: ptSounds),// sndMineTicks
   637             (FileName:             'minetick.ogg'; Path: ptSounds),// sndMineTicks
       
   638             (FileName:             'Droplet1.ogg'; Path: ptSounds),// sndMudballImpact
   637             (FileName:           'pickhammer.ogg'; Path: ptSounds),// sndPickhammer
   639             (FileName:           'pickhammer.ogg'; Path: ptSounds),// sndPickhammer
   638             (FileName:                  'gun.ogg'; Path: ptSounds),// sndGun
   640             (FileName:                  'gun.ogg'; Path: ptSounds),// sndGun
   639             (FileName:                  'bee.ogg'; Path: ptSounds),// sndBee
   641             (FileName:                  'bee.ogg'; Path: ptSounds),// sndBee
   640             (FileName:                'Jump1.ogg'; Path: ptVoices),// sndJump1
   642             (FileName:                'Jump1.ogg'; Path: ptVoices),// sndJump1
   641             (FileName:                'Jump2.ogg'; Path: ptVoices),// sndJump2
   643             (FileName:                'Jump2.ogg'; Path: ptVoices),// sndJump2
   727             (FileName:                 'skip.ogg'; Path: ptSounds),// sndSkip
   729             (FileName:                 'skip.ogg'; Path: ptSounds),// sndSkip
   728             (FileName:          'shotgunfire.ogg'; Path: ptSounds),// sndSineGun
   730             (FileName:          'shotgunfire.ogg'; Path: ptSounds),// sndSineGun
   729             (FileName:                'Ooff1.ogg'; Path: ptVoices),// sndOoff1
   731             (FileName:                'Ooff1.ogg'; Path: ptVoices),// sndOoff1
   730             (FileName:                'Ooff2.ogg'; Path: ptVoices),// sndOoff2
   732             (FileName:                'Ooff2.ogg'; Path: ptVoices),// sndOoff2
   731             (FileName:                'Ooff3.ogg'; Path: ptVoices),// sndOoff3
   733             (FileName:                'Ooff3.ogg'; Path: ptVoices),// sndOoff3
   732             (FileName:            'whipcrack.ogg'; Path: ptSounds),// sndWhack
   734             (FileName:               'hammer.ogg'; Path: ptSounds),// sndWhack
   733             (FileName:           'Comeonthen.ogg'; Path: ptVoices),// sndComeonthen
   735             (FileName:           'Comeonthen.ogg'; Path: ptVoices),// sndComeonthen
   734             (FileName:            'parachute.ogg'; Path: ptSounds),// sndParachute
   736             (FileName:            'parachute.ogg'; Path: ptSounds),// sndParachute
   735             (FileName:                 'bump.ogg'; Path: ptSounds),// sndBump
   737             (FileName:                 'bump.ogg'; Path: ptSounds),// sndBump
   736             (FileName:            'hogchant3.ogg'; Path: ptSounds),// sndResurrector
   738             (FileName:            'hogchant3.ogg'; Path: ptSounds),// sndResurrector
   737             (FileName:                'plane.ogg'; Path: ptSounds) // sndPlane
   739             (FileName:                'plane.ogg'; Path: ptSounds) // sndPlane
  2488 
  2490 
  2489     ScreenFade      := sfNone;
  2491     ScreenFade      := sfNone;
  2490 
  2492 
  2491 {$IFDEF SDL13}
  2493 {$IFDEF SDL13}
  2492     SDLwindow       := nil;
  2494     SDLwindow       := nil;
  2493     SDLrender       := nil;
  2495     SDLGLcontext    := nil;
  2494 {$ENDIF}
  2496 {$ENDIF}
  2495 
  2497 
  2496     // those values still are not perfect
  2498     // those values still are not perfect
  2497     cLeftScreenBorder:= round(-cMinZoomLevel * cScreenWidth);
  2499     cLeftScreenBorder:= round(-cMinZoomLevel * cScreenWidth);
  2498     cRightScreenBorder:= round(cMinZoomLevel * cScreenWidth + LAND_WIDTH);
  2500     cRightScreenBorder:= round(cMinZoomLevel * cScreenWidth + LAND_WIDTH);