[12064] | 1 | =============================================================================== |
---|
| 2 | Classes |
---|
| 3 | =============================================================================== |
---|
| 4 | |
---|
| 5 | TixyTaxyTorxy |
---|
| 6 | TixyTaxyTorxy: |
---|
| 7 | GameType class |
---|
| 8 | |
---|
| 9 | TixyTaxyTorxy |
---|
| 10 | TixyTaxyTorxyCenterpoint |
---|
| 11 | Centerpoint class. Store tower template |
---|
| 12 | |
---|
| 13 | Tower |
---|
| 14 | Represents a Tower |
---|
| 15 | I'm not actually sure if you have to code C++ in order to have your result. I would suggest to simply create a new spaceship template or maybe better a |
---|
| 16 | new template for a pawn. (The tower don't need to be spaceships; pawn is just fine.) |
---|
| 17 | Example for a template: /data/levels/templates/assff.oxt && /data/levels/include/weaponSettingsAssff.oxi |
---|
| 18 | @ assff.oxt: you don't need an engine (or your towers could fly away :-) and probably no Cameras. (just try what happens if you leave them out.) |
---|
| 19 | @ weaponSettingsAssff.oxi: |
---|
| 20 | <weaponslots>: location where you want to have your tower to be equiped with weapons |
---|
| 21 | <weaponsets> : if you press fire, you actually always fire a whole set of weapons. The amount of weaponsets is defined here. (I'm not 100% sure whether this explanation is right.) |
---|
| 22 | |
---|
| 23 | There are three <Weapon> tags - one for each weaponslot. Each weapon can contain several objects which you would probably |
---|
| 24 | refer to as "weapons": |
---|
| 25 | |
---|
| 26 | LightningGun: Shoots a slow, rotation, yellow "ball". |
---|
| 27 | HsW01: the default laser weapon |
---|
| 28 | SimpleRocketFire: a weak (self steering) rocket |
---|
| 29 | RocketFire: a strong rocket |
---|
| 30 | |
---|
| 31 | About your Tower's Template location - either keep it in the level or do it similarly to the Assff templates. |
---|
| 32 | (If your towers behave & look nicely, I'm quite sure others want to include them in other levels, too.) |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | =============================================================================== |
---|
| 36 | Other files |
---|
| 37 | =============================================================================== |
---|
| 38 | |
---|
| 39 | /data/levels/TixyTaxyTorxy |
---|
| 40 | TixyTaxyTorxy.oxw |
---|
| 41 | Loads the level. In <Level>, we first create a SpawnPoint. It spawns a cylinder using the 'centerpointmark' Template, which uses the 'centerpointmarkcamera' Template to create a static camera. Then, we create an instance of TixyTaxyTorxy |
---|
| 42 | TixyTaxyTorxyCenterpoint and pass the 'towertemplate' Template, so that we can later create towers using this template. We also plase the playfield.mesh in a way that maps every field on the playfield.mesh to nice coordinates: the playfield spans as a square from -8,-8 to 8,8. |
---|