Commit 2bc85d02 authored by Alan Aguiar's avatar Alan Aguiar
Browse files

better structure of data

parent 4228aabd
......@@ -7,7 +7,7 @@ import math
SKY = (113, 197, 207)
GROUND = (221, 216, 148)
build = pygame.image.load('images/buildings.png')
build = pygame.image.load('data/images/buildings.png')
def make_back(parent):
......
......@@ -4,10 +4,10 @@
import pygame
import random
bird_h = pygame.image.load('images/bird_h_alfa.png')
bird_u = pygame.image.load('images/bird_u_alfa.png')
bird_d1 = pygame.image.load('images/bird_d45_alfa.png')
bird_d2 = pygame.image.load('images/bird_d55_alfa.png')
bird_h = pygame.image.load('data/images/bird_h_alfa.png')
bird_u = pygame.image.load('data/images/bird_u_alfa.png')
bird_d1 = pygame.image.load('data/images/bird_d45_alfa.png')
bird_d2 = pygame.image.load('data/images/bird_d55_alfa.png')
class Bird(pygame.sprite.Sprite):
......
......@@ -3,7 +3,7 @@
import pygame
piece = pygame.image.load('images/floor.png')
piece = pygame.image.load('data/images/floor.png')
class Floor(pygame.sprite.Sprite):
......
......@@ -4,8 +4,8 @@
import pygame
import random
head = pygame.image.load('images/head_pipe.png')
body = pygame.image.load('images/pipe.png')
head = pygame.image.load('data/images/head_pipe.png')
body = pygame.image.load('data/images/pipe.png')
class Pipe_I(pygame.sprite.Sprite):
......
......@@ -4,8 +4,8 @@
import pygame
from gettext import gettext as _
back = pygame.image.load('images/score_alfa.png')
mes = pygame.image.load('images/init_alfa.png')
back = pygame.image.load('data/images/score_alfa.png')
mes = pygame.image.load('data/images/init_alfa.png')
class EndScore(pygame.sprite.Sprite):
......@@ -14,9 +14,9 @@ class EndScore(pygame.sprite.Sprite):
self.mPos = [x, y]
self.score = 0
self.best = 0
self.font20 = pygame.font.Font('DejaVuSans-Bold.ttf', 20)
self.font30 = pygame.font.Font('DejaVuSans-Bold.ttf', 30)
self.font40 = pygame.font.Font('DejaVuSans-Bold.ttf', 40)
self.font20 = pygame.font.Font('data/DejaVuSans-Bold.ttf', 20)
self.font30 = pygame.font.Font('data/DejaVuSans-Bold.ttf', 30)
self.font40 = pygame.font.Font('data/DejaVuSans-Bold.ttf', 40)
self.fgColor = (255, 255, 255)
self.mes_color = (252, 120, 88)
self.mes_score = _('Score')
......@@ -67,7 +67,7 @@ class CurrentScore(pygame.sprite.Sprite):
self.points = 0
self.image = back
self.size = [50, 50]
self.font = pygame.font.Font('DejaVuSans-Bold.ttf', 50)
self.font = pygame.font.Font('data/DejaVuSans-Bold.ttf', 50)
self.fgColor = (255, 255, 255)
self.bgColor = (113, 197, 207)
self._update_image()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment