started work work on fire button and yOffset system
This commit is contained in:
@ -1,7 +1,9 @@
|
|||||||
import pygame
|
import pygame
|
||||||
|
from random import randint
|
||||||
|
|
||||||
screenx = 1280
|
screenx = 1280
|
||||||
screeny = 720
|
screeny = 720
|
||||||
|
yOffset = 0
|
||||||
|
|
||||||
pygame.init()
|
pygame.init()
|
||||||
screen = pygame.display.set_mode((screenx,screeny))
|
screen = pygame.display.set_mode((screenx,screeny))
|
||||||
@ -15,6 +17,9 @@ while running:
|
|||||||
|
|
||||||
screen.fill("black")
|
screen.fill("black")
|
||||||
|
|
||||||
|
fireButton = pygame.Rect(0,0,300,100)
|
||||||
|
pygame.draw.rect(screen, (30,30,30), fireButton)
|
||||||
|
|
||||||
pygame.display.flip()
|
pygame.display.flip()
|
||||||
|
|
||||||
clock.tick(60)
|
clock.tick(60)
|
||||||
|
|||||||
Reference in New Issue
Block a user