Small Basic Gorillas
- 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.- BearbeitetRushworksBeantworterDonnerstag, 25. Juni 2009 05:38
Alle Antworten
- 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. - 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. 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)
- 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. Found a new bug, if you drill through the earth with bananas it crashes hehe
- 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 - Rushworks,
Could you get this updated for v0.5? I'd like to publish this as our sample of the week.
Thanks. Gorilla v2.0
http://smallbasic.com/smallbasic.com/program/?NLQ667-2Sound 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.
- Gorillas is Sample of this week. Congratulations Rushworks.
http://blogs.msdn.com/smallbasic/archive/2009/07/01/sample-of-the-week-gorillas.aspx- BearbeitetVijaye RajiMSFT, BesitzerMittwoch, 1. Juli 2009 16:03
- I remember the game also, but it's been so long I forgot the keys for throwing the banana. Is there instructions somewhere?
Glenn

