Comments (7)
Will do.
from pygame_sdl2.
This is a problem I am having: pygame.mask is needed. I am using the modules PyTMX & PyScroll by bitcraft (https://github.com/bitcraft) which need the mask submodule to do some very basic functions.
As far as I can tell everything else works good.
from pygame_sdl2.
Which functions do you need? I looked at it this morning, and there is a lot of stuff there.
from pygame_sdl2.
I apologise if this is a bad reply but my knowledge of Python isn't great. I think I need pygame.sprite.LayeredUpdates
. The error pygame_sdl2 spits out is NotImplementedError: Could not import pygame_sdl2.sprite: No module named mask
If this isn't good enough here is my logcat:
Android bootstrap done. __name__ is __main__
Run user program, change dir and execute main.py
Opening APK '/data/app/com.connor.gtc-1/base.apk'
jpeg_decoder mode 0, colorType 4, w 3648, h 5472, sample 1, bsLength 0!!
jpeg_decoder mode 1, colorType 4, w 3648, h 5472, sample 2, bsLength 0!!
Traceback (most recent call last):
File "main.py", line 40, in <module>
import pyscroll
File "lib/pyscroll/__init__.py", line 26, in <module>
from .group import *
File "lib/pyscroll/group.py", line 14, in <module>
class PyscrollGroup(pygame.sprite.LayeredUpdates):
File "/data/user/0/com.connor.gtc/files/lib/python2.7/site-packages/pygame_sdl2/__init__.py", line 32, in __getattr__
raise NotImplementedError(self.reason)
NotImplementedError: Could not import pygame_sdl2.sprite: No module named mask
Python for android ended.
If this still isn't good enough just tell me what you need.
Thanks a lot. -Connor
Edit: Upon further inspection I realise pygame.sprite.LayeredUpdates is included.
Edit2: After furtherer inspection I can't even find the mask submodule anywhere in Pygame. This could just be me being silly or there's something funny going on.
Edit3: After furthererer inspection using cat */*.py | grep mask
I found that pygame.mask.Mask
+ pygame.mask.from_surface
are being used.
from pygame_sdl2.
Any news?
from pygame_sdl2.
Is this still on-going? Or has development on the module stopped? Because I too am trying to use bitcraft's PyTMX module. I have tried to port the pygame.mask.from_surface
, to no avail.
from pygame_sdl2.
Hello~~. I'm the author of pytmx and pyscroll. I'll investigate if I could possibly not require the mask module, or optimize it for pygame_sdl2.
from pygame_sdl2.
Related Issues (20)
- It's possible to get pygame_sdl2 without installing? HOT 1
- Document a means of efficient color swapping in 32-bit surfaces
- Segmentation Fault creating pygame.surface HOT 1
- Save surface to file efficiently
- MIDI HOT 1
- Building 'pygame_sdl2.rwobject' extension failes HOT 1
- Variable is used out of scope
- G923 compatibility
- gfxdraw.filled_polygon producing incorrect image HOT 2
- 'pygame.image.save' works inproperly when saving PNG images
- Why? HOT 4
- [Feature Request] avif images support HOT 2
- Problem with fix_virtualenv.py HOT 3
- Error trying to build on Windows (pygame_sdl2.event.c) HOT 4
- pygame_sdl2.controller.get_axis_from_string crashes when provided with a string.
- Error trying to build on Windows
- Problem to import .pyx files HOT 6
- gfxdraw.thick_line cast to integers doesn't seem to work HOT 1
- Use image.load for gif HOT 4
- android.py configure error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygame_sdl2.