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
Line 
1<Template name = stone1>
2  <Asteroids2DStone
3    collisionType = dynamic
4    linearDamping = 0
5    angularDamping = 0
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
25    linearDamping = 0
26    angularDamping = 0
27    scale= 20
28    enablecollisiondamage = true
29
30    health            = 10
31    maxhealth         = 10
32    initialhealth     = 10
33  >
34    <attached>
35      <Model mass= 8000 mesh="ast1.mesh" />
36    </attached>
37    <collisionShapes>
38      <SphereCollisionShape radius="20" />
39    </collisionShapes>
40  </Asteroids2DStone>
41</Template>
42
43<Template name = stone3>
44  <Asteroids2DStone
45    collisionType = dynamic
46    linearDamping = 0
47    angularDamping = 0
48    scale= 30
49    enablecollisiondamage = true
50
51    health            = 10
52    maxhealth         = 10
53    initialhealth     = 10
54  >
55    <attached>
56      <Model mass= 16000 mesh="ast1.mesh" />
57    </attached>
58    <collisionShapes>
59      <SphereCollisionShape radius="30" />
60    </collisionShapes>
61  </Asteroids2DStone>
62</Template>
Note: See TracBrowser for help on using the repository browser.