-
as seen on Game Development
- Search for 'Game Development'
i'd like to add the same collision detection used by the player sprite to the enemy sprites or 'creeps' ive added all the relevant code I can see yet collisons are still not being detected and handled, please find below the class, I have no idea what is wrong currently, the list of walls to collide…
>>> More
-
as seen on Game Development
- Search for 'Game Development'
I am trying to use double buffering in pygame. What I'm trying to do is display a red then green screen, and switch from one to the other. Unfortunately, all I have is a black screen. I looked through many sites, but have been unable to find a solution. Any help would be appreciated.
import pygame…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am working on a little card-swapping world-travel game that I sort of envision as a cross between Bejeweled and the 10 Days geography board games. So far the coding has been going okay, but the frame rate is pretty bad... currently I'm getting low 20's on my Core 2 Duo. This is a problem since I'm…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am trying to create an object from a class in python but I am getting an Error, "e_tank = EnemyTank()
TypeError: 'Group' object is not callable"
I am not sure what this means, I have tried Google but I couldn't get a clear answer on what is causing this error. Does anyone understand why I am…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
import pygame, sys
from pygame.locals import *
pygame.init()
size = width, height = 480,320
screen = pygame.display.set_mode(size)
r = 0
bif = pygame.image.load("map5.png")
pygame.display.set_caption("Pygame 2D RPG !")
x,y=0,0
movex, movey=0,0
character="boy.png"
player=pygame.image…
>>> More