Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 9, 2019, 3:08:21 PM (6 years ago)
Author:
kofrey
Message:

added collision damamge

Location:
code/branches/Boxhead_FS19/src/modules/hover
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Boxhead_FS19/src/modules/hover/Hover.cc

    r12354 r12358  
    3636#include "HoverOrigin.h"
    3737#include "HoverWall.h"
    38 
    39 #include "MazeGenerator.h"
     38// #include "HoverFlag.h"
     39 #include "MazeGenerator.h"
    4040#include "core/CoreIncludes.h"
    41    
     41#include "core/input/KeyBinderManager.h"   
    4242
    4343
     
    4646    RegisterUnloadableClass(Hover);
    4747
     48
     49
     50
     51
    4852    Hover::Hover(Context* context) : Gametype(context)
    4953    {
     54       
     55
     56        // HoverKeyBinderManager::getInstance().setConfigValues();
     57
     58
     59        // KeyBinderManager::getInstance().unbind("YNeg");
     60        // KeyBinderManager::getInstance().unbind("YPos");
     61
    5062        RegisterObject(Hover);
    5163
     
    98110            // for ( int i = 0; i < 5; i++ )
    99111            // {
    100             //     HoverFlag* zombieship = new SpaceShip(origin_->getContext());
     112            //     HoverFlag* flag = new HoverFlag(origin_->getContext());
    101113            //     flag->init(rand()%numCells, rand()%numCells, cellSize);
    102114            //     flags_.push_back(flag);
  • code/branches/Boxhead_FS19/src/modules/hover/HoverShip.cc

    r11495 r12358  
    101101        }
    102102
     103        if(otherObject->isA(Class(SpaceShip)))
     104        {
     105            removeHealth(0.1);
     106        }
     107
    103108        return false;
    104109    }
Note: See TracChangeset for help on using the changeset viewer.