restructured directories to make more sense of modules and sub-modules
@@ -1,7 +1,7 @@
|
||||
import pygame
|
||||
from . import sprites
|
||||
from pocket_friends.game_files.io_helpers.gpio_handler import Constants
|
||||
from ..io_helpers.input_handler import InputHandler
|
||||
import pocket_friends.game_files.io.gpio_handler as gpio_handler
|
||||
from ..io.input_handler import InputHandler
|
||||
|
||||
|
||||
class Surface(pygame.Surface):
|
||||
@@ -133,15 +133,15 @@ class Surface(pygame.Surface):
|
||||
|
||||
for event in pygame.event.get():
|
||||
if event.type == pygame.KEYDOWN:
|
||||
if event.key == Constants.buttons.get('j_r'):
|
||||
if event.key == gpio_handler.BUTTONS.get('j_r'):
|
||||
self.sel_right()
|
||||
if event.key == Constants.buttons.get('j_l'):
|
||||
if event.key == gpio_handler.BUTTONS.get('j_l'):
|
||||
self.sel_left()
|
||||
if event.key == Constants.buttons.get('j_d'):
|
||||
if event.key == gpio_handler.BUTTONS.get('j_d'):
|
||||
self.sel_down()
|
||||
if event.key == Constants.buttons.get('j_u'):
|
||||
if event.key == gpio_handler.BUTTONS.get('j_u'):
|
||||
self.sel_up()
|
||||
if event.key == Constants.buttons.get('a'):
|
||||
if event.key == gpio_handler.BUTTONS.get('a'):
|
||||
self.additional_args = {'selected_egg': self.selected_color}
|
||||
self.next_surface = 'selection_info'
|
||||
self.running = False
|
||||
|
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"description": "This is Blue! They are a easy going bloop, with a laid back personality that you will love! They are also easy to take care of, as they just enjoy living life!",
|
||||
"contentedness": 4,
|
||||
"metabolism": 5
|
||||
}
|
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"description": "Dev egg description",
|
||||
"contentedness": 4,
|
||||
"metabolism": 4
|
||||
}
|
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"description": "Rainbow egg description",
|
||||
"contentedness": 5,
|
||||
"metabolism": 4
|
||||
}
|
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"description": "Red egg description",
|
||||
"contentedness": 5,
|
||||
"metabolism": 5
|
||||
}
|
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 807 B |
Before Width: | Height: | Size: 610 B |
Before Width: | Height: | Size: 820 B |
Before Width: | Height: | Size: 740 B |
Before Width: | Height: | Size: 490 B |
Before Width: | Height: | Size: 736 B |
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"width": 17,
|
||||
"height": 17,
|
||||
"frames": 17
|
||||
}
|
Before Width: | Height: | Size: 2.6 KiB |
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"width": 14,
|
||||
"height": 10,
|
||||
"frames": 16
|
||||
}
|
Before Width: | Height: | Size: 422 B |
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"width": 17,
|
||||
"height": 17,
|
||||
"frames": 16
|
||||
}
|
Before Width: | Height: | Size: 565 B |
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"width": 17,
|
||||
"height": 17,
|
||||
"frames": 48
|
||||
}
|
Before Width: | Height: | Size: 6.9 KiB |
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"width": 17,
|
||||
"height": 17,
|
||||
"frames": 1
|
||||
}
|
Before Width: | Height: | Size: 864 B |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 218 B |
Before Width: | Height: | Size: 188 B |
Before Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 5.5 KiB |
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"width": 9,
|
||||
"height": 10,
|
||||
"frames": 2
|
||||
}
|
Before Width: | Height: | Size: 419 B |
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"width": 11,
|
||||
"height": 6,
|
||||
"frames": 2
|
||||
}
|
Before Width: | Height: | Size: 268 B |
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"width": 12,
|
||||
"height": 8,
|
||||
"frames": 2
|
||||
}
|
Before Width: | Height: | Size: 350 B |
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"width": 11,
|
||||
"height": 8,
|
||||
"frames": 2
|
||||
}
|
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 235 B |
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"width": 11,
|
||||
"height": 9,
|
||||
"frames": 2
|
||||
}
|
Before Width: | Height: | Size: 302 B |
Before Width: | Height: | Size: 258 B |
Before Width: | Height: | Size: 213 B |
Before Width: | Height: | Size: 213 B |
Before Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 20 KiB |
@@ -1,8 +1,8 @@
|
||||
import pygame
|
||||
from . import sprites
|
||||
from pocket_friends.game_files.io_helpers.gpio_handler import Constants
|
||||
import pocket_friends.game_files.io.gpio_handler as gpio_handler
|
||||
from .sprites import SelectionEgg
|
||||
from ..io_helpers.input_handler import InputHandler
|
||||
from ..io.input_handler import InputHandler
|
||||
|
||||
|
||||
class Surface(pygame.Surface):
|
||||
@@ -46,15 +46,15 @@ class Surface(pygame.Surface):
|
||||
|
||||
for event in pygame.event.get():
|
||||
if event.type == pygame.KEYDOWN:
|
||||
if event.key == Constants.buttons.get('j_d'):
|
||||
if event.key == gpio_handler.BUTTONS.get('j_d'):
|
||||
# Scroll down on the info screen.
|
||||
self.info_text.scroll_down()
|
||||
if event.key == Constants.buttons.get('j_u'):
|
||||
if event.key == gpio_handler.BUTTONS.get('j_u'):
|
||||
# Scroll up on the info screen.
|
||||
self.info_text.scroll_up()
|
||||
if event.key == Constants.buttons.get('a'):
|
||||
if event.key == gpio_handler.BUTTONS.get('a'):
|
||||
pass
|
||||
if event.key == Constants.buttons.get('b'):
|
||||
if event.key == gpio_handler.BUTTONS.get('b'):
|
||||
self.running = False
|
||||
self.additional_args = {'selected_color': self.selected_egg}
|
||||
self.next_surface = 'egg_select'
|
||||
|