none
Small Basic Gorillas

    General discussion

  • QuickBasic had Gorillas and now Small Basic does too!




    Image, Sound, Exe and Source files can be downloaded here
    http://code.msdn.microsoft.com/SmallBasicGorillas


    I tried to publish, but got this error-
      Failed to publish program to the web.
      Your program was not published to the server.  It was either empty or too large.
    • Edited by Rushworks Thursday, June 25, 2009 5:38 AM
    Sunday, May 17, 2009 1:44 AM

All replies

  • Haha that's great!  I remember this, really nice job!  Options and fades, wow.  Lotta work there.  I need an any key too.  Poor sun...

    One little bug, often when it starts it only lets you control player 2 on the right side, and he can only shoot right.  My any key was spacebar, sometimes enter, sometimes arrows.
    Sunday, May 17, 2009 8:13 AM
  • Nice game, RushWorks.  Amazing amount of work you have put in there.

    I believe you've hit the limits of Publish feature's program size.  I have just increased the max limit to accomodate your program.  Please go ahead and try again.

    Also, if you were to upload these resources to a web location, you wouldn't have to ship out a Zip file.  I've uploaded all the .bmp files to http://smallbasic.com/drop/gorilla/, but for some reason my web host doesn't support download of .wav files. 

    When I played the game, I hit the same issues that bigdaddyo hit.
    Sunday, May 17, 2009 9:23 AM
    Moderator
  • One little bug, often when it starts it only lets you control player 2 on the right side, and he can only shoot right. 
    My original gorilla.sb file did not have this bug (same code though).  After I used the published version, I noticed it too.
    I was using the original QB code to swap the thrower, 
          Thrower = Math.GetRandomNumber(2)
          J = Thrower
          J = 1 - J
          Thrower = J + 1
          TargetGorilla = 3 - J
    I've changed to this now
          Thrower = Math.GetRandomNumber(2)
          Thrower = 3 - Thrower
          TargetGorilla = 3 - Thrower


    My any key was spacebar, sometimes enter, sometimes arrows.
    I haven't had a problem with this.  I did have trouble with sounds playing at the correct time. I changed some Sound.Plays to Sound.PlayAndWait and it results in having to wait for the sound to finish before the keypress is recognized.


    I believe you've hit the limits of Publish feature's program size.  I have just increased the max limit to accomodate your program.  Please go ahead and try again.
    http://smallbasic.com/smallbasic.com/program/?NLQ667-0
    Note: You need to uncomment one line
          ' The following line could be harmful and has been automatically commented.
          '   File.GetFiles(Path, FileArray)
     
    Sunday, May 17, 2009 1:46 PM
  • Works great now.  I indicated my 'any key' thinking maybe pressing it to get past intro screens might have leaked into the game causing it behave strange, but looks like you found the problem.  I'm going to try to bring back an old game from the dead maybe this week, never before seen in basic (that I know of).

    This is a great game for kids to learn angles, and maybe optimal ballistic missile trajectories haha.
    Sunday, May 17, 2009 5:05 PM
  • Found a new bug, if you drill through the earth with bananas it crashes hehe

    Saturday, June 13, 2009 1:57 AM
  • A simple check for the banana below the ground level in the DoShot subroutine fixes it.

        If (BananaY > GroundLevel) Then
          WhatWasHit = "OutOfBounds"
          OnScreen = "False"
        EndIf

    Gorilla v1.1
    http://smallbasic.com/smallbasic.com/program/?NLQ667-1

    Saturday, June 13, 2009 3:37 AM
  • Rushworks,

    Could you get this updated for v0.5?  I'd like to publish this as our sample of the week.

    Thanks.
    Friday, June 19, 2009 3:02 AM
    Moderator
  • Gorilla v2.0
      http://smallbasic.com/smallbasic.com/program/?NLQ667-2

    Sound files can be found at
      http://code.msdn.microsoft.com/SmallBasicGorillas


    Sorry for the delay, I am having trouble with my computer and internet.

    After version 0.5 of SB came out, I had decided to redesign the code for SBGorillas.
    Some code was unnecessary, some was experimenting with the compiler, other changes were just new ideas/different approaches I thought of trying.

    While the gameplay is the same, some new features were not working correctly and were removed or commented out.  I hope to correct these but I don't expect it will be anytime soon.

     

    Thursday, June 25, 2009 3:03 AM
  • Gorillas is Sample of this week.  Congratulations Rushworks.

    http://blogs.msdn.com/smallbasic/archive/2009/07/01/sample-of-the-week-gorillas.aspx
    Wednesday, July 1, 2009 4:02 PM
    Moderator
  • I remember the game also, but it's been so long I forgot the keys for throwing the banana. Is there instructions somewhere?

    Glenn
    Thursday, July 2, 2009 12:09 AM
  • A simple check for the banana below the ground level in the DoShot subroutine fixes it.

        If (BananaY > GroundLevel) Then
          WhatWasHit = "OutOfBounds"
          OnScreen = "False"
        EndIf

    Gorilla v1.1
    http://smallbasic.com/smallbasic.com/program/?NLQ667-1


    Could you give more explanation on it? Thank you!
    Sunday, October 10, 2010 8:07 AM