[Orxonox-commit 6096] r10754 - code/branches/campaignHS15/data/levels
bhatiab at orxonox.net
bhatiab at orxonox.net
Mon Nov 2 15:29:36 CET 2015
Author: bhatiab
Date: 2015-11-02 15:29:36 +0100 (Mon, 02 Nov 2015)
New Revision: 10754
Modified:
code/branches/campaignHS15/data/levels/Campaign1.oxw
Log:
Changed the number of enemies per waves, need to test it, if it works properly
Modified: code/branches/campaignHS15/data/levels/Campaign1.oxw
===================================================================
--- code/branches/campaignHS15/data/levels/Campaign1.oxw 2015-11-02 14:24:09 UTC (rev 10753)
+++ code/branches/campaignHS15/data/levels/Campaign1.oxw 2015-11-02 14:29:36 UTC (rev 10754)
@@ -684,11 +684,15 @@
do
?>
<?lua
- for i = 1, enemies, 1
+ for j = enemies, enemies+(3*waves), 3
do
- x = math.cos(math.pi/8*(i+1))*1500
- y = math.sin(math.pi/8*(i+1))*1500
?>
+ <?lua
+ for i = 1, j, 1
+ do
+ x = math.cos(math.pi/(8+4*(k-1))*(i+1))*1500
+ y = math.sin(math.pi/(8+4*(k-1))*(i+1))*1500
+ ?>
<SpaceShip visible=false active=false name="attackers<?lua print(k)?>" radarname="Attacker" position="<?lua print(x)?>,<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>" lookat="0,0,0" team=1>
<templates>
<Template link="spaceshippirate" />
@@ -719,6 +723,7 @@
</SpaceShip>
<?lua end ?>
<?lua end ?>
+ <?lua end ?>
<!-- Transporter, starting Point is near A, end Point near B, the circle parameters for the waypoints are: Center = (0, -887, 0), r = 2613 -->
More information about the Orxonox-commit
mailing list