Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Asteroid_HS17/data/levels/templates/asteroidsAsteroids2D.oxt @ 11823

Last change on this file since 11823 was 11637, checked in by vyang, 7 years ago

Asteroiden werden generiert und bewegen sich, HUD muss noch angepasst werden, Punkte und Health und Leben anzeigen. Raumschiff kann noch nicht schiessen, evtl auch Schutzfunktion → nachdem ein Leben verloren wurde 2s Immunitaet?

File size: 1.3 KB
RevLine 
[11617]1<Template name = stone1>
2  <Asteroids2DStone
3    collisionType = dynamic
[11637]4    linearDamping = 0
5    angularDamping = 0
[11617]6    scale= 10
7    enablecollisiondamage = true
8
9    health            = 10
10    maxhealth         = 10
11    initialhealth     = 10
12  >
13    <attached>
14      <Model mass= 4000 mesh="ast1.mesh" />
15    </attached>
16    <collisionShapes>
17      <SphereCollisionShape radius="10" />
18    </collisionShapes>
19  </Asteroids2DStone>
20</Template>
21
22<Template name = stone2>
23  <Asteroids2DStone
24    collisionType = dynamic
[11637]25    linearDamping = 0
26    angularDamping = 0
[11617]27    scale= 20
28    enablecollisiondamage = true
29
30    health            = 10
31    maxhealth         = 10
32    initialhealth     = 10
33  >
34    <attached>
[11637]35      <Model mass= 8000 mesh="ast1.mesh" />
[11617]36    </attached>
37    <collisionShapes>
38      <SphereCollisionShape radius="20" />
39    </collisionShapes>
40  </Asteroids2DStone>
41</Template>
42
43<Template name = stone3>
44  <Asteroids2DStone
45    collisionType = dynamic
[11637]46    linearDamping = 0
47    angularDamping = 0
[11617]48    scale= 30
49    enablecollisiondamage = true
50
51    health            = 10
52    maxhealth         = 10
53    initialhealth     = 10
54  >
55    <attached>
[11637]56      <Model mass= 16000 mesh="ast1.mesh" />
[11617]57    </attached>
58    <collisionShapes>
59      <SphereCollisionShape radius="30" />
60    </collisionShapes>
61  </Asteroids2DStone>
62</Template>
Note: See TracBrowser for help on using the repository browser.