Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11617 was 11617, checked in by vyang, 6 years ago

spawnEnemy und Templates für die 3 Grössen der Asteroiden geschrieben.

File size: 1.3 KB
Line 
1<Template name = stone1>
2  <Asteroids2DStone
3    collisionType = dynamic
4    linearDamping = 0.8
5    angularDamping = 1
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.8
26    angularDamping = 1
27    scale= 20
28    enablecollisiondamage = true
29
30    health            = 10
31    maxhealth         = 10
32    initialhealth     = 10
33  >
34    <attached>
35      <Model mass= 8000 mesh="ast2.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.8
47    angularDamping = 1
48    scale= 30
49    enablecollisiondamage = true
50
51    health            = 10
52    maxhealth         = 10
53    initialhealth     = 10
54  >
55    <attached>
56      <Model mass= 16000 mesh="ast3.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.