Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 11, 2013, 4:01:44 PM (11 years ago)
Author:
zifloria
Message:

enemies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/invaders/src/modules/invader/InvaderShip.cc

    r9744 r9777  
    5252        isFireing = false;
    5353        damping = 10;
    54 
    5554    }
    5655
     
    7574            ControllableEntity::fire(0);
    7675
     76        if (getPosition().x > 30000)
     77        {
     78            //level++
     79            setPosition(getPosition() - Vector3(30000, 0, 0));
     80        }
     81
     82        // if ((int(getPosition().x) % 1000) < 5)
     83        // {
     84        //     for (ObjectList<Invader>::iterator it = ObjectList<Invader>::begin(); it != ObjectList<Invader>::end(); ++it)
     85        //         it->spawnEnemy();
     86        // }
    7787
    7888        // camera->setOrientation(Vector3::UNIT_X, Degree(0));
     
    8191        SUPER(InvaderShip, tick, dt);
    8292    }
     93
     94
    8395
    8496    void InvaderShip::moveFrontBack(const Vector2& value)
Note: See TracChangeset for help on using the changeset viewer.