Commit Graph

140 Commits

Author SHA1 Message Date
4045930bd9 updated data.py docstrings 2023-05-12 11:46:23 -04:00
d322949b5a changed unneeded attributes in SpriteSheet to regular variables in the constructor 2023-05-12 11:46:08 -04:00
b97d54f49d created new submodule to contain game elements 2023-05-12 11:44:58 -04:00
65365adc3d updated docstrings to follow google styling, changed checking of hardware to only happen once 2023-05-12 11:20:00 -04:00
f56f775541 renamed data_handler.py to data.py, renamed DataHandler class to SaveData 2023-05-11 18:03:51 -04:00
509efa7e23 fixed launching issue caused by incorrect resource reference 2023-05-11 18:00:25 -04:00
327f6cadee restructured directories to make more sense of modules and sub-modules 2023-05-11 17:59:06 -04:00
a8674f073e added documentation to input_handler.py 2023-05-11 15:31:36 -04:00
eff7f2c893 reformatted file 2023-05-11 15:28:21 -04:00
adfece1a32 fixed doc error 2023-05-11 15:28:11 -04:00
07aae2b075 deleted unused folder 2023-05-11 15:26:08 -04:00
bba0af4946 fixed selector not going back to previous color 2023-05-11 15:25:22 -04:00
dd621dbe7a added info screen 2023-05-11 15:24:17 -04:00
bbf549c024 moved around structure 2023-05-11 14:08:22 -04:00
ca9406aab8 removed old codebase from files 2023-05-11 14:06:26 -04:00
535aa993a5 renamed classes to io_helpers 2023-05-11 14:05:53 -04:00
4e14204392 added selection sprite, moved clock out of game.py and into individual screens 2023-05-11 14:03:16 -04:00
7b8898b77b added input_handler.py module to help with inputs 2023-05-11 14:01:02 -04:00
da5bacf950 removed old importing code 2023-05-11 13:24:25 -04:00
fd7e1b7492 added eggs on selection screen with animations 2023-05-11 13:23:55 -04:00
bbe97f0de7 added module sprites.py 2023-05-11 13:10:08 -04:00
296b6df4a0 title screen moves on now to sprite selection 2023-05-11 13:09:55 -04:00
2ffd9bd929 added title screen loading at launch 2023-05-11 12:20:07 -04:00
6f6eaa3c6d moved resources into surfaces folder, moved icons to games_files 2023-05-11 12:19:39 -04:00
d66d56630d added basic running from old game.py 2023-05-11 11:51:51 -04:00
7073bbb73c disabled dev menu launch arg 2023-05-11 11:24:42 -04:00
f1c83ade97 renamed old game.py file to start with rebuild 2023-05-11 11:02:08 -04:00
787c1cc252 created __init__.py in surfaces for importing 2023-05-11 10:40:57 -04:00
36487cad9e Added comments 2023-05-11 10:26:01 -04:00
2987bfa7ed Added title.py surface 2023-05-11 09:58:44 -04:00
Nick Dyer
47cbe15369 fixed typo: contentness to contentedness 2021-06-20 00:43:08 -04:00
Nick Dyer
3bcbec660e changed version to dev_0.0.3 2021-06-19 23:35:36 -04:00
Nick Dyer
8895e9f6be fixed formatting not following PEP standards 2021-06-19 23:35:15 -04:00
Nick Dyer
a203a14118 changed resolution back to 320x320 2021-06-19 23:32:01 -04:00
Nick Dyer
40983db230 aligned popup menu icons to look nicer 2021-06-19 23:31:19 -04:00
Nick Dyer
3e25d66e9a fixing documentation where "game" is replaced with "hardware" for some reason 2021-06-16 17:44:27 -04:00
Nick Dyer
307543e4f9 added submenu to the playground, added dummy class 'pet' for PlaygroundFriend 2021-06-16 03:43:51 -04:00
Nick Dyer
ab2c7dcb48 added many comments, fixed bloop movement in playground 2021-06-16 03:40:02 -04:00
Nick Dyer
1434303450 fixed the egg selector pointing to the wrong file 2021-06-16 03:38:47 -04:00
Nick Dyer
a457fb716c created MenuIcon and PopupMenu classes for implementation in the playground 2021-06-16 03:35:21 -04:00
Nick Dyer
5f326c8fda added dev_egg baby images 2021-06-16 03:23:14 -04:00
Nick Dyer
d16604c019 changed evolution_stage to a string rather than an int 2021-06-16 03:19:48 -04:00
Nick Dyer
c43563fc2c added frame image for popup menu 2021-06-16 01:51:06 -04:00
Nick Dyer
1a4560fea7 added json files for gui images 2021-06-16 01:50:52 -04:00
Nick Dyer
66f85947b4 fixed typo in dumbbell image file 2021-06-16 01:12:47 -04:00
Nick Dyer
95c8a48a6d created popup menu icons 2021-06-16 00:31:15 -04:00
Nick Dyer
10cc677286 renamed clock_selector.png to egg_selector.png, moved it to gui folder 2021-06-15 23:52:11 -04:00
Nick Dyer
522db7c01c changed rainbow bloop stats 2021-06-15 18:56:09 -04:00
Nick Dyer
4eef9353c7 removed button press speed limit when not on rpi 2021-06-15 18:55:24 -04:00
Nick Dyer
e0cf80dec9 changed some stats for dev_egg and blue 2021-06-13 14:54:13 -04:00
Nick Dyer
2115825baa added graphics textures 2021-06-13 14:53:55 -04:00
Nick Dyer
adb984600f updated rainbow bloop egg texture 2021-06-13 14:53:12 -04:00
Nick Dyer
4e77601afe added EggInfo class, added drawing contentness and metabolism stats on info screen 2021-06-13 14:52:04 -04:00
Nick Dyer
f084f0a4e6 changed values in egg personality jsons from 10 to 5 2021-06-12 23:11:54 -04:00
Nick Dyer
adaa2872bb changed SaveHandler and references to DataHandler, added update method to run game logic 2021-06-12 23:10:59 -04:00
Nick Dyer
15cf0fa9fd cleaned up some straggling unused code 2021-06-12 22:18:49 -04:00
Nick Dyer
a94b454048 changed sprite image loading to use sprite sheets 2021-06-12 22:17:53 -04:00
Nick Dyer
a31e2452c7 added SpriteSheet class 2021-06-12 22:16:54 -04:00
Nick Dyer
29ea40d874 transitioned to sprite sheets for egg sprites 2021-06-12 22:08:40 -04:00
Nick Dyer
b339454f40 added launch arg "--delete-save" to delete save file on launch 2021-06-12 22:06:48 -04:00
Nick Dyer
ef6ce5118c fixed mistake in stage calulation, age now ticks with time 2021-06-05 22:10:47 -04:00
Nick Dyer
b533cde549 added dev_egg.json 2021-06-05 19:13:14 -04:00
Nick Dyer
75aa07a370 fixed egg moving and other forms of bloop not 2021-06-05 19:12:55 -04:00
Nick Dyer
963f760160 implemented very basic playground gamestate 2021-06-05 19:12:22 -04:00
Nick Dyer
658e808f96 added beginning of PlaygroundFriend class 2021-06-05 19:12:02 -04:00
Nick Dyer
92c905e82b added additional information to the save file, renamed references of eggs to bloops 2021-06-05 18:32:51 -04:00
Nick Dyer
c5d07c8b1e changed lots of values to be based around the render resolution, changed animation to be a constant 2 FPS 2021-06-05 18:27:53 -04:00
Nick Dyer
6c52458f41 revised file structure to be more organized 2021-06-05 18:05:27 -04:00
Nick Dyer
99cfcf4b48 added contentness and metabolism value to eggs 2021-06-05 16:36:30 -04:00
Nick Dyer
ff57cf918f changed version number to 0.0.2, removed unused version tag in __main__.py 2021-06-05 00:08:56 -04:00
Nick Dyer
08014d8244 made info text show description of egg from its json file 2021-06-05 00:04:28 -04:00
Nick Dyer
639d552904 implemented new selection screen 2021-06-05 00:00:52 -04:00
Nick Dyer
9e4dfdc16d added arrows to scrolling, added arrow images 2021-06-04 23:59:10 -04:00
Nick Dyer
a4aa20e306 added scrolling to the InfoText class 2021-06-04 23:26:56 -04:00
Nick Dyer
a401c58d22 added the InfoText class to help with drawing large amounts of text on screen at a time. 2021-06-04 23:21:54 -04:00
Nick Dyer
92781747bc removed a statement that reset the selected egg to 0 once backing out of the info screen 2021-06-04 16:56:33 -04:00
Nick Dyer
ba4df78d35 egg now drawn on the description screen 2021-06-04 00:33:02 -04:00
Nick Dyer
4e0efbabd9 added description for the SelectionEgg, added .json files for each currently added egg 2021-06-04 00:15:01 -04:00
Nick Dyer
6d199b2e36 renamed FileHandler to SaveHandler 2021-06-04 00:05:57 -04:00
Nick Dyer
e2d202d076 removed all eggs but red, blue, and rainbow 2021-06-03 23:57:17 -04:00
Nick Dyer
7743dc4319 fixed script directory sometime returning empty 2021-05-30 00:34:07 -04:00
Nick Dyer
54814097d1 added game icon to window 2021-05-30 00:16:57 -04:00
Nick Dyer
00d435f8d0 title of window now displays version 2021-05-29 22:40:41 -04:00
Nick Dyer
067b24b87c updated README.md, changed version to "dev_0.0.1" 2021-05-29 22:38:34 -04:00
Nick Dyer
0b30950ff8 save file now stored in home directory 2021-05-29 22:30:12 -04:00
Nick Dyer
0d344a7995 moved resources folder inside of game folder 2021-05-29 22:17:57 -04:00
Nick Dyer
721cb1c3ab moved version tag to pocket_friends __init__.py 2021-05-29 22:17:22 -04:00
Nick Dyer
af7a4f0a80 changed some imports, blanked out all __init__.py files 2021-05-29 21:42:33 -04:00
Nick Dyer
4e7e37177b changed project file structure to better fit python standards 2021-05-29 20:08:15 -04:00
Nick Dyer
329c4a022c renamed data directory to pocket_friends to avoid conflict 2021-05-29 18:46:24 -04:00