Package net.mdked.Jrachgame.world

Examples of net.mdked.Jrachgame.world.StaticObj


    minleft = 10;
    secleft = 1;

    int elknum = (int) ((map.length*4) * (Math.random()+0.2));
    for (int num = 0; num < elknum; num++) {
      StaticObj prdmt = new StaticObj();
      prdmt.x = (float) ((map.length * 32) * Math.random());
      prdmt.y = (float) ((map.length * 32) * Math.random());
      double rnd = Math.random();
      if (rnd < 0.5) prdmt.type = 0; // elka
      else prdmt.type = 1; // kamen
View Full Code Here


    }


    for (Entity chCol : World.objecz) {
      if ( chCol instanceof StaticObj) {
        StaticObj ob = (StaticObj) chCol;
        obj2r = ob.getBounds();
        if (ismouse) {
          statObj = true;
        }
        if (misile) {
          tgt = chCol;
View Full Code Here


    if (wtdX >= -64*xScale && wtdX < scrWi+64*xScale
        && wtdY >= -64*xScale && wtdY < scrHe+64*xScale) {
      if (obj instanceof StaticObj) {
        StaticObj so = (StaticObj) obj;
        switch (so.type) {
        case 0:
          tree.draw(wtdX - (32*xScale), wtdY - (64*xScale), xScale);
          break;
        case 1:
View Full Code Here

TOP

Related Classes of net.mdked.Jrachgame.world.StaticObj

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.