maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   QBASIC Gorillas on N900 (Python) (https://talk.maemo.org/showthread.php?t=69887)

StefanL 2011-02-18 10:13

Re: QBASIC Gorillas on N900 (Python)
 
Quote:

Originally Posted by epage (Post 949427)
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
  • Touch interface (task switcher, close, setting angle and velocity)
  • A QT Intro screen to make it easier to take advantage of on-screen keyboards for devices that need it.
  • Bug tracker (for getting into extras)
  • Check if battery usage while not focused is an issue and fix it. (for getting into extras)

Ok, will add these to my list, but current focus is on getting this version up and running on the N900 without too many changes, ie. as true to the original as possible.

As far as I can see right now is that the only thing that does not work right is the end of game screen, ie. it jumps straight to the player selection screen, which is a user input queue issue and I should have that fixed soon.

Will post the latest version with fix details in a separate post.

xxxxts 2011-02-18 10:20

Re: QBASIC Gorillas on N900 (Python)
 
Quote:

Originally Posted by StefanL (Post 949587)
Ok, will add these to my list, but current focus is on getting this version up and running on the N900 without too many changes, ie. as true to the original as possible.

As far as I can see right now is that the only thing that does not work right is the end of game screen, ie. it jumps straight to the player selection screen, which is a user input queue issue and I should have that fixed soon.

Will post the latest version with fix details in a separate post.

I must concur with Stephan - I think we all want to stay as true to the original game as possible. If only SkiiFree was open source. :D

StefanL 2011-02-18 10:27

Re: QBASIC Gorillas on N900 (Python)
 
Quote:

Originally Posted by caco3 (Post 949554)
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.

Too fast:
Can you do me a favour and change the frame rate back to 30 fps in the first few lines of the gorilla.py file and report whether that makes a difference. I am guessing this will not make a difference and the timing values in the program may have to be some parametric variable based on the frequency of the N900. This may be an issue with pygame, anyway, I am happy to look into it.

Sound:
Yes, sound was definitely not included in the original python source I used. Will appreciate some help with the original sound files and will be happy to include sound effects in an update.

xxxxts 2011-02-18 10:27

Re: QBASIC Gorillas on N900 (Python)
 
Side note: If you package it make sure you add python-pygame as a dependency.

StefanL 2011-02-18 10:36

Re: QBASIC Gorillas on N900 (Python)
 
1 Attachment(s)
Attached latest version update for today. As per usual the zip contains the desktop file (don't forget to change the gorilla.py file location to match your actual location) and icon from post #21 and most of the suggestions for improvements from post #23 (ie. buildings lowered, visual elements centred, tap on first screen to move to player selection screen) and moved score display below buildings.

Enjoy :D

epage 2011-02-18 12:14

Re: QBASIC Gorillas on N900 (Python)
 
Quote:

Originally Posted by StefanL (Post 949587)
Ok, will add these to my list, but current focus is on getting this version up and running on the N900 without too many changes, ie. as true to the original as possible.

As far as I can see right now is that the only thing that does not work right is the end of game screen, ie. it jumps straight to the player selection screen, which is a user input queue issue and I should have that fixed soon.

Will post the latest version with fix details in a separate post.

Yeah, I'm mixed between keeping this to the original Gorilla.bas and making this available to a wider audience (n800, future devices without keyboard).

And if you mean the original gorilla.py, then I sure hope not. Despite the code being written to teach python, it isn't very good. It is hard to follow and figure out how to make significant changes (like my adding of the task switch button). I'll still try to hunt around without a complete rewrite ;)

Quote:

Originally Posted by StefanL (Post 949609)
Attached latest version update for today. As per usual the zip contains the desktop file (don't forget to change the gorilla.py file location to match your actual location) and icon from post #21 and most of the suggestions for improvements from post #23 (ie. buildings lowered, visual elements centred, tap on first screen to move to player selection screen) and moved score display below buildings.

Enjoy :D

Note that I've been making changes too, so I'd recommend grabbing the "src/gorilla_pygame.py" file from github (just download through your webbrowser, don't bother with git itself) to get in sync with my work. I've managed to diff your two posts and apply those changes (where I didn't already apply it) to the game and prepping a package now.

StefanL 2011-02-18 13:19

Re: QBASIC Gorillas on N900 (Python)
 
Quote:

Originally Posted by epage (Post 949682)
And if you mean the original gorilla.py, then I sure hope not. Despite the code being written to teach python, it isn't very good. It is hard to follow and figure out how to make significant changes (like my adding of the task switch button). I'll still try to hunt around without a complete rewrite ;)

My recommendation for adding additional functionality to this menu-less, button-less, interface-less version is use to CTRL-key sequences, one of which obviously should be CTRL-X for Quit, and CTRL-D for developer switch settings page that I like to add for tweeking all the hard coded settings interactively. :)

StefanL 2011-02-19 12:42

Re: QBASIC Gorillas on N900 (Python)
 
1 Attachment(s)
Latest version for today attached below.

Changes include:
1) Screen tap works same as enter key
2) Pure number input now does not require use of alt key (ie. pressing q gives 1, w gives 2, etc.), so on the main game screen no more two finger input required! Input using alphanumerics as well as numbers still works the same as usual (ie. Player names input).
3) End of game screen works now.

As far as I am concerned, mission complete! Now the game runs fully on the N900 using N900 screen and keyboard for input. :D

@epage: tried to get to the source as described by your posts, but couldn't find it, even though I now have a user log in, so I will keep posting my stuff here.

arora.rohan 2011-02-19 14:26

Re: QBASIC Gorillas on N900 (Python)
 
This is great!!

epage 2011-02-19 19:57

Re: QBASIC Gorillas on N900 (Python)
 
I'm prepping up a package for your latest version.

To get my modified version just go to the following page and click "raw", no account needed
https://github.com/epage/gorilla/blo...illa_pygame.py

I'm requesting Gorilla to be added to b.m.o. Do you have an account on bugs.maemo.org? Would you want to be listed as having rights to modify bugs?

StefanL 2011-02-20 13:16

Re: QBASIC Gorillas on N900 (Python)
 
1 Attachment(s)
Quote:

Originally Posted by epage (Post 950650)
I'm prepping up a package for your latest version.

To get my modified version just go to the following page and click "raw", no account needed
https://github.com/epage/gorilla/blo...illa_pygame.py

I'm requesting Gorilla to be added to b.m.o. Do you have an account on bugs.maemo.org? Would you want to be listed as having rights to modify bugs?

Still no joy with your link. Have attached screenshots for your info.

Not posting any updates today; sofar only added CTRL-X for exit program since the last version. Will post new version, when I have completed the CTRL-D (Developer screen) functionality for user modification of most of the fixed settings in the code. :o

epage 2011-02-24 02:46

Re: QBASIC Gorillas on N900 (Python)
 
Quote:

Originally Posted by StefanL (Post 951014)
Still no joy with your link. Have attached screenshots for your info.

Not posting any updates today; sofar only added CTRL-X for exit program since the last version. Will post new version, when I have completed the CTRL-D (Developer screen) functionality for user modification of most of the fixed settings in the code. :o

Sorry I've taken so long in getting back to you.

Wow, that is an old web browser you are using. So let's see if we can bypass even more and try this link:
https://github.com/epage/gorilla/raw...illa_pygame.py

Hmm, I had added Ctrl+Q for quit, meh.

StefanL 2011-02-25 17:19

Re: QBASIC Gorillas on N900 (Python)
 
Quote:

Originally Posted by epage (Post 954247)
Wow, that is an old web browser you are using. So let's see if we can bypass even more and try this link:
https://github.com/epage/gorilla/raw...illa_pygame.py

Cool, appreciate the effort, now I can get to the source. You are right, the problem is my web browser (MS IE 6.0 !!!), for some reason they still have not been able to roll-out an update for it here :(.

StefanL 2011-02-27 11:49

Re: QBASIC Gorillas on N900 (Python)
 
Quote:

Originally Posted by epage (Post 950650)
I'm prepping up a package for your latest version.

I'm requesting Gorilla to be added to b.m.o. Do you have an account on bugs.maemo.org? Would you want to be listed as having rights to modify bugs?

No problem with me, I guess :). Will need a lot of help on understanding how all that is meant to work, since I have never been involved in anything like this. Happy to contribute some of my time; I think the N900 rocks for user hackability :p.

epage 2011-03-01 23:00

Re: QBASIC Gorillas on N900 (Python)
 
Quote:

Originally Posted by StefanL (Post 956414)
No problem with me, I guess :). Will need a lot of help on understanding how all that is meant to work, since I have never been involved in anything like this. Happy to contribute some of my time; I think the N900 rocks for user hackability :p.

Sounds good. I don't think maemo.org has single-sign-on, so if you don't already, could you create a b.m.o account and PM me your email address you used with it? I'll then sound out the request for gorilla being added to b.m.o with us as assignees.

epage 2011-03-19 01:03

Re: QBASIC Gorillas on N900 (Python)
 
Sorry for the delay. I've finally pushed this to extras-testing for Fremantle. Sadly I can't push this to extras on Diablo yet because it requries newer pygame features. I've filed a bug on it.

http://wiki.maemo.org/Gorilla
https://bugs.maemo.org/buglist.cgi?q...rilla&content=

electristan 2011-03-21 11:27

Re: QBASIC Gorillas on N900 (Python)
 
BAM! Nostalgia hit.


All times are GMT. The time now is 15:17.

vBulletin® Version 3.8.8