stocyr / deflectouch Goto Github PK
View Code? Open in Web Editor NEWA multitouch game for, with and because of Kivy
Home Page: http://youtu.be/1Qa98oSPgi0
A multitouch game for, with and because of Kivy
Home Page: http://youtu.be/1Qa98oSPgi0
The recent version of Deflectouch behaves on Ubuntu 11.10 as visible on this screenshot:
When you begin the game, the first level is generated partially. With each new level only part of the screen is updated. When you move the cannon, the position of targets on the same height (number of pixels from the top) seems to be revealed and they seem to be correctly rendered.
On Ubuntu 11.10 (Unity 2D) only graphic is an issue, sound and buttons work fine.
Bug reported: Bullets goes still through deflectors on some users.
The beep sound doesn't play on every block but only on about every 10th block.
This wasn't the case with kivy v1.7.0 yet...
Hello everyone.
Im new to Kivy but not python. In my opinion the best way to learn anything is to pick something you like built with it and disassemble it :) So I came to this project.
Unfortunately I cannot start it in the first place.
Here is what I get:
$ python main.py
[INFO ] Kivy v1.6.0
[INFO ] [Logger ] Record log in /home/jonas/.kivy/logs/kivy_13-03-29_7.txt
[INFO ] [Factory ] 137 symbols loaded
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=Nones
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60s
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=Nones
[INFO ] [Image ] Providers: img_tex, img_dds, img_pygame, img_pil, img_gif
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60s
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=3600s
[DEBUG ] [Audio ] register SoundGstreamer
[DEBUG ] [Audio ] register SoundPygame
[INFO ] [Audio ] Providers: audio_gstreamer, audio_pygame (audio_sdl ignored)
[DEBUG ] [Cache ] register <kv.loader> with limit=500, timeout=60s
[INFO ] [Loader ] using a thread pool of 2 workers
[INFO ] [Text ] Provider: pygame
[DEBUG ] [App ] Loading configuration <./deflectouch.ini>
[DEBUG ] [App ] Loading kv <./deflectouch.kv>
[INFO ] [Window ] Provider: pygame
[DEBUG ] [Window ] Display driver x11
[DEBUG ] [Window ] Actual window size: 800x600
[DEBUG ] [Window ] Actual color bits r8 g8 b8 a0
[DEBUG ] [Window ] Actual depth bits: 24
[DEBUG ] [Window ] Actual stencil bits: 8
[DEBUG ] [Window ] Actual multisampling samples: 4
[INFO ] [GL ] OpenGL version <3.0 Mesa 9.0.2>
[INFO ] [GL ] OpenGL vendor <Intel Open Source Technology Center>
[INFO ] [GL ] OpenGL renderer <Mesa DRI Intel(R) Ivybridge Mobile >
[INFO ] [GL ] OpenGL parsed version: 3, 0
[INFO ] [GL ] Shading version <1.30>
[INFO ] [GL ] Texture max size <8192>
[INFO ] [GL ] Texture max units <16>
[DEBUG ] [Shader ] Fragment compiled successfully
[DEBUG ] [Shader ] Vertex compiled successfully
[DEBUG ] [ImagePygame ] Load </usr/lib/pymodules/python2.7/kivy/data/glsl/default.png>
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/kivy/modules/__init__.py", line 183, in update
self.activate_module(name, win)
File "/usr/lib/pymodules/python2.7/kivy/modules/__init__.py", line 143, in activate_module
module = self.mods[name]['module']
KeyError: 'module'
[WARNING] [WinPygame ] SDL wrapper failed to import!
[DEBUG ] [Window ] Ignored <sdl> (import error)
[DEBUG ] [Window ] Ignored <x11> (import error)
[CRITICAL] [Window ] Unable to find any valuable Window provider at all!
Deflectouch v1.0 Copyright (C) 2012 Cyril Stoller
This program comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the source code for details.
Traceback (most recent call last):
File "main.py", line 542, in <module>
Deflectouch().run()
File "/usr/lib/pymodules/python2.7/kivy/app.py", line 527, in run
root = self.build()
File "main.py", line 470, in build
self.deflectouchwidget = DeflectouchWidget(app=self)
File "/usr/lib/pymodules/python2.7/kivy/uix/widget.py", line 150, in __init__
Builder.apply(self)
File "/usr/lib/pymodules/python2.7/kivy/lang.py", line 1247, in apply
self._apply_rule(widget, rule, rule)
File "/usr/lib/pymodules/python2.7/kivy/lang.py", line 1338, in _apply_rule
self.apply(child)
File "/usr/lib/pymodules/python2.7/kivy/lang.py", line 1247, in apply
self._apply_rule(widget, rule, rule)
File "/usr/lib/pymodules/python2.7/kivy/lang.py", line 1361, in _apply_rule
value, rule, rctx['ids'])
File "/usr/lib/pymodules/python2.7/kivy/lang.py", line 1063, in create_handler
raise BuilderException(rule.ctx, rule.line, str(e))
kivy.lang.BuilderException: Parser: File "./deflectouch.kv", line 35:
...
33: allow_stretch: True
34: keep_ratio: False
>> 35: size: win.Window.size
36:
37:# Stock Bar description
...
'NoneType' object has no attribute 'size'
Also I am using Kivy v1.6.0
under Python 2.7.3
under Linux Kernel 3.8.4 SMP x86_64
.
I hope somebody can help me out on this one.
standard default install of kivy-1.3.0 on windows.
complaints about not being able to load level-1.png
on subsequent starts seems to "fire" but no level data is loaded.
The stockbar level is always read as 0 in the level images.
Most likely the top most line is interpreted as the stockbar line instead of the bottom most.
Like in Centripetal (another Kivy game)
The bullet animation ease function seems to be like this:
| ___________________
| _--^^
| _-
| _____---^
+------------------------------------->
And the calculated duration time is much too long.
Source of the problem seems to be line 79 in bullet.py
.
Apparently this works flawlessly with kivy v1.7.1, but there the audio volume can't be changed...
Audio support should be an optional thing. But if there is not audio support, then all calls to SoundLoader.load will return None, which causes problems later when you try to call play() on them without checking. Perhaps wrap these calls?
Since kivy v1.8.0 there's a new way of setting the apps icon:
http://kivy.org/docs/api-kivy.app.html#kivy.app.App.icon
This has to be implemented:
class Deflectouch(App):
...
def build(self):
self.icon = 'myicon.png'
...
Idea by Nicolas Käser
Just as in the game 'cut the rope'
-> Draws also a line when the background is touched with just one finger.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.