![]() |
QBASIC Gorillas on N900 (Python)
I was looking for the .bas file for Gorillas to run in DOSBox on my N900, I stumbled upon this;
http://inventwithpython.com/blog/201...f-gorilla-bas/ I don't know Python too well, so I am hoping someone here could get this to run on the N900. For those of you who don't know/remember Gorillas it was the Angry Birds of the early '90s! And it is still just as much fun! I am REALLY hoping someone could get this up and running on the N900!:D |
Re: QBASIC Gorillas on N900 (Python)
|
Re: QBASIC Gorillas on N900 (Python)
I might see if I can get a chance to play with this. It might give me a bit more pygame experience to better deal with Omnom
|
Re: QBASIC Gorillas on N900 (Python)
Quote:
|
Re: QBASIC Gorillas on N900 (Python)
lol just ran it on my n900 - loads fine with no alterations - few issues with is recognising the n900 enter key, but that should be easy to fix, and chaning the screen size is easy, if i get time tonight i'll try and upload a basic n900 version port.
|
Re: QBASIC Gorillas on N900 (Python)
I must be missing some py things...
|
Re: QBASIC Gorillas on N900 (Python)
all of pygame maybe?
import pygame, sys, time, random, math from pygame.locals import * |
Re: QBASIC Gorillas on N900 (Python)
Somethings that should probably be done before going to extras.
Of course a pure touch interface would be cool but probably not worth it for now. |
Re: QBASIC Gorillas on N900 (Python)
LOL, good old times
With that game I started my first programming experience ;) Why not run Win95 with QBASIC on the N900? THAT would be nostalgic... :) |
Re: QBASIC Gorillas on N900 (Python)
Why am I missing those dependencies? I can't find what package to install... anyone?
|
Re: QBASIC Gorillas on N900 (Python)
BTW last year there was a Gorillas 2 (for MS-Windows PCs) which has new types of bananas and online play.
next you can try to find a DONKEY.BAS for n900 ;) |
Re: QBASIC Gorillas on N900 (Python)
Try installing on of the Python based programs (PyGTKEditor, gPodder); that should fix some missing Python dependies on your N900, or do an apt-get install pygame :).
|
Re: QBASIC Gorillas on N900 (Python)
I believe the package is python-pygame that you are looking for. A good way to check is
Code:
apt-cache search pygame |
Re: QBASIC Gorillas on N900 (Python)
Quote:
|
Re: QBASIC Gorillas on N900 (Python)
Code:
./gorilla.py: line 19: Hello, and welcome to the source code of Gorillas.py. This program is meant to be very well documented so that a |
Re: QBASIC Gorillas on N900 (Python)
I just navigate to the location of the gorilla.py file on my Nokia in x-term then type python gorilla.py and it loads fine. Still have the key assignment problems (same as Noobmonkey Post #5, ie. can't enter name of players) to test it but it loads :). Might mess with it a bit later.
NB: Got the file from an earlier post (Post #1) in this thread on a Windows machine and saved the web page to the N900. Stefan |
Re: QBASIC Gorillas on N900 (Python)
Quote:
|
Re: QBASIC Gorillas on N900 (Python)
Quote:
|
Re: QBASIC Gorillas on N900 (Python)
Messed around with this a bit more now and can get into the game, but still having problems with user input (biggest problem is with entering numbers, I got the text input to work). I get all the way to the game screen, but only manage to blow up the monkey that is supposed to be throwing the banana. Anybody else managed to run the complete game?
|
Re: QBASIC Gorillas on N900 (Python)
5 Attachment(s)
Ok, managed to get the game fully functional now. It is running in full screen mode with full hardware acceleration. Had to do some hacking on the user input side to get it to work, but was minor and probably took this long, because I am not experienced in python. :D
Added my edited version of the file, made some small changes in main() and the user info screen subroutine. Sorry, have not really properly documented all the changes yet. Added some screenshots for all you out there enjoying retro-land :). |
Re: QBASIC Gorillas on N900 (Python)
1 Attachment(s)
I made an icon and a desktop file:
Make gorilla.desktop in /usr/share/applications/hildon and insert this; Code:
[Desktop Entry] |
Re: QBASIC Gorillas on N900 (Python)
For the love of god someone package this!
|
Re: QBASIC Gorillas on N900 (Python)
Just a few observations/bug reports:
-A screen tap at "Press any key to continue" would be pretty nifty, as well as using a screen tap as the return key. -Of course the N900 keyboard isn't mapped for this, and for some it is quite tricky (and annoying) having to hold down the alt key while pressing a number. Same goes for shift. -If the buildings are moved closer to the bottom of the screen we will have more image of the sky and the bananas trajectory. It would also look better and be closer to the original. -Some things aren't centered, not really a big deal. |
Re: QBASIC Gorillas on N900 (Python)
Quote:
The screen tap is easy to implement, also moving the bottom of the buildings down is not a big deal, will do some more code hacking :). Appreciate help on packaging, I am absolutely clueless! |
Re: QBASIC Gorillas on N900 (Python)
Haha the game is so fun
to play it put the gorilla.py in your mydocs folder then in root apt-get install python-pygame after that /home/user/MyDocs/python gorilla.py and we have lift off ! :] |
Re: QBASIC Gorillas on N900 (Python)
Quote:
|
Re: QBASIC Gorillas on N900 (Python)
Quote:
|
Re: QBASIC Gorillas on N900 (Python)
I don't want to bother anyone, but why not KBasic?(Basic with Qt export function) you can copy the code there,export it,and compile it to debian using MADDE.(Full version of this program is available for free under linux platform.)
|
Re: QBASIC Gorillas on N900 (Python)
Sorry I've been too busy lately. Depending on my schedule maybe tonight or tomorrow I can try packaging it?
|
Re: QBASIC Gorillas on N900 (Python)
Quote:
|
Re: QBASIC Gorillas on N900 (Python)
1 Attachment(s)
Done some more coding and lowered the bottom of the buildings and now you can just tap the first screen to get going.
This has been quite fun sofar and I appreciate all the help and encouragement. Will do some more coding tonight, but enjoy the latest version attached below. NB: The zip also includes the desktop file and the icon from xxxxts post above. Make sure you edit the desktop file to point to the correct location of the saved gorilla.py file. |
Re: QBASIC Gorillas on N900 (Python)
Quote:
|
Re: QBASIC Gorillas on N900 (Python)
Quote:
Just a noob who likes to tinker with code and Python sofar is my favourite language for ease of use and being on my N900 :D So go ahead and use whatever is best for you, I am not fussed about it in any way. |
Re: QBASIC Gorillas on N900 (Python)
wow this games brings back so many childhood memories
many thanks |
Re: QBASIC Gorillas on N900 (Python)
Anyone know how to play against the phone on this? it only seems to go straight into 2 player mode.
Koodos to all that brought this back to life. |
Re: QBASIC Gorillas on N900 (Python)
Quote:
|
Re: QBASIC Gorillas on N900 (Python)
Quote:
|
Re: QBASIC Gorillas on N900 (Python)
Quote:
https://github.com/epage/gorilla If you don't feel like learning git, a simple way to coordinate is download src/gorilla.py, make changes, and email me the changed file with an approximate date/time you downloaded it. I can then more easily sync the changes back in and make a package. |
Re: QBASIC Gorillas on N900 (Python)
It is now in extras-devel for Maemo 4.1 and Maemo 5. I have only tested it on Maemo 5 so far.
Thoughts on directions to go with this
|
Re: QBASIC Gorillas on N900 (Python)
great work!
some issues: its too fast, I only can see the detonation in the air but not the flight. this might be due overclocking to 850? There is no sound. It seems that the values have to be bigger than in the original game. |
All times are GMT. The time now is 10:54. |
vBulletin® Version 3.8.8