Opened 11 years ago

Closed 7 years ago

#1047 closed defect (fixed)

Physics' default ground misplaced on windowed environment

Reported by: brian Owned by: brian
Priority: Normal Milestone: Unspecified
Component: Physics Version: 0.88.x
Severity: Unspecified Keywords:
Cc: garycmartin, asaf Distribution/OS: Fedora
Bug Status: New

Description

In the interest of making Physics more accessible to young (and new) users, it would be nice to create a "ground" rectangle on startup.

It would be deletable, and would allow inexperienced users to have fun creating things without them falling off of the screen. I think it would be a good training wheel for the time until they learn how to pause and add joints/motors (and at that point, they will hopefully know how to delete!)

Change History (5)

comment:1 follow-up: Changed 11 years ago by garycmartin

  • Bug Status changed from Unconfirmed to Needinfo

Hmmm, Physics does add a solid ground to the game world automatically at the bottom of the screen. It is permanent and you can't remove it. Are you perhaps seeing a resolution detection issue where the solid ground is being placed off screen (I've tested a few screen resolutions and have not seen this)?

comment:2 in reply to: ↑ 1 Changed 11 years ago by brian

  • Summary changed from Add default ground to Physics to Physics' default ground misplaced on VMware image

Replying to garycmartin:

Hmmm, Physics does add a solid ground to the game world automatically at the bottom of the screen. It is permanent and you can't remove it. Are you perhaps seeing a resolution detection issue where the solid ground is being placed off screen (I've tested a few screen resolutions and have not seen this)?

Ah, of course, how could I forget the self.world.add.ground() in physics.py!

This must be an issue with my running within VMWare (this one). I'll look into debugging, though this is my dev environment's issue, not high priority.

Thanks Gary!

comment:3 Changed 11 years ago by brian

  • Resolution set to notabug
  • Status changed from new to closed

To debug, tried Maze (which uses similar pygame drawing). Screenshot is illuminating. Must be something wrong with resolution/pygame on this image.

When I'm back in the states in a couple of weeks I'll download the SoaS virtualbox image.

Resolving as notabug.

comment:4 Changed 11 years ago by FGrose

  • Bug Status changed from Needinfo to New
  • Distribution/OS changed from Unspecified to Fedora
  • Priority changed from Low to Normal
  • Resolution notabug deleted
  • Status changed from closed to reopened
  • Summary changed from Physics' default ground misplaced on VMware image to Physics' default ground misplaced on windowed environment
  • Type changed from enhancement to defect
  • Version changed from Unspecified to 0.88.x

Using Physics v4 in Fedora 13 with Sugar 0.88.0 in the Xephyr window set to 1200x900 or 800x600, the object appear to fall away. When I reopened to 1280x1024 (my screen's native resolution) I found my objects on the default ground.

Suspecting that the floor needs to be set to the window base instead of the screen size base.

comment:5 Changed 7 years ago by walter

  • Resolution set to fixed
  • Status changed from reopened to closed

This is not an issue in recent versions of Physics.

Note: See TracTickets for help on using tickets.