From e6870a57c7267981a01e9ee84bfa3018a86dd08c Mon Sep 17 00:00:00 2001 From: Tony Anderson Date: Mon, 22 Jun 2009 14:14:30 +0000 Subject: delete some files --- diff --git a/imagequiz_library/sound/k0061.ogg b/imagequiz_library/sound/k0061.ogg deleted file mode 100755 index bddfc30..0000000 --- a/imagequiz_library/sound/k0061.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k0168.ogg b/imagequiz_library/sound/k0168.ogg deleted file mode 100755 index 0d58774..0000000 --- a/imagequiz_library/sound/k0168.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k0177.ogg b/imagequiz_library/sound/k0177.ogg deleted file mode 100755 index b92031b..0000000 --- a/imagequiz_library/sound/k0177.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k0286.ogg b/imagequiz_library/sound/k0286.ogg deleted file mode 100755 index 7e5bc36..0000000 --- a/imagequiz_library/sound/k0286.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k0670.ogg b/imagequiz_library/sound/k0670.ogg deleted file mode 100755 index b2942fe..0000000 --- a/imagequiz_library/sound/k0670.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k0762.ogg b/imagequiz_library/sound/k0762.ogg deleted file mode 100755 index 179cb73..0000000 --- a/imagequiz_library/sound/k0762.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k0820.ogg b/imagequiz_library/sound/k0820.ogg deleted file mode 100755 index 25bd363..0000000 --- a/imagequiz_library/sound/k0820.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k0963.ogg b/imagequiz_library/sound/k0963.ogg deleted file mode 100755 index 772b0d7..0000000 --- a/imagequiz_library/sound/k0963.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k0993.ogg b/imagequiz_library/sound/k0993.ogg deleted file mode 100755 index 498c1fc..0000000 --- a/imagequiz_library/sound/k0993.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k1030.ogg b/imagequiz_library/sound/k1030.ogg deleted file mode 100755 index 2d0bc0c..0000000 --- a/imagequiz_library/sound/k1030.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k1094.ogg b/imagequiz_library/sound/k1094.ogg deleted file mode 100755 index 2473cde..0000000 --- a/imagequiz_library/sound/k1094.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k1267.ogg b/imagequiz_library/sound/k1267.ogg deleted file mode 100755 index d737df9..0000000 --- a/imagequiz_library/sound/k1267.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k1391.ogg b/imagequiz_library/sound/k1391.ogg deleted file mode 100755 index 3762fae..0000000 --- a/imagequiz_library/sound/k1391.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k1391r.ogg b/imagequiz_library/sound/k1391r.ogg deleted file mode 100755 index 5170002..0000000 --- a/imagequiz_library/sound/k1391r.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k1391r1.ogg b/imagequiz_library/sound/k1391r1.ogg deleted file mode 100755 index 0f0f99a..0000000 --- a/imagequiz_library/sound/k1391r1.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k1524.ogg b/imagequiz_library/sound/k1524.ogg deleted file mode 100755 index 957551e..0000000 --- a/imagequiz_library/sound/k1524.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k1527.ogg b/imagequiz_library/sound/k1527.ogg deleted file mode 100755 index c1dc049..0000000 --- a/imagequiz_library/sound/k1527.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k1702.ogg b/imagequiz_library/sound/k1702.ogg deleted file mode 100755 index 70ae65f..0000000 --- a/imagequiz_library/sound/k1702.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k1809.ogg b/imagequiz_library/sound/k1809.ogg deleted file mode 100755 index fda4fd9..0000000 --- a/imagequiz_library/sound/k1809.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k1873.ogg b/imagequiz_library/sound/k1873.ogg deleted file mode 100755 index 5d0966d..0000000 --- a/imagequiz_library/sound/k1873.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k1960.ogg b/imagequiz_library/sound/k1960.ogg deleted file mode 100755 index 15a5cd2..0000000 --- a/imagequiz_library/sound/k1960.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k2006.ogg b/imagequiz_library/sound/k2006.ogg deleted file mode 100755 index 4f46579..0000000 --- a/imagequiz_library/sound/k2006.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k2361.ogg b/imagequiz_library/sound/k2361.ogg deleted file mode 100755 index a6e2a62..0000000 --- a/imagequiz_library/sound/k2361.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k2364.ogg b/imagequiz_library/sound/k2364.ogg deleted file mode 100755 index 202d7a4..0000000 --- a/imagequiz_library/sound/k2364.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k2372.ogg b/imagequiz_library/sound/k2372.ogg deleted file mode 100755 index 43b3917..0000000 --- a/imagequiz_library/sound/k2372.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k2488.ogg b/imagequiz_library/sound/k2488.ogg deleted file mode 100755 index 9cd1bb7..0000000 --- a/imagequiz_library/sound/k2488.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k2532.ogg b/imagequiz_library/sound/k2532.ogg deleted file mode 100755 index d3241a3..0000000 --- a/imagequiz_library/sound/k2532.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k2579.ogg b/imagequiz_library/sound/k2579.ogg deleted file mode 100755 index a92dc16..0000000 --- a/imagequiz_library/sound/k2579.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k2621.ogg b/imagequiz_library/sound/k2621.ogg deleted file mode 100755 index 03a6065..0000000 --- a/imagequiz_library/sound/k2621.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k2701.ogg b/imagequiz_library/sound/k2701.ogg deleted file mode 100755 index f647672..0000000 --- a/imagequiz_library/sound/k2701.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k2702.ogg b/imagequiz_library/sound/k2702.ogg deleted file mode 100755 index 04df342..0000000 --- a/imagequiz_library/sound/k2702.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k2849.ogg b/imagequiz_library/sound/k2849.ogg deleted file mode 100755 index 5ddad74..0000000 --- a/imagequiz_library/sound/k2849.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k2889.ogg b/imagequiz_library/sound/k2889.ogg deleted file mode 100755 index ae28c65..0000000 --- a/imagequiz_library/sound/k2889.ogg +++ /dev/null Binary files differ diff --git a/imagequiz_library/sound/k3184.ogg b/imagequiz_library/sound/k3184.ogg deleted file mode 100755 index 8426894..0000000 --- a/imagequiz_library/sound/k3184.ogg +++ /dev/null Binary files differ diff --git a/pgutest.py b/pgutest.py deleted file mode 100644 index 0ec7191..0000000 --- a/pgutest.py +++ /dev/null @@ -1,168 +0,0 @@ -class CurrentQuestion: - id = 0 - prompt = u'' - response = u'' - imgfn = u'' - sndfn = u'' - map = u'' - answer_link = u'' - -import pygame -from pygame.locals import * - -# the following line is not needed if pgu is installed -import sys; sys.path.insert(0, "..") - -from pgu import gui - -cq = CurrentQuestion() - -class EditDialog(gui.Dialog): - def __init__(self, editsave, cq): - title = gui.Label("Edit Question") - - t = gui.Table() - self.form = gui.Form() - - t.tr() - t.td(gui.Label("Prompt: ")) - t.td(gui.Input(name = 'prompt', value = cq.prompt),colspan=3) - - t.tr() - t.td(gui.Label("Response: ")) - t.td(gui.Input(name = 'response', value = cq.response),colspan=3) - - t.tr() - t.td(gui.Label("Image: ")) - t.td(gui.Input(name = 'image', value = cq.imgfn),colspan=3) - - t.tr() - t.td(gui.Label("Sound: ")) - t.td(gui.Input(name = 'sound', value = cq.sndfn),colspan=3) - - t.tr() - t.td(gui.Label("Map: ")) - t.td(gui.Input(name = 'map', value = cq.map),colspan=3) - - t.tr() - t.td(gui.Label("Answer_link: ")) - t.td(gui.Input(name = 'answer_link', value = cq.answer_link),colspan=3) - - t.tr() - saveButton = gui.Button("Save") - saveButton.connect(gui.CLICK, editsave) - t.td(saveButton,colspan=3) - - gui.Dialog.__init__(self,title,t) - - -class ImageQuizActivity: - user_name = u"chris" - - def game(self): - global edit_d - global c - clock = pygame.time.Clock() - cq.prompt = "prompt" - cq.response = "response" - cq.imgfn = "image" - cq.sndfn = "sound" - cq.map = "map" - cq.answer_link = "answerlink" - app = gui.App() - - c = gui.Container(width = 100, height = 50) - app.init(c) - - edit_d = EditDialog(self.editsave, cq) - edit_d.open() - - # Pygame event loop. - while True: - clock.tick(20) - app.paint(self.screen) - pygame.display.update() - - for event in [ pygame.event.wait() ] + pygame.event.get( ): - self.input(event) - app.event(event) - - def editsave(cq): - global edit_d - global c - print 'editsave' - form = edit_d.form - print 'items', len(form.items()), form.items() - cq.prompt = form['prompt'].value - cq.response = form['response'].value - cq.imgfn = form['image'].value - cq.sndfn = form['sound'].value - cq.map = form['map'].value - cq.answer_link = form['answer_link'].value - print 'on save:' - print 'prompt', cq.prompt - print 'response', cq.response - print 'image', cq.imgfn - print 'sound', cq.sndfn - print 'map', cq.map - print 'answer_link', cq.answer_link - app.close(edit_d) - - # Handle a pygame event - def exit_all(self): - global edit_d - form = edit_d.form - cq.prompt = form['prompt'].value - cq.response = form['response'].value - cq.imgfn = form['image'].value - cq.sndfn = form['sound'].value - cq.map = form['map'].value - cq.answer_link = form['answer_link'].value - print 'on exit:' - print 'prompt', cq.prompt - print 'response', cq.response - print 'image', cq.imgfn - print 'sound', cq.sndfn - print 'map', cq.map - print 'answer_link', cq.answer_link -# plugger.close_plugins() -# time.sleep(3) - sys.exit(0) - - def input(self, event): - if event.type == QUIT: - self.exit_all() - - elif event.type == MOUSEBUTTONUP: - #display.check_click(event.pos) - pass - - elif event.type == KEYUP: - if event.key == 113: # 'q' - self.exit_all() - elif event.key == 102: # 'f' - pygame.display.toggle_fullscreen() - -# elif event.type == MOUSEMOTION: -# pass - -# else: -# x = event.type -# display.show_tool_tip((200, 10), "%i" % int(x)) -# pygame.display.update() - - - def __init__(self): - # Fire Up Display - self.window = pygame.display.set_mode((1200, 825)) - pygame.display.set_caption('PGU test') - - # Init Surface - self.screen = pygame.display.get_surface() - self.game() - -def main(): - ImageQuiz = ImageQuizActivity() - -if __name__ == "__main__" or __name__ == "ImageQuiz": - main() diff --git a/pgutest1.py b/pgutest1.py deleted file mode 100644 index 5932477..0000000 --- a/pgutest1.py +++ /dev/null @@ -1,148 +0,0 @@ -class CurrentQuestion: - id = 0 - prompt = u'' - response = u'' - imgfn = u'' - sndfn = u'' - map = u'' - answer_link = u'' - -import pygame -from pygame.locals import * - -# the following line is not needed if pgu is installed -import sys; sys.path.insert(0, "..") - -from pgu import gui - -cq = CurrentQuestion() - -class EditDialog(gui.Dialog): - def __init__(self, editsave, cq): - title = gui.Label("Edit Question") - - t = gui.Table() - self.form = gui.Form() - - t.tr() - saveButton = gui.Button("Save") - saveButton.connect(gui.CLICK, editsave, cq) - t.td(saveButton,colspan=3) - - t.tr() - t.td(gui.Label("Prompt: ")) - t.td(gui.Input(name = 'prompt', value = cq.prompt),colspan=3) - - t.tr() - t.td(gui.Label("Response: ")) - t.td(gui.Input(name = 'response', value = cq.response),colspan=3) - - t.tr() - t.td(gui.Label("Image: ")) - t.td(gui.Input(name = 'image', value = cq.imgfn),colspan=3) - - t.tr() - t.td(gui.Label("Sound: ")) - t.td(gui.Input(name = 'suound', value = cq.sndfn),colspan=3) - - t.tr() - t.td(gui.Label("Map: ")) - t.td(gui.Input(name = 'map', value = cq.map),colspan=3) - - t.tr() - t.td(gui.Label("Answer_link: ")) - t.td(gui.Input(name = 'answer_link', value = cq.answer_link),colspan=3) - - gui.Dialog.__init__(self,title,t) - - -class ImageQuizActivity: - user_name = u"chris" - - def game(self): - global edit_d - clock = pygame.time.Clock() - cq.prompt = "prompt" - cq.response = "response" - cq.imgfn = "image" - cq.sndfn = "sound" - cq.map = "map" - cq.answer_link = "answerlink" - app = gui.App() - - c = gui.Container(width=800, height=600 - - lbl = gui.Label("This is the main surface") - c.add(lbl,0,500) - app.init(c) - - #edit_d = EditDialog(editsave, cq) - #edit_d.open() - - # Pygame event loop. - while True: - clock.tick(20) - app.paint(self.screen) - pygame.display.update() - - for event in [ pygame.event.wait() ] + pygame.event.get( ): - self.input(event) - app.event(event) - - # Handle a pygame event - def exit_all(self): - global edit_d - form = edit_d.form - cq.prompt = form['prompt'].value - cq.response = form['response'].value - cq.imgfn = form['image'].value - cq.sndfn = form['sound'].value - cq.map = form['map'].value - cq.answer_link = form['answer_link'].value - print 'prompt', cq.prompt - print 'response', cq.response - print 'image', cq.imgfn - print 'sound', cq.sndfn - print 'map', cq.map - print 'answer_link', cq.answer_link -# plugger.close_plugins() -# time.sleep(3) - sys.exit(0) - - def input(self, event): - if event.type == QUIT: - self.exit_all() - - elif event.type == MOUSEBUTTONUP: -# display.check_click(event.pos) - pass - - elif event.type == KEYUP: - if event.key == 113: # 'q' - self.exit_all() - elif event.key == 102: # 'f' - pygame.display.toggle_fullscreen() - -# elif event.type == MOUSEMOTION: -# pass - -# else: -# x = event.type -# display.show_tool_tip((200, 10), "%i" % int(x)) -# pygame.display.update() - - - def __init__(self): - # Fire Up Display - self.window = pygame.display.set_mode((1200, 825)) - pygame.display.set_caption('PGU test') - - # Init Surface - self.screen = pygame.display.get_surface() - self.game() - -def main(): - ImageQuiz = ImageQuizActivity() - -if __name__ == "__main__" or __name__ == "ImageQuiz": - main() diff --git a/wiki b/wiki deleted file mode 100755 index e19b6f9..0000000 --- a/wiki +++ /dev/null @@ -1,105 +0,0 @@ -'''XO ImageQuiz''' is an open-source game for kids aged 6-14 with a simple concept: one question, one image, one click; becoming one of the greatest learning experiences of the future :-) - -* Learning Tool ([http://www.linuxuser.at/xoquiz/game.php Demo]) -** Kids can explore, create, share and translate questions -** Mess around with the database: create, delete, download and share bundles -** Play single-player games with flashcard-system or just a plain quick quiz-game -** Multi-player games over the mesh - either vs or in coop mode -** Extend the game by plugins they create (and share) or download via web / mesh / schoolserver -** Get introductive reading and further links for each question - -* Teaching Tool -** Teachers can easily build individual question-packages accompanying their lessions (and share / download them) -** Resarching a topic and creating questions for subtopics, as well as engaging in those of other groups, can be part of classes and homeworks - - -* Current status: In development (~ 30% done) -* [http://www.olpcaustria.org/mediawiki/index.php/XO_ImageQuiz/Screenshots Screenshots], [http://www.olpcaustria.org/mediawiki/index.php/XO_ImageQuiz/Plugins Plugin How-To], [http://dev.laptop.org/git?p=projects/xo-quiz Source] - git clone git://dev.laptop.org/projects/xo-quiz - -= Summary = -* Usability: Easy to use tool for learning and teaching -* Interactivity: Messing around with all parts of the activity is encouraged and simplified -* Collaboration: Create, download and share questions, and have multi-player games -* Localization: Supporting all languages (unicode) and providing ways to translate questions (in-game & gettext) -* Extensiblity: Categories and their images can be shared over internet, schoolserver and mesh -* Balance: Easy, medium and hard questions, each for different ages -* Modular Layout: Written as a plugin framework; even the game-modes are plugins -* Constructive: Building up knowledge with fun and [http://en.wikipedia.org/wiki/Flashcard system] -* XO Featured: Integrating the xo-cam, mesh and the users friends -* Categorized: like arts, astronomy, food, geography, health, technics, wildlife, ... - - -[[Image:Xoquiz_astro.gif]] - - -= Development = - -== Overview == -The activity for the xo will be written in Python using: - -* [[Pygame]] / the [[Pygame_wrapper|olpc pygames wrapper]] for display and xo interaction (cam, net, mesh) -* [[Pysqlite]] as data-storage system -* [[Unicode]] - - -== Source == -The current source-code is available via git from [http://dev.laptop.org/git?p=projects/xo-quiz dev.laptop.org]: - git clone git://dev.laptop.org/projects/xo-quiz - - -== Roadmap == - * November 07: - Finishing the web-application - - Start of Python Activity - - * December 07: - Building basic high-quality database - - Start of Single Player - - * January 08: - Single Player Mode - - * February 08: - Tests and Multiplayer - - * March 08: - Final Design and Testing - - * April 08: - Release of version 1.0 - - -== Involved == -* Chris Hager (Austria) (chris(at)linuxuser.at) -* Georg Witwer (Austria) -* [http://www.olpcaustria.org OLPC Austria] - - -== Help == -We are looking for people with: -* Python knowledge -* Design / Layout experience -* Time to create a few questions -* Ideas for the concept - -If you have any of those, and are willing to contribute a few hours, please drop me a line: chris (at) linuxuser.at - - -= Related Links = -* General -** [[Game_development]] -** [[Game_development_HOWTO]] -** [[Development_issues]] -** [http://en.wikipedia.org/wiki/Flashcard Flashcard Learning System] - - -* [http://python.org/ Python] -** [http://www.brunningonline.net/simon/python/quick-ref2_0.html Python Quick Reference] -** [http://www.jorendorff.com/articles/unicode/python.html Unicode in Python] - - -* [http://pygame.org Pygame] -** [http://pygame.org/docs/ref/index.html PyGame Reference] -** [http://rene.f0o.com/mywiki/PythonGameProgramming PythonGameProgramming] (Excellent, quick diy-introduction on images, sound, display, event handling, ...) -** [http://www.pygame.org/wiki/tutorials PyGame Tutorials Overview] - - -* [http://trac.edgewall.org/wiki/PySqlite PySqlite] -** [http://initd.org/pub/software/pysqlite/doc/usage-guide.html Usage Guide] -** [http://lists.initd.org/pipermail/pysqlite/2005-November/000218.html Unicode and PySqlite] - -- cgit v0.9.1