Elements: Difference between revisions
Jump to navigation
Jump to search
Crazy-chris (talk | contribs) No edit summary |
Crazy-chris (talk | contribs) (+svn link for browse source) |
||
Line 15: | Line 15: | ||
:[http://www.linuxuser.at/elements/elements.zip Elements.zip] (338 kb) | [http://www.linuxuser.at/elements/elements.xo Elements.xo] (195 kb) | [http://lux.vu/olpc/physics-sdl.xo box2d xo demo] | [[Elements/Documentation|Documentation]] | [http:// |
:[http://www.linuxuser.at/elements/elements.zip Elements.zip] (338 kb) | [http://www.linuxuser.at/elements/elements.xo Elements.xo] (195 kb) | [http://lux.vu/olpc/physics-sdl.xo box2d xo demo] | [[Elements/Documentation|Documentation]] | [http://svn2.assembla.com/svn/elements/ Browse Source] |
||
Revision as of 19:50, 18 March 2008
About
The Elements project is all about free and easy 2D physics for python -- with main attention on:
- An easy-to-use, fast 2D physics API
- for the (faster) box2d physics engine (work in progress)
- and previously also for the Chipmunk 2d physics engine (with pymunk ctypes bindings)
- See: Physic Engines/Speed Tests
- Examples and documentation on how to use the API
- Providing the examples as bundles, as they are already interesting and fun
- Speed optimization (also with an eye on the XO laptop :)
- Development of ideas for education and playful-learning
- Elements.zip (338 kb) | Elements.xo (195 kb) | box2d xo demo | Documentation | Browse Source
More Informations
- IRC: #elements on irc.freenode.net
- Source-Code is GPL licensed - so do with it what you want! Even eat it :)
- A lively and open development and support team is having fun improving and helping out :)
- The Box2D compatible version of Elements will come these days. In the meantime the Chipmunk engine is almost fully supported by the previous version of Elements.
Team
- Chris Hager
- Joshua Minor
- Ixo
The team is open for anyone to join :)
Screenshots
(from Elements/Screenshots)
Pygame Example
The typical usage in pygame can look like this:
import pygame from pygame.locals import * from pygame.color import * from elements import * pygame.init() screen = pygame.display.set_mode((800, 800)) clock = pygame.time.Clock() world = elements() world.add_wall((100, 200), (300, 200)) # Main Game Loop: while running: # Event Handling # Maybe calling world.add_ball(event.pos) or world.add_square(event.pos) # ... screen.fill((255,255,255)) # Update & Draw World world.update() world.draw(screen) # Flip Display pygame.display.flip() # Try to stay at 50 FPS clock.tick(50)