restructured directories to make more sense of modules and sub-modules

This commit is contained in:
2023-05-11 17:59:06 -04:00
parent a8674f073e
commit 327f6cadee
61 changed files with 97 additions and 110 deletions

View File

@@ -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

View File

@@ -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
}

View File

@@ -1,5 +0,0 @@
{
"description": "Dev egg description",
"contentedness": 4,
"metabolism": 4
}

View File

@@ -1,5 +0,0 @@
{
"description": "Rainbow egg description",
"contentedness": 5,
"metabolism": 4
}

View File

@@ -1,5 +0,0 @@
{
"description": "Red egg description",
"contentedness": 5,
"metabolism": 5
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 610 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 820 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 740 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 736 B

View File

@@ -1,5 +0,0 @@
{
"width": 17,
"height": 17,
"frames": 17
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -1,5 +0,0 @@
{
"width": 14,
"height": 10,
"frames": 16
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 B

View File

@@ -1,5 +0,0 @@
{
"width": 17,
"height": 17,
"frames": 16
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 565 B

View File

@@ -1,5 +0,0 @@
{
"width": 17,
"height": 17,
"frames": 48
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

View File

@@ -1,5 +0,0 @@
{
"width": 17,
"height": 17,
"frames": 1
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 864 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

View File

@@ -1,5 +0,0 @@
{
"width": 9,
"height": 10,
"frames": 2
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 419 B

View File

@@ -1,5 +0,0 @@
{
"width": 11,
"height": 6,
"frames": 2
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 268 B

View File

@@ -1,5 +0,0 @@
{
"width": 12,
"height": 8,
"frames": 2
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 350 B

View File

@@ -1,5 +0,0 @@
{
"width": 11,
"height": 8,
"frames": 2
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 235 B

View File

@@ -1,5 +0,0 @@
{
"width": 11,
"height": 9,
"frames": 2
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -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'