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! 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 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
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.
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
Yeah, probably i'll be ending doing the front end in Flash and the back
end in Python.
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
:)
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 :) )
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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....
|
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....
|
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....
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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
|
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...
|
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,...
|
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,...
|
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...
|
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...
| |