From a6663679a188daf8a289cac64fbbbf101c95ef30 Mon Sep 17 00:00:00 2001 From: Leon Grothus <leon.grothus@gmail.com> Date: Sun, 4 Feb 2024 22:47:40 +0100 Subject: [PATCH] smaller reformating and added open source licence --- README.md | 9 +++++++++ data/data.png | Bin 92 -> 0 bytes source/api/components/rigidbody.py | 1 - source/api/management/background_manager.py | 1 - source/api/ui/button.py | 1 - source/api/ui/button_style.py | 2 -- source/api/ui/panel.py | 2 -- source/api/ui/slider.py | 1 - source/game/scenes/main_menu.py | 2 +- source/game/scenes/main_pinball.py | 1 - source/game/scenes/submenus/end_menu.py | 1 - 11 files changed, 10 insertions(+), 11 deletions(-) delete mode 100644 data/data.png diff --git a/README.md b/README.md index 2f85cc7..d09eaed 100644 --- a/README.md +++ b/README.md @@ -49,3 +49,12 @@ The sound effects in this game were created using [Sfxr](http://www.drpetter.se/ ## Project Status This project was developed as a university project and is currently considered finished. There are numerous issues with the implementation of the Entity Component System (ECS) that would require major refactoring to resolve. As such, further development has been halted. If you wish to fork this project or volunteer to maintain or own it, you are welcome to do so. + +## Dependencies + +This project uses the following Python libraries: + +- `os`: For operating system dependent functionality. +- `pathlib`: For object-oriented filesystem paths. +- `random`: For generating random numbers. +- `pygame`: For creating the game, including graphics and sound. \ No newline at end of file diff --git a/data/data.png b/data/data.png deleted file mode 100644 index af087751117087b6c797315bb33c3d10aa53c351..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 92 zcmeAS@N?(olHy`uVBq!ia0vp^k|4|oBpBXI+Hnp@DSNs&hE&W+PT27Oz=0zN4m9`~ p{Q2Lm*fu}mM`FA4qyLO=gcuGlVe^sxD6a|9=IQF^vd$@?2>{3*9?Sp$ diff --git a/source/api/components/rigidbody.py b/source/api/components/rigidbody.py index 85cca26..44954aa 100644 --- a/source/api/components/rigidbody.py +++ b/source/api/components/rigidbody.py @@ -1,6 +1,5 @@ import math from pygame import Vector2 -import pygame from source.api.components.collider import CircleCollider, Collider, PolygonCollider from source.api.components.component import Component from source.api.objects.game_object import GameObject diff --git a/source/api/management/background_manager.py b/source/api/management/background_manager.py index adc780c..f022cea 100644 --- a/source/api/management/background_manager.py +++ b/source/api/management/background_manager.py @@ -1,7 +1,6 @@ import os from pathlib import Path import pygame -import time class BackgroundManager: """ diff --git a/source/api/ui/button.py b/source/api/ui/button.py index 12095e4..fb23337 100644 --- a/source/api/ui/button.py +++ b/source/api/ui/button.py @@ -1,4 +1,3 @@ -from pathlib import Path from typing import Callable from pygame import Color, Surface import pygame diff --git a/source/api/ui/button_style.py b/source/api/ui/button_style.py index 5605428..d35ea8c 100644 --- a/source/api/ui/button_style.py +++ b/source/api/ui/button_style.py @@ -1,9 +1,7 @@ import math import os -import numpy as np import pygame from pygame import Surface -import pygame.surfarray as surfarray from pathlib import Path from typing import Tuple diff --git a/source/api/ui/panel.py b/source/api/ui/panel.py index 00b2939..89731ba 100644 --- a/source/api/ui/panel.py +++ b/source/api/ui/panel.py @@ -1,5 +1,3 @@ -import math -from pathlib import Path from pygame import Surface import pygame from pygame.freetype import Font diff --git a/source/api/ui/slider.py b/source/api/ui/slider.py index 6efcf01..11ec584 100644 --- a/source/api/ui/slider.py +++ b/source/api/ui/slider.py @@ -1,4 +1,3 @@ -from pathlib import Path from pygame import Surface import pygame from source.api.ui.button_style import ButtonStyle diff --git a/source/game/scenes/main_menu.py b/source/game/scenes/main_menu.py index e895d08..616c167 100644 --- a/source/game/scenes/main_menu.py +++ b/source/game/scenes/main_menu.py @@ -2,7 +2,7 @@ from pathlib import Path import sys from turtle import left from webbrowser import BackgroundBrowser -from pygame import Color, Surface, Vector2 +from pygame import Surface import pygame from source.api.management.background_manager import BackgroundManager from source.api.management.image_manager import ImageManager diff --git a/source/game/scenes/main_pinball.py b/source/game/scenes/main_pinball.py index cf2ced6..a5d6850 100644 --- a/source/game/scenes/main_pinball.py +++ b/source/game/scenes/main_pinball.py @@ -1,4 +1,3 @@ -import math from pathlib import Path from pygame import Color, Surface from pygame import Vector2 as V2 diff --git a/source/game/scenes/submenus/end_menu.py b/source/game/scenes/submenus/end_menu.py index e1ab98e..2d9af08 100644 --- a/source/game/scenes/submenus/end_menu.py +++ b/source/game/scenes/submenus/end_menu.py @@ -1,5 +1,4 @@ import sys -from typing import Callable from pygame import Surface import pygame from pygame.event import Event -- GitLab