Skip to content

Conversation

@AnshulSood11
Copy link

Continuous mobility added, some minor changes made

Continuous mobility added, some minor changes made
@@ -1,6 +1,6 @@
import pygame, random ,threading

size = width, height = 1000, 1000
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i left out the extra part for the score board

YELLOW = (0,255,255)
BLACK = (0,0,0)
fps=15
fps=20
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does not actually change anything (untill its less than 5)

pass


def wall():
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for the wall function anymore


screen = pygame.display.set_mode(size)
clock = pygame.time.Clock()
timer_event = pygame.USEREVENT + 1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think this is necessary since i added threading to the program and it takes care of that problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants