Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 24

Thread: Snake Minigame for Arcade

  1. #11
    Veteran Itkitt FAS's Avatar
    Join Date
    Sep 2014
    Location
    Malaysia
    Posts
    401
    STOP MAKING PC PLAYERS MAD ALREADY!

    - - - Updated - - -

    Quote Originally Posted by SashaGryg View Post
    yeah, it would be nice to see it in arcade
    NO NO NO NO NO!!!!!!!!!!!!!!!!!!!!!
    I will never give up my hope and dreams, never give up! - Itkitt Rin

    School is coming back

  2. #12
    Street Boss lkh5966's Avatar
    Join Date
    Jul 2013
    Location
    Malaysia
    Posts
    876
    Snake game nice idea

  3. #13
    Veteran KevinBlue's Avatar
    Join Date
    Dec 2014
    Location
    Australia
    Posts
    335
    Quote Originally Posted by NJK View Post
    This is a snake game I made and It would be cool if it was added to the arcade and they would give you more tickets depending on how many balls you ate.

    Here's the code scripted and tested:
    int x= 245;
    int y= 245;

    int randomx;
    int randomy;

    color below;

    int speed=0;

    void setup(){
    size(500,500);
    drawApple();
    }

    void draw(){
    fill(235,0,0);

    if (keyCode ==40){
    below = get(x, y+26);
    y = y + speed;
    }

    if (keyCode ==37){
    x = x - speed;
    below = get(x-1, y);
    }

    if (keyCode == 38){
    y = y - speed;
    below = get (x, y-1);
    }

    if (keyCode == 39){
    x = x + speed;
    below = get(x+26,y);
    }

    if(frameCount % 1000 == 0 && speed < 10) {
    speed = speed + 1;
    }

    rect(x,y,25,25);

    if (x < 0){
    textSize(40);
    fill(#F50000);
    rect(x,y,25,25);
    text("Game Over", 170, 100);
    noLoop();
    }

    if (y < 0){
    textSize(40);
    fill(#F50000);
    rect(x,y,25,25);
    text("Game Over", 170, 100);
    noLoop();
    }

    if (x > 475){
    textSize(40);
    fill(#F50000);
    rect(x,y,25,25);
    text("Game Over", 170, 100);
    noLoop();
    }

    if (y > 475){
    textSize(40);
    fill(#F50000);
    rect(x,y,25,25);
    text("Game Over", 170, 100);
    noLoop();
    }

    println(below);

    if (below == -13369495){
    println("green");
    }
    if (below == -5373){
    println("yellow");
    drawApple();
    }
    }

    void gameOver(){
    textSize(40);
    text("Game Over Fool!", 150, 100);
    rect(x, y, 25, 25);
    noLoop();
    }

    void drawApple(){
    speed = speed + 1;
    background(255);

    fill(#FFEB03);
    stroke(#33FF69);
    randomx = int(random(20,480));
    randomy = int(random(20,480));
    ellipse(randomx, randomy, 50, 50);
    }
    Well I saw my friend scripting a game like this this is the exact same one!
    My Levels Thread


  4. #14
    Street Boss NJK's Avatar
    Join Date
    Mar 2014
    Location
    Mexico
    Posts
    707
    No, I created this for my final project in Computer Applications in a program called Processing.
    Need Help?
    Shoot me a PM on Era-Go! I will gladly help you!

    Contact Me?
    Skype: santiago ornelas
    Email: [email protected]

  5. #15
    Raven Ventus Victor's Avatar
    Join Date
    Feb 2014
    Location
    Malaysia
    Posts
    2,977
    Omg, making PC Players jelly...

  6. #16
    Veteran Zaris's Avatar
    Join Date
    Jul 2013
    Location
    Under Your Bed
    Posts
    418
    I would like to see this classic game in th Arcade
    This is my face when i care ◎_◎

  7. #17
    Shooter Banshee's Avatar
    Join Date
    Aug 2013
    Location
    Seattle
    Posts
    1,298
    Ok iMask you dont gotta be so douchey.
    When you got that vip bike and helmet and you gon get ready for a ride and you remember you got reset and you say

  8. #18
    Big Cheese Captain
    Join Date
    Jun 2013
    Posts
    1,029
    Quote Originally Posted by Banshee View Post
    Ok iMask you dont gotta be so douchey.
    wat
    iEra Developer / SFX Admin

    Need help? Contact me:
    Email: [email protected]

  9. #19
    Veteran Smilez's Avatar
    Join Date
    Oct 2013
    Location
    England, London
    Posts
    256
    Reminds me of the old times when you would get all excited playing snake on your Nokia 3310 ;D
    IGN: Chains J.

  10. #20
    Una Pregunta Porque Hay Zombis En GraalOnline Era

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •