Tag: box2d

Box2D in artillery games, a concept demo: From Gorilla to Angry Birds.

In recent times, Angry Birds has had great repercussion in the world of casual games, but the concept it is based on is not new: Since 1988 Artillery, and subsequently, Gorillas, developed by IBM,  bunled with MS -DOS 5 and  distributed

Posted in Concept, Programming, Python Tagged with: , , , , , , , ,

Python + Box 2D + Pygame demo: Bumper cars

from Box2D import * import pygame, sys, math, random from pygame.locals import * # set up pygame-box2d constants car_x_size=3 car_y_size=1 pillar_height=15.0 pygame_box2d_ratio=10.0 ground_height=10.0 pygame_screen_x=500 pygame_screen_y=400 margin=0.0 # set up pygame pygame.init() # set up the window windowSurface = pygame.display.set_mode((pygame_screen_x, pygame_screen_y))

Posted in Programming, Python Tagged with: , , ,

Box2D: Physics Engine for Games

from Box2D import * import pygame, sys, math, random from pygame.locals import * # set up pygame-box2d constants box_size=0.9 pillar_height=15.0 pygame_box2d_ratio=10.0 ground_height=10.0 pygame_screen_x=500 pygame_screen_y=400 # set up pygame pygame.init() # set up the window windowSurface = pygame.display.set_mode((pygame_screen_x, pygame_screen_y)) pygame.display.set_caption(‘Box2D and

Posted in Programming, Python Tagged with: , ,
%d bloggers like this: