Changeset 24

Show
Ignore:
Timestamp:
12/11/07 11:10:38 (1 year ago)
Author:
charlie137
Message:

Minor changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/guisterax/TODO

    r17 r24  
    11 
    2  
    3 - Design : 
    4     - add doc 
    5  
     2- add documentation  
     3- Make collisions working at the universe border 
    64- Score 
    7 - Best score 
    8  
     5- beeing able to kill bouncing balls 
    96 
    107- new Products : 
     
    2118- Music ! 
    2219 
    23 - new Elements : 
    24      - Bouncing ball 
    2520 
  • trunk/guisterax/src/bounce.d

    r22 r24  
    9191        e.repeal(pos, strenght(), false); 
    9292        float inside = radius + e.radius - (e.pos - pos).norm(); 
    93         radius_force -= inside * 0.1
     93        radius_force -= inside * 0.5
    9494    } 
    9595}; 
  • trunk/guisterax/src/energy.d

    r10 r24  
    3131import fire; 
    3232import timer; 
     33import ship; 
    3334 
    3435import utils; 
     
    6566     
    6667    override void collide(Element e) { 
    67         kill(); 
     68        if (cast(Fire)e) { 
     69            kill(); 
     70        } 
     71        else if (Ship s = cast(Ship)e) { 
     72            kill(); 
     73            s.hit(-0.1); 
     74        } 
    6875    } 
    6976}; 
  • trunk/guisterax/src/gold.d

    r10 r24  
    7272     
    7373    override void collide(Element e) { 
    74         kill(); 
    7574        if (Ship s = cast(Ship)e) { 
     75            kill(); 
    7676            m_get_sound.play(); 
    7777            s.gold++; 
    7878        } 
     79        else if(cast(Fire) e) { 
     80            kill(); 
     81        } 
    7982    } 
    8083}; 
  • trunk/guisterax/src/ship.d

    r22 r24  
    106106            repeal(e.pos, e.mass); 
    107107        } 
    108         // TODO: put this into Energy class 
    109         if (cast(Energy)e) { 
    110             hit(-0.1); 
    111         } 
    112108    } 
    113109