Friday, March 28, 2014


Welcome to GustavoBox
IT Support.

I'm happy to read any comments or question.
Some friends call me Gus, And I love speak spanish.

Task's on what I have participated on. 
Modify existing software to correct errors, to adapt it to new hardware.
  • Analyze information to determine, recommend, and plan installation of a new system or modification of an existing system.
  • Development environment software: C++, Visual Basic, Dbase.
  • Create and modify existing website based: HTML, javaScript, Php with administration of MySQL.
  • Operating system software: Microsoft Windows.
Contactame. :)


Hi recently sent to iTunes store my app game.
When I was a child I loved to play space games, So I then gave myself time to create this project, Hope you guys like it.

Arcade Blackbird
A look at the arcade classic game, like Galaga. The game difficult and the bonus stages are absolutely rational.

Instructions:
  • Click and hold over aircraft.
  • Avoid all enemy spaces ship or you die.
  • Collect Power-ups to get bombs.
  • Destroy any enemy to collect extra life.
Rated 12+ Cartoon or Fantasy Game


I like defiant games too.

Free Arcade Philip Jumper
he Hardest but not impossible game. Try Attempting to jump cactus and spiders without coming into contact with them. Only thing that will protect you from the cactus and the spider is a pair of red shoe's and when colliding with cactus or spider the shoe's were off and last about two seconds more.
Instructions:
  • Click right or left to bring to Philip Jumper.
  • Avoid any contact with cactus and spiders.
  • Collect Power-ups of red shoe's and will last 2 seconds after contact with cactus or spider.
  • Take the big star to win the game.
*Soon the next stage will be developed with more power ups and new sets of enemies.
Rated 4+ Cartoon Game


4 comments:

  1. Gus,
    Could you share a little about your collision algorithm how you know when one view collides with another view?

    ReplyDelete
    Replies
    1. Todd
      The code I submit, the line 2 is #include < math.h >
      Blog don't like this line, purposes protection I think so.

      Delete
  2. /*
    Hi Todd

    basically the distance formula.
    you need to keep in mind that Square view (shape's) and Rectangle view is different algorithm.
    Why?. because some time when a rectangle shape rotate, you need a polygon algorithm. maybe in the future explain with a video on youtube.
    Ok
    you need detect collide of two "square" views
    copy and paste this code, and don't forget create two circles shapes "Images/square1.png 100 pixel" and "Images/square2.png 200 pixel", or same or different size.
    */

    #include "DragonFireSDK.h"
    #include
    #define DISAPPEAR -200

    //Variables
    int shape1Handle;
    int shape2Handle;
    //Default coordinates "real position"
    int posXShape1=0,posYShape1=0;
    int posXShape2=0,posYShape2=0;
    //Virtual coordinates center of shape, "real position + half of shape"
    int RadioShape1=0;
    int RadioShape2=0;
    //Variables for test
    bool collide=false;
    int resetTime=0;
    int rotate;

    double getDistance2(int x1,int y1, int x2,int y2);
    void AppMain()
    {
    //load images
    int shape1=ImageAdd("Images/square1.png");
    int shape2=ImageAdd("Images/square2.png");
    //Handles view
    shape1Handle= ViewAdd(shape1, DISAPPEAR, DISAPPEAR );//width=100 pixels
    shape2Handle= ViewAdd(shape2, DISAPPEAR, DISAPPEAR );//width=200 pixels
    //get half becase need work like radio of shape
    RadioShape1 =static_cast(ImageGetWidth(shape1)/2);
    RadioShape2 =static_cast(ImageGetWidth(shape2)/2);
    //Reset position
    posXShape1=250,posYShape1=0;//Top
    posXShape2=200,posYShape2=400;//Bottom
    }

    //===============================================
    void OnTimer()
    {
    int i;
    if(!collide){//Runnig shape
    posYShape1++;
    posYShape2--;
    ViewSetxy(shape1Handle,posXShape1,posYShape1);
    ViewSetxy(shape2Handle,posXShape2,posYShape2);
    //Check x,y center of two shapes
    if(getDistance2(posXShape1+RadioShape1,posYShape1+RadioShape1,
    posXShape2+RadioShape2,posYShape2+RadioShape2) <=RadioShape1+RadioShape2){
    //Here Collide
    collide=true;
    resetTime=100;
    }
    }else{//Collide
    resetTime--;
    rotate+=20;
    if(resetTime<=0){//wait a litte time
    posYShape1=0;
    posYShape2=400;
    collide=false;
    rotate=0;
    }
    ViewSetRotate(shape1Handle,rotate);//effect not necesary!
    ViewSetRotate(shape2Handle,rotate);
    }
    }

    //===============================================
    void AppExit()
    {

    }
    double getDistance2(int x1,int y1, int x2,int y2){
    long double a,b;
    a=x2 - x1;
    b=y2 - y1;
    return sqrt((a*a)+(b*b));
    }
    /*
    I hope this help you.
    any question let me know.
    thnks.
    */

    ReplyDelete