473,394 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Pythonesque interface.

Gaz
Hi guys. I'm doing a simple strategy game in python, hex based, with
the PIL library. I'd like to know if there is a way to check the
pointer position within a frame, so i can figure out which hex is the
pointer on, but in a pythonesque way, not using Java or Flash. Sajax is
the way to go? I dont think this is the solution, coz the frame should
be requiered to be refreshed like 30 times a second, but heck, you are
the Python savvies.

Thank you!

Apr 21 '06 #1
10 1095
Gaz schrieb:
Hi guys. I'm doing a simple strategy game in python, hex based, with
the PIL library. I'd like to know if there is a way to check the
pointer position within a frame, so i can figure out which hex is the
pointer on, but in a pythonesque way, not using Java or Flash. Sajax is
the way to go? I dont think this is the solution, coz the frame should
be requiered to be refreshed like 30 times a second, but heck, you are
the Python savvies.


www.pygame.org
Diez
Apr 21 '06 #2
www.pygame.org

Yes but he obviously wants this to be delivered to the browser. (Also
the site is broken today... )

This comes up a lot, but I don't think there's an answer to it as yet.

mt

Apr 21 '06 #3
Gaz

Michael Tobis ha escrito:
www.pygame.org

Yes but he obviously wants this to be delivered to the browser. (Also
the site is broken today... )

This comes up a lot, but I don't think there's an answer to it as yet.

mt


Yeah, i want it playable on a browser.

Apr 21 '06 #4
Gaz schrieb:
Michael Tobis ha escrito:
www.pygame.org

Yes but he obviously wants this to be delivered to the browser. (Also
the site is broken today... )

This comes up a lot, but I don't think there's an answer to it as yet.

mt


Yeah, i want it playable on a browser.


Well, the you won't be a able to deliver 30 fps - with python at least,
as there is no browser plugin for it. use flash or JAVA as applte.

Diez

Apr 21 '06 #5
Gaz
Yeah, probably i'll be ending doing the front end in Flash and the back
end in Python.

Apr 21 '06 #6
Michael Tobis>Yes but he obviously wants this to be delivered to the
browser.<

I think Jython can be used to create applets that run with the JavaVM.
Can't it be used to solve the OP problem (even without PIL)?

Bye,
bearophile

Apr 21 '06 #7
Gaz
OP?

Apr 21 '06 #8
OP = Original Poster

Apr 21 '06 #9
Gaz
:)

Right now im trying to dl Jython (SF.net server down?), if it's
language sintaxis is just like Python and allows to use numpy and PIL,
im in! (i think :) )

Apr 22 '06 #10
Gaz:
Right now im trying to dl Jython (SF.net server down?), if it's
language sintaxis is just like Python and allows to use numpy and PIL,
im in! (i think :) )


I don't think you can do that, but you can create and show images
anyway (and maybe read the pointer position too).
Sorry for the "OP", I have seen lot of people use it here, I'll avoid
such things in the future.

Bye,
bearophile

Apr 22 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Paddy McCarthy | last post by:
I was looking at http://www.python.org/moin/PerlPhrasebook section 2.1.1, and was re-aquainted with a quote attributed to Larry Wall: "... You can program in a Pythonesque subset of Perl by...
3
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability....
0
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability....
3
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.