Share My Creation Clumsy Bird + Source Code

Discussion in 'B4J Share Your Creations' started by ilan, Aug 31, 2015.

  1. ilan

    ilan Expert Licensed User

    hallo friends,

    after erel added a build in designer to B4J (and because i am a designer developer guy) i played a little bit with the new b4j (what i have not done before, because i hated the java builder) and this is what came out...

    have fun !

    EDIT: new version available!


    screenshot.png
     

    Attached Files:

    Last edited: Aug 31, 2015
    aidymp, jmon, Douglas Farias and 2 others like this.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Very nice Ilan! A bit too difficult...
     
    ilan likes this.
  3. ilan

    ilan Expert Licensed User

    thanx erel, could it be that the speed is different on different screen resolutions?
     
  4. sorex

    sorex Expert Licensed User

    the downforce gets too high. sometimes you click while still having 1/3 of the playfield below your and you crash.

    my "high score" is 2 I think :)
     
  5. ilan

    ilan Expert Licensed User

    on my pc it runs fine, maybe the different screen resolution make a difference?
     
  6. ilan

    ilan Expert Licensed User

    ok i tried it now with a different screen resolution and i get the same result (what i think is ok) :)
     
  7. sorex

    sorex Expert Licensed User

    yeah, it's me and my gaming skills ;)
     
    ilan likes this.
  8. giga

    giga Well-Known Member Licensed User

    Good work! I agree with Erel it is a bit too difficult. As sorex said the downforce seems too high.
     
  9. ilan

    ilan Expert Licensed User

    sorry, but i don't understand what you mean with downforce to high...

    can you check the source code and tell me what is wrong??

    btw, as you know flappy bird is not an easy game, it should be hard to play.. but i don't think i did it to difficult.. :rolleyes:

    (My Best is 4 :D)
     
    Last edited: Aug 31, 2015
  10. sorex

    sorex Expert Licensed User

    Code:
    birdfallCD = birdfallCD + 1
    change it to .7 or something (and make it a double)
     
  11. ilan

    ilan Expert Licensed User

    i know where i can make it slower o_O (i wrote the code from 0), what i meant is i would like to know if the game is only difficult or there is different behavior on different pc's.
    what i see so far is that its only a little bit difficult.
     
  12. inakigarm

    inakigarm Well-Known Member Licensed User

    Great job Ilan!!

    Speed is OK on I5 5GB win8.1 but gameplay is very difficult !!! Setting birdjumpCD to a lower setting help a lot (Score 14 with birdjumpCD =6 :D:D)

    Thanks for sharing !!
     
    ilan likes this.
  13. giga

    giga Well-Known Member Licensed User

    I also was able to make the user work harder by doing the below.
    example. " birdjumpCD = 4"

    Code:
    Sub MainForm_MouseClicked (EventData As MouseEvent)
            
    If birddead = False And gameon = True Then
    '            mp_flap.Position = 0
    '            mp_flap.Play
                birdjump = True
                birdjumpCD = 
    4 ' example it was 15 ( adjust here to whatever)
                birdfallCD = 0   
            
    End If
        
    End Sub
    this makes the user work harder with the MouseClick.
     
    ilan likes this.
  14. ilan

    ilan Expert Licensed User

    I dont think it should be so easy to play. Flappy bird is a hard game. I tried to make it similar, but thats the reason i include the source code, you can play with it and make it like you want.. :)

    Btw: This code can be very easy converted to a b4i code... ;)
     
  15. ilan

    ilan Expert Licensed User

    Be careful not to break your mouse :D
     
    inakigarm and giga like this.
  16. Beja

    Beja Expert Licensed User

    Great work.. very nice..
    Ilan, I think the problem is the relationship between the bird jump speed and the bars movement speed..
    instead of adjusting each independently, try to tie the bird vertical speed with the bars horizontal speed (relative to each other) and a global
    variable set by users for the base speed.
    Also lower the maximum height the bird can travel to half of what it is now.. a small incremental jumps are better than one giant leap.

    my two cents..

    Edit:
    IN 20 Minutes my score is just 2.
    To be honest I didn't see the code.. talking only about the executable.
     
    Last edited: Aug 31, 2015
  17. ilan

    ilan Expert Licensed User

    i have updated the project, i forgott to change the pipes y randomly after the pipe exit the screen and start again...
    i also added sound possibility BUT i dont know why, if sound is on every time the mediaplayer play a sound the game stuck for a second..

    maybe @Erel can help us with it, i would like to make more games that includes some sounds :)
     
  18. Douglas Farias

    Douglas Farias Expert Licensed User

    very nice, first time i see games on b4j xD
     
  19. Beja

    Beja Expert Licensed User

    Never mind.. I solved the problem by making the height of vertical gap between the poles higher ;)
    But still I think the jump distance of the bird in one click is too high. jumping short distances and clicking many times is much better (I think)
     
  20. ilan

    ilan Expert Licensed User

    in my opinion the game is made similar to the original game. so speed + jump height are ok. the fact that you scored 2 in 20 min playing is the reason i think everything is ok in this game.

    what i think was the reason for such a big success for "flappy bird" is that its so hard to play. because we are talking about a game that has no levels or changes any new situation in the game, you must make it hard. if it would be easy to play then after scoring 50 people will uninstall it.
    by making it very hard to play the player will continue trying and trying and trying and trying and trying...
    to score more then 2-3 points (in fact i think thats the reason you played for 20 min on a game that your high score was 2!!! :D)

    rough calculation that should be about 80 restarts... and with smart advertising you can make a lot of money from such games.

    that could be a great key for success if you want to make very simple game without any phenomenal graphics.

    FORMULA: SIMPLE + HARD = CONTINUOUSLY PLAYING ;).

    btw my high score is 7 (without changing anything in the code)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice