Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Banned

    Badge

    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
         User Info     Contact     Gamer ID
    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
    Gamer IDs

    Gamertag: CandyCrusher PSN ID: CandyCrusher

    Contact info:

    Youtube Channel: http://www.youtube.com/

    Default Scratchy Block (My Flappy Bird Remake)

    Coded By: Me (Kameron)

    Pictures

    http://prntscr.com/2v7lwy
    http://prntscr.com/2v7m70

    @@@@@----- Video [email protected]@@@@



    Code

    Code:
    //Scratchy Block 
    //Coded  By: Kameron
    
    $pWidth = 36
    $pHeight = 24
    $pX = 50
    $pY = getScreenHeight() / 2 - $pHeight / 2
    $pVelocity = 0
    
    $blue = :ffffff
    
    $ground = new Image('ground.png')
    $blueblock1 = new Image('blueblock1.png')
    $blueblock2 = new Image('blueblock2.png')
    $blueblock3 = new Image('blueblock3.png')
    $character = new Image('character.png')
    
    $groundX = 0
    
    $obstacles = []
    $obstacleWidth = 32
    $obstacleGap = 100
    $score = 0
    $highScore = 0
    $rate = 75
    $frameCount = $rate
    
    $c = getControls()
    $running = false
    $started = false
    
    setFont('courier', 18, 'bold')
    onEachFrame() do
        fill($blue)
        
        if $started == false
            setColor(:000)
            tick = new Time().milliseconds()
            if tick > 500
                tick = 1000 - tick
            end
            setAlpha(0.75 + tick / 2000)
            fillText('Press To Start.', getScreenWidth() / 2, getScreenHeight() / 2, true)
             fillText('Made By: Kameron', getScreenWidth() / 2, getScreenHeight() / 3, true)
            setAlpha(1)
        end
        
        if $started == false
            setColor(:000)
            tick = new Time().milliseconds()
            if tick > 500
                tick = 1000 - tick
            end
            setAlpha(3.00 + tick / 2000)
            fillText('@@--Scratchy [email protected]@', getScreenWidth() / 2, getScreenHeight() / 4, true)
            setAlpha(5)
        end
        
        
        if $frameCount == $rate
            $frameCount = 0
            newObstacle = {:x : getScreenWidth(), :y : rand(50, getScreenHeight() - $obstacleGap - 80), :passed : false}
            $obstacles.add(newObstacle)
        end
        
        if ($c.isLeftClick() || $c.isKeyPressed(:space)) && $pY > 0
            if $started == false
                $started = true
                $running = true
            end
            $pVelocity = 5
            if ($started == true && $running == false)
                $pVelocity = 0
            end
        end
        
        if $running == true
            $pVelocity = $pVelocity - 0.25
            $frameCount = $frameCount + 1
            $pY = $pY - $pVelocity
            $groundX = $groundX - 2
        elseif $started == true
            if $pY < getScreenHeight() - 30 - $pHeight
                $pVelocity = $pVelocity - 0.3
                $pY = $pY - $pVelocity
                if $pY > getScreenHeight() - 30 - $pHeight
                    $pY = getScreenHeight() - 30 - $pHeight
                end
            else
                $pY = getScreenHeight() - 30 - $pHeight
            end
        end
        
        setColor(:fff)
        $obstacles.each() do |obstacle|
            drawImage($blueblock1, obstacle[:x], obstacle[:y] - 32)
            drawImage($blueblock3, obstacle[:x], obstacle[:y] + $obstacleGap)
            drawImage($blueblock2, obstacle[:x], 0, 32, obstacle[:y] - 32)
            drawImage($blueblock2, obstacle[:x], obstacle[:y] + $obstacleGap + 32, 32, obstacle[:y] + $obstacleGap + 32)
    //      fillRect(obstacle[:x], 0, $obstacleWidth, obstacle[:y])
    //      fillRect(obstacle[:x], obstacle[:y] + $obstacleGap, $obstacleWidth, getScreenHeight() - obstacle[:y] - $obstacleGap - 30)
            if $running == true
                obstacle[:x] = obstacle[:x] - 2
                if obstacle[:x] < $pX && obstacle[:passed] == false
                    $score = $score + 1
                    obstacle[:passed] = true
                    if $score == 100
                    elseif ($score - 1 == $highscore && $highscore > 0)
                    end
                end
                if obstacle[:x] < -200
                    $obstacles.delete(obstacle)
                end
                if isRectOverlap($pX, $pY, $pWidth, $pHeight, obstacle[:x], -100, $obstacleWidth, obstacle[:y] + 100) || isRectOverlap($pX, $pY, $pWidth, $pHeight, obstacle[:x], obstacle[:y] + $obstacleGap, $obstacleWidth, getScreenHeight() - obstacle[:y] - $obstacleGap - 30)
                    $running = false
                end
            end
        end
        
        setColor(:fff)
        drawImage($ground, $groundX, getScreenHeight() - 30)
        drawImage($ground, $groundX + 312, getScreenHeight() - 30)
        drawImage($ground, $groundX + 624, getScreenHeight() - 30)
        if $groundX == -312
            $groundX = 0
        end
        
        if $pY >= getScreenHeight() - 30 - $pHeight
            $pY = getScreenHeight() - 30 - $pHeight
            if $running == true
                $running = false
            end
        end
        
         setColor(:fff)
        tick = (new Time().milliseconds() / 125).floor()
        if tick > 3
            tick = tick - 4
        end
        drawRotatedImage($character, -$pVelocity / 8, 0 + $pWidth * tick, 0, $pWidth, $pHeight, $pX, $pY.floor())
        
           
        setColor(:000)
        fillText('Score: ' + $score, 10, 10)
        if $score > $highscore
            score = $score
        else
            score = $highscore
        end
        fillText('Your Highscore: ' + score, getScreenWidth() - 10, 10, :right, :top)
        
        if $running == false && $started == true
             setColor(:000)
             fillText('Game Over.', getScreenWidth() / 2, getScreenHeight() / 2 - 15, true)
             fillText('Your Final Score Was ' + score, getScreenWidth() / 2, getScreenHeight() / 2 + 15, true)
             if $c.isLeftClick() || $c.isKeyPressed(:space)
                 if $score > $highscore
                    $highscore = $score
                end
                 $score = 0
                 $obstacles = []
                 $frameCount = 0
                 $started = false
                 $pY = getScreenHeight() / 2 - $pHeight / 2
             end
        end
    end

    -3 Not allowed! Not allowed!

  2. #2
    Elite Distortion's Avatar
    Join Date
    Mar 2012
    Location
    A house
    Posts
    2,270
    Points
    2,892
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Location
    A house
    Posts
    2,270
    Points
    2,892
    Gamer IDs

    PSN ID: josechibi123 Steam ID: josechibi1

    Default

    You joking right

    Sent from my Nexus 5 using Tapatalk

    1 Not allowed! Not allowed!

    "War is war, and war never changes."
    http://i.imgur.com/wbVufuC.jpg from xLove

  3. #3
    Aesthetic JesusLover666's Avatar
    Join Date
    Dec 2009
    Location
    /bin/laden
    Posts
    1,122
    Points
    2,368
         User Info     Contact     Gamer ID
    Join Date
    Dec 2009
    Location
    /bin/laden
    Posts
    1,122
    Points
    2,368

    Default

    http://www.playmycode.com/build/edit/6298

    I google searched one line of code and found where you stole it from. All you did was change the images.

    You never changed.

    7 Not allowed! Not allowed!

  4. #4
    Bad Company
    RED 58's Avatar

    Badge

    Join Date
    Jan 2012
    Location
    Goober's Coder CP
    Posts
    6,918
    Points
    9,658
         User Info     Contact     Gamer ID
    Join Date
    Jan 2012
    Location
    Goober's Coder CP
    Posts
    6,918
    Points
    9,658

    Default

    Well at least it doesn't rip off anything from Nintendo....

    0 Not allowed! Not allowed!



    Quote Originally Posted by Iced View Post
    Red 58 = Swoot (Reincarnated)
    Quote Originally Posted by GOOBER View Post
    Terr0r you need a Gecko. Lets go to the Pet store and buy one
    Quote Originally Posted by ABlackGuy View Post
    He may not have a soul but he still has a brain. Unlike Russ who has neither.

  5. #5
    Aesthetic JesusLover666's Avatar
    Join Date
    Dec 2009
    Location
    /bin/laden
    Posts
    1,122
    Points
    2,368
         User Info     Contact     Gamer ID
    Join Date
    Dec 2009
    Location
    /bin/laden
    Posts
    1,122
    Points
    2,368

    Default

    Quote Originally Posted by RED 58 View Post
    Well at least it doesn't rip off anything from Nintendo....
    Nope, no Nintendo rips. Just everything except the sprites.

    0 Not allowed! Not allowed!

  6. #6
    ABlackGuy's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Yes
    Posts
    4,424
    Points
    5,457
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Yes
    Posts
    4,424
    Points
    5,457
    Gamer IDs

    PSN ID: X_-ABlackGuy-_X

    Default

    I would be very cautious. This contains all sorts of malware.

    2 Not allowed! Not allowed!


  7. #7
    Bad Company
    RED 58's Avatar

    Badge

    Join Date
    Jan 2012
    Location
    Goober's Coder CP
    Posts
    6,918
    Points
    9,658
         User Info     Contact     Gamer ID
    Join Date
    Jan 2012
    Location
    Goober's Coder CP
    Posts
    6,918
    Points
    9,658

    Default

    Quote Originally Posted by JesusLover666 View Post
    Nope, no Nintendo rips. Just everything except the sprites.
    Ironically it seems he stole the entire program (I presume)

    0 Not allowed! Not allowed!



    Quote Originally Posted by Iced View Post
    Red 58 = Swoot (Reincarnated)
    Quote Originally Posted by GOOBER View Post
    Terr0r you need a Gecko. Lets go to the Pet store and buy one
    Quote Originally Posted by ABlackGuy View Post
    He may not have a soul but he still has a brain. Unlike Russ who has neither.

  8. #8
    Diehard blu3man's Avatar
    Join Date
    Aug 2011
    Location
    Nameless Land
    Posts
    975
    Points
    1,026
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Nameless Land
    Posts
    975
    Points
    1,026

    Default

    wow your so l33t twist

    ./endofsarcasm

    0 Not allowed! Not allowed!

  9. #9
    Desu Development
    Pomf pomf :3
    Fuck Sky's Avatar
    Join Date
    Sep 2013
    Location
    WOW ANIME MAN WOW
    Posts
    1,137
    Points
    1,687
         User Info     Contact     Gamer ID
    Join Date
    Sep 2013
    Location
    WOW ANIME MAN WOW
    Posts
    1,137
    Points
    1,687
    Gamer IDs

    Gamertag: Hexpresso PSN ID: WideDongWeary Steam ID: twitchhexpresso

    Contact info:

    Youtube Channel: http://www.youtube.com/ Kik Username: Wownicehack

    Default

    Fucking retard.

    0 Not allowed! Not allowed!
    geadszf1231qewrg

  10. #10
    A Real Nigga
    Dr. Sniff Smellington
    smeller's Avatar

    Badge

    Join Date
    Sep 2011
    Location
    gobble gobble gobble gobble gobble
    Posts
    2,446
    Points
    2,096
         User Info     Contact     Gamer ID
    Join Date
    Sep 2011
    Location
    gobble gobble gobble gobble gobble
    Posts
    2,446
    Points
    2,096
    Gamer IDs

    PSN ID: BUTTLlCKER

    Default

    Wow, you would think if he was going to steal something he would steal something less shitty. Nope.

    0 Not allowed! Not allowed!
    smeller


Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 08:11 PM.
Powered by vBulletin®
Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.