Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2017, 5:00:59 PM (7 years ago)
Author:
vyang
Message:

Asteroids2D erfolgreich als Minigame eingebunden, Dimensionen des Spielfeldes werden im CenterPoint gesetzt.

Location:
code/branches/Asteroid_HS17/data
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Asteroid_HS17/data/levels/Asteroids2D.oxw

    r11593 r11608  
    66/>
    77
    8 
    9 <!--wird immer gebraucht-->
    108<?lua
    119  include("stats.oxo")
     
    1311?>
    1412
    15 
    1613<?lua
    17   include ("overlays/HUDTemplates3.oxo")
     14  include("templates/spaceshipAssff2.oxt")
     15  include("templates/spaceshipPirate.oxt")
    1816  include("templates/spaceshipAsteroids2D.oxt")
     17  include("templates/enemyInvader.oxt")
     18  include("overlays/Asteroids2DHUD.oxo")
    1919?>
    2020
    21 <!--Templates schreiben oder von spaceship kopieren-->
    22 
    2321<Level
    24   plugin = asteroids2D
     22  plugins = asteroids2D
    2523  gametype = Asteroids2D
    2624>
     
    3028  <?lua include("includes/notifications.oxi") ?>
    3129
    32     <!-- ambientlight = "0.8, 0.8, 0.8"
    33     skybox       = "Orxonox/Starbox"
    34     WorldRange lieber im src einschraenken-->
    3530  <Scene
    36     ambientlight = "0.8, 0.7, 0.4"
    37     skybox     = "Orxonox/skyBoxBasic"
     31    ambientlight = "1.0, 1.0, 1.0"
     32    skybox       = "Orxonox/Starbox"
     33    negativeWorldRange = "-100000, -100000, -100000"
     34    positiveWorldRange = " 100000,  100000,  100000"
    3835  >
     36
     37  <WorldAmbientSound
     38    source="Earth.ogg"
     39    looping="true"
     40    playOnLoad="true"
     41  />
     42
     43    <!-- <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> -->
     44    <Light type=directional position="-100, 10000, -700" lookat="0.2, -1, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
     45    <SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass= Asteroids2DShip pawndesign=spaceshipasteroids2d />
     46
     47    <Model mesh="axes.mesh" scale=10 position="0,0,0" />
     48    <Asteroids2DCenterPoint name=asteroids2Dcenter />
    3949 
    40     <!-- <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> -->
    41     <Light type=directional position="1100, 11000, -7000" lookat="0, 0, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
    42 
    43     <SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=Asteroids2DShip pawndesign=spaceshipasteroids2D/>
    44  
    45     <Asteroids2DCenterPoint name=asteroids2Dcenter />
    46 
    47     <Model mesh="axes.mesh" scale=10 position="0,0,-100" />
    48    
    4950   
    5051  </Scene>
    5152</Level>
    52 
    53 
  • code/branches/Asteroid_HS17/data/levels/MiniGameTest.oxw

    r11593 r11608  
    1515  include("templates/spaceshipMiniGameTest.oxt")
    1616  include("templates/enemyInvader.oxt")
    17   include("templates/DodgeRacePattern.oxt")
    18   include("overlays/DodgeRaceHUD.oxo")
     17  include("overlays/MiniGameTestHUD.oxo")
    1918?>
    2019
     
    3029  <Scene
    3130    ambientlight = "1.0, 1.0, 1.0"
    32     skybox       = "Orxonox/skyBoxClouds"
     31    skybox       = "Orxonox/Starbox"
    3332    negativeWorldRange = "-100000, -100000, -100000"
    3433    positiveWorldRange = " 100000,  100000,  100000"
     
    4342    <!-- <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> -->
    4443    <Light type=directional position="-100, 10000, -700" lookat="0.2, -1, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
    45     <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass= MiniGameTestShip pawndesign=spaceshipdodgerace />
     44    <SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass= MiniGameTestShip pawndesign=spaceshipminigametest />
     45
     46    <Model mesh="axes.mesh" scale=10 position="0,0,0" />
    4647
    4748    <DistanceTrigger name="start" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=0 />
     
    5051    <MiniGameTestCenterPoint name=invadercenter />
    5152 
    52   <StaticEntity position="0,-50,0" direction="0,0,0"   scale="1" collisionType=static mass=1 friction=0.01 >
    53       <attached>
    54         <Model position="0,0,0" mesh="plane.mesh" scale3D="100000,0,100000" />
    55       </attached>
    5653
    57       <collisionShapes>
    58         <BoxCollisionShape position="0,0,0" halfExtents="1,1,1" />
    59       </collisionShapes>
    60 
    61   </StaticEntity>
    6254   
    6355 
  • code/branches/Asteroid_HS17/data/levels/templates/spaceshipAsteroids2D.oxt

    r11593 r11608  
    1 <Template name=spaceshipasteroids2D>
    2   <SpaceShip
     1<Template name=spaceshipasteroids2d>
     2  <Asteroids2DShip
    33   hudtemplate            = spaceshiphud
    44   camerapositiontemplate = spaceshipescortcameras
    55   spawnparticlesource    = "Orxonox/fairytwirl"
    66   spawnparticleduration  = 3
    7    explosionchunks        = 10
     7   explosionchunks        = 4
    88
    9    health            = 80
    10    maxhealth         = 200
    11    initialhealth     = 80
     9   health            = 40
     10   maxhealth         = 40
     11   initialhealth     = 40
    1212
    13    shieldhealth        = 35
    14    initialshieldhealth = 35
    15    maxshieldhealth     = 60
    16    shieldabsorption    = 0.9
     13   shieldhealth        = 20
     14   initialshieldhealth = 20
     15   maxshieldhealth     = 20
     16   shieldabsorption    = 0.1
    1717   shieldrechargerate  = 1
    1818   shieldrechargewaittime = 1
     
    3434
    3535   collisionType     = "dynamic"
    36    mass              = 80
    37    linearDamping     = 0.7
     36   mass              = 4200000
     37   linearDamping     = 0.9999999
    3838   angularDamping    = 0.9999999
     39
     40   collisiondamage = 100
     41   enablecollisiondamage = true
     42   
    3943  >
    4044    <engines>
    41       <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipescortengine />
    42       <MultiStateEngine position="-7.6, 0, 0" template=spaceshipescortengine />
     45      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipinvaderengine />
     46      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipinvaderengine />
    4347    </engines>
    4448    <attached>
     
    5660      <BoxCollisionShape position="0,     0,-12" halfExtents="4  , 4 ,7" />
    5761    </collisionShapes>
    58     <explosion>
     62    <explosion >
    5963      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
    6064      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
    6165      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
    6266
    63       <ExplosionPart mesh="explosionparts/escort_part_1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
    64       <ExplosionPart mesh="explosionparts/escort_part_2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
    65       <ExplosionPart mesh="explosionparts/escort_part_3.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
    66       <ExplosionPart mesh="explosionparts/escort_part_4.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
    67       <ExplosionPart mesh="explosionparts/escort_part_5.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
    68       <ExplosionPart mesh="explosionparts/escort_part_6.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
     67      <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" />
     68      <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
     69      <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
     70      <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
     71      <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
    6972    </explosion>
    7073<?lua
    71   include("../includes/weaponSettingsEscort.oxi")
     74  include("../includes/invaderWeapon.oxi")
    7275?>
    73   </SpaceShip>
     76  </Asteroids2DShip>
    7477</Template>
    7578
    7679<Template name=spaceshipescortcameras defaults=0>
    77   <SpaceShip>
     80  <Asteroids2DShip>
    7881    <camerapositions>
    79       <CameraPosition position="0,600,0" pitch=-90 absolute=true />
    80       <CameraPosition position="0,50,160" drag=true mouselook=false />
    81       <CameraPosition position="0,40,125" drag=true mouselook=false/>
    82       <CameraPosition position="0,30, 90" drag=true mouselook=false/>
     82    <!--<CameraPosition position="0,100,180" direction="0, -0.2, -1" drag=false mouselook=true />
     83    <CameraPosition position="0,200,250" direction="0, -0.4, -1" drag=false mouselook=true />
     84    <CameraPosition position="0,30,150" direction="0, 0, -1" drag=false mouselook=true />
     85    <CameraPosition position="0,1300,-100" direction="0, -1, 0" drag=false mouselook=true />
     86-->
     87    <CameraPosition position="0,600,0" pitch=-90 absolute=true />
     88    <CameraPosition position="0,50,160" drag=true mouselook=true />
     89    <CameraPosition position="0,40,125" drag=true mouselook=true />
     90    <CameraPosition position="0,30, 90" drag=true mouselook=true />
    8391    </camerapositions>
    84   </SpaceShip>
     92  </Asteroids2DShip>
    8593</Template>
    8694
    87 <Template name=spaceshipescortengine baseclass=MultiStateEngine>
     95<Template name=spaceshipinvaderengine baseclass=MultiStateEngine>
    8896  <MultiStateEngine
    8997   boostfactor    = 2.2
     
    105113    <EffectContainer condition="idle">
    106114      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
    107        />
    108       <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 12, -2, 14" colour="0.2, 0.5, 0.65, 1.0" width=150 length=15 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" />
    109       <Backlight mainstate=activity active=false scale=0.33 name=bltest position="-12, -2, 14" colour="0.2, 0.5, 0.65, 1.0" width=15 length=15 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" />
    110115    </EffectContainer>
    111116    <EffectContainer condition="not idle">
     
    117122    </EffectContainer>
    118123    <EffectContainer condition="normal or boost">
    119       <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 12, -2, 14" colour="0.2, 1.0, 0.65, 1.0" width=5 length=1500 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
    120       <Backlight mainstate=activity active=false scale=0.33 name=bltest position="-12, -2, 14" colour="0.2, 1.0, 0.65, 1.0" width=15 length=1500 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
     124      <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 12, 0, 10" colour="0.2, 1.0, 0.65, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
     125      <Backlight mainstate=activity active=false scale=0.33 name=bltest position="-12, 0, 10" colour="0.2, 1.0, 0.65, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
    121126    </EffectContainer>
    122 
    123127    <EffectContainer condition="boost">
    124128      <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 12, 0, 10" colour="0.6, 0.8, 0.75, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
  • code/branches/Asteroid_HS17/data/levels/templates/spaceshipMiniGameTest.oxt

    r11593 r11608  
    1 <Template name=spaceshipdodgerace>
     1<Template name=spaceshipminigametest>
    22  <MiniGameTestShip
    33   hudtemplate            = spaceshiphud
     
    8080  <MiniGameTestShip>
    8181    <camerapositions>
    82                 <CameraPosition position="0,100,180" direction="0, -0.2, -1" drag=false mouselook=true />
    83                 <CameraPosition position="0,200,250" direction="0, -0.4, -1" drag=false mouselook=true />
    84                 <CameraPosition position="0,30,150" direction="0, 0, -1" drag=false mouselook=true />
    85                 <CameraPosition position="0,1300,-100" direction="0, -1, 0" drag=false mouselook=true />
     82    <!--<CameraPosition position="0,100,180" direction="0, -0.2, -1" drag=false mouselook=true />
     83    <CameraPosition position="0,200,250" direction="0, -0.4, -1" drag=false mouselook=true />
     84    <CameraPosition position="0,30,150" direction="0, 0, -1" drag=false mouselook=true />
     85    <CameraPosition position="0,1300,-100" direction="0, -1, 0" drag=false mouselook=true />
     86-->
     87    <CameraPosition position="0,600,0" pitch=-90 absolute=true />
     88    <CameraPosition position="0,50,160" drag=true mouselook=true />
     89    <CameraPosition position="0,40,125" drag=true mouselook=true />
     90    <CameraPosition position="0,30, 90" drag=true mouselook=true />
    8691    </camerapositions>
    8792  </MiniGameTestShip>
Note: See TracChangeset for help on using the changeset viewer.