Asteroids

This version of Asteroids is Asteroids 6 by Ian Mallett. The original repository can be found here.

The XO bundle as it sits does not run. The manifest does not bring over Imageload (py or pyc). To run this you need to copy ImageLoad.pyc from the repository to the asteroids.activity directory on your XO.

There are some playability issues with the application as it stands:

  • very small text
  • low contrast of some screen elements
  • not filling XO screen
  • game is not 'throttled' and was meant for a much faster machine, so some actions are very sluggish

This activity fails to load.  It produces the following error:

<type 'exceptions.ImportError'> Traceback (most recent call last)

/usr/bin/sugar-activity in <module>() 145 gtk.icon_theme_get_default().append_search_path(bundle.get_icons_path()) 146 --> 147 create_activity_instance(constructor, handle) global create_activity_instance = <function create_activity_instance at 0x8318f7c> global constructor = <class 'activity.Activity'> global handle = <sugar.activity.activityhandle.ActivityHandle object at 0x85f94ec> 148 149 gtk.main()

/usr/bin/sugar-activity in create_activity_instance(constructor=<class 'activity.Activity'>, handle=<sugar.activity.activityhandle.ActivityHandle object at 0x85f94ec>) 42 43 def create_activity_instance(constructor, handle): ---> 44 activity = constructor(handle) activity = undefined constructor = <class 'activity.Activity'> handle = <sugar.activity.activityhandle.ActivityHandle object at 0x85f94ec> 45 activity.connect('destroy', activity_destroy_cb) 46 activity.show()

/home/olpc/Activities/asteroids.activity/olpcgames/activity.py in __init__(self=<Activity object at 0x8958a7c (SugarActivity at 0x8887000)>, handle=<sugar.activity.activityhandle.ActivityHandle object at 0x85f94ec>) 104 toolbar = self.build_toolbar() 105 log.debug( 'Toolbar size: %s', toolbar.get_size_request()) --> 106 canvas = self.build_canvas() canvas = undefined self.build_canvas = <bound method Activity.build_canvas of <Activity object at 0x8958a7c (SugarActivity at 0x8887000)>> 107 self.connect( 'configure-event', canvas._translator.do_resize_event ) 108

/home/olpc/Activities/asteroids.activity/olpcgames/activity.py in build_canvas(self=<Activity object at 0x8958a7c (SugarActivity at 0x8887000)>) 165 self.set_canvas(self._pgc) 166 self._pgc.grab_focus() --> 167 self._pgc.connect_game(self.game_handler or self.game_name) self._pgc.connect_game = <bound method PygameCanvas.connect_game of <PygameCanvas object at 0x8962234 (GtkLayout at 0x88a8080)>> self.game_handler = None self.game_name = 'Asteroids:main' 168 # XXX Bad coder, do not hide in a widely subclassed operation 169 # map signal does not appear to show up on socket instances

 

Page last changed: 06/11/2008