batframework 1.0.9a11__tar.gz → 1.0.9a13__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {batframework-1.0.9a11 → batframework-1.0.9a13}/LICENSE +20 -20
- {batframework-1.0.9a11 → batframework-1.0.9a13}/PKG-INFO +24 -17
- batframework-1.0.9a13/README.md +36 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/pyproject.toml +13 -2
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/__init__.py +3 -11
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/action.py +280 -279
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/actionContainer.py +105 -82
- batframework-1.0.9a13/src/batFramework/animatedSprite.py +81 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/animation.py +91 -77
- batframework-1.0.9a13/src/batFramework/audioManager.py +156 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/baseScene.py +249 -240
- batframework-1.0.9a13/src/batFramework/camera.py +245 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/constants.py +57 -51
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/cutscene.py +239 -253
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/cutsceneManager.py +34 -34
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/drawable.py +107 -77
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/dynamicEntity.py +30 -30
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/easingController.py +58 -58
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/entity.py +130 -130
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/enums.py +171 -135
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/fontManager.py +65 -65
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/__init__.py +28 -25
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/animatedLabel.py +90 -89
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/button.py +17 -17
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/clickableWidget.py +244 -244
- batframework-1.0.9a13/src/batFramework/gui/collapseContainer.py +98 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/constraints/__init__.py +1 -1
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/constraints/constraints.py +1066 -980
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/container.py +220 -206
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/debugger.py +140 -130
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/draggableWidget.py +63 -44
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/image.py +61 -58
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/indicator.py +116 -113
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/interactiveWidget.py +243 -239
- batframework-1.0.9a13/src/batFramework/gui/label.py +147 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/layout.py +442 -429
- batframework-1.0.9a13/src/batFramework/gui/meter.py +155 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/radioButton.py +43 -35
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/root.py +228 -228
- batframework-1.0.9a13/src/batFramework/gui/scrollingContainer.py +282 -0
- batframework-1.0.9a13/src/batFramework/gui/selector.py +232 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/shape.py +286 -276
- batframework-1.0.9a13/src/batFramework/gui/slider.py +353 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/style.py +10 -10
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/styleManager.py +49 -54
- batframework-1.0.9a13/src/batFramework/gui/syncedVar.py +43 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/textInput.py +331 -306
- batframework-1.0.9a11/src/batFramework/gui/label.py → batframework-1.0.9a13/src/batFramework/gui/textWidget.py +308 -344
- batframework-1.0.9a13/src/batFramework/gui/toggle.py +140 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/tooltip.py +35 -30
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/gui/widget.py +546 -521
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/manager.py +131 -134
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/particle.py +118 -118
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/propertyEaser.py +79 -79
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/renderGroup.py +34 -34
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/resourceManager.py +130 -130
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/scene.py +31 -31
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/sceneLayer.py +134 -138
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/sceneManager.py +200 -197
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/scrollingSprite.py +115 -115
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/sprite.py +46 -51
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/stateMachine.py +49 -54
- batframework-1.0.9a13/src/batFramework/templates/__init__.py +2 -0
- batframework-1.0.9a13/src/batFramework/templates/character.py +15 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/templates/controller.py +158 -97
- batframework-1.0.9a13/src/batFramework/templates/stateMachine.py +39 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/tileset.py +46 -46
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/timeManager.py +213 -213
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/transition.py +162 -162
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/triggerZone.py +22 -22
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batFramework/utils.py +306 -306
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batframework.egg-info/PKG-INFO +24 -17
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batframework.egg-info/SOURCES.txt +5 -0
- batframework-1.0.9a11/README.md +0 -29
- batframework-1.0.9a11/src/batFramework/animatedSprite.py +0 -59
- batframework-1.0.9a11/src/batFramework/audioManager.py +0 -131
- batframework-1.0.9a11/src/batFramework/camera.py +0 -317
- batframework-1.0.9a11/src/batFramework/gui/meter.py +0 -96
- batframework-1.0.9a11/src/batFramework/gui/selector.py +0 -250
- batframework-1.0.9a11/src/batFramework/gui/slider.py +0 -397
- batframework-1.0.9a11/src/batFramework/gui/syncedVar.py +0 -49
- batframework-1.0.9a11/src/batFramework/gui/toggle.py +0 -128
- batframework-1.0.9a11/src/batFramework/templates/__init__.py +0 -1
- {batframework-1.0.9a11 → batframework-1.0.9a13}/setup.cfg +0 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batframework.egg-info/dependency_links.txt +0 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batframework.egg-info/requires.txt +0 -0
- {batframework-1.0.9a11 → batframework-1.0.9a13}/src/batframework.egg-info/top_level.txt +0 -0
@@ -1,21 +1,21 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) [2023] [TURAN BATURAY]
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) [2023] [TURAN BATURAY]
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
21
|
SOFTWARE.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: batframework
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.9a13
|
4
4
|
Summary: Pygame framework for making games easier.
|
5
5
|
Author-email: Turan Baturay <baturayturan@gmail.com>
|
6
6
|
License: MIT License
|
@@ -35,30 +35,37 @@ Requires-Dist: pygame-ce
|
|
35
35
|
|
36
36
|
# batFramework
|
37
37
|
|
38
|
-
|
38
|
+
batFramework is a Python game framework built using Pygame, designed to simplify game development.
|
39
39
|
|
40
|
-
##
|
40
|
+
## Purpose and Overview
|
41
|
+
The primary objective of batFramework is to streamline game development. It is mainly designed to program small 2D games
|
41
42
|
|
42
|
-
|
43
|
+
## Installation and Setup
|
44
|
+
To install batFramework, you can use pip:
|
45
|
+
```pip install batFramework```
|
43
46
|
|
44
|
-
|
47
|
+
The only dependency required is pygame-ce.
|
45
48
|
|
46
|
-
|
47
|
-
|
48
|
-
- Audio management (music and sound effects with volume control)
|
49
|
-
- Entity, sprite, and animated sprite handling
|
50
|
-
- Transition effects
|
51
|
-
- Utility modules (time management, constants, etc.)
|
52
|
-
- No external dependency except for pygame
|
49
|
+
## Usage Instructions
|
50
|
+
To create a basic app using batFramework, here's an example:
|
53
51
|
|
54
|
-
|
52
|
+
```python
|
53
|
+
import batFramework as bf
|
55
54
|
|
56
|
-
|
57
|
-
|
58
|
-
4. Explore the framework's modules in the `batFramework` directory and integrate them into your own game project.
|
55
|
+
# Initialize the framework
|
56
|
+
bf.init(resolution=(1280, 720), window_caption="My Amazing Program")
|
59
57
|
|
60
|
-
|
58
|
+
# Create a manager and a scene
|
59
|
+
bf.Manager(bf.Scene("main")).run()
|
60
|
+
```
|
61
|
+
In practice, users can inherit bf.Scene to create their own scenes, adding specific behaviors, entities, etc.
|
61
62
|
|
63
|
+
## Features and Functionalities
|
62
64
|
|
65
|
+
For more detailed information, please refer to the [documentation](https://batframework.github.io/batDocumentation/).
|
66
|
+
|
67
|
+
|
68
|
+
# License
|
69
|
+
MIT License
|
63
70
|
|
64
71
|
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# batFramework
|
2
|
+
|
3
|
+
batFramework is a Python game framework built using Pygame, designed to simplify game development.
|
4
|
+
|
5
|
+
## Purpose and Overview
|
6
|
+
The primary objective of batFramework is to streamline game development. It is mainly designed to program small 2D games
|
7
|
+
|
8
|
+
## Installation and Setup
|
9
|
+
To install batFramework, you can use pip:
|
10
|
+
```pip install batFramework```
|
11
|
+
|
12
|
+
The only dependency required is pygame-ce.
|
13
|
+
|
14
|
+
## Usage Instructions
|
15
|
+
To create a basic app using batFramework, here's an example:
|
16
|
+
|
17
|
+
```python
|
18
|
+
import batFramework as bf
|
19
|
+
|
20
|
+
# Initialize the framework
|
21
|
+
bf.init(resolution=(1280, 720), window_caption="My Amazing Program")
|
22
|
+
|
23
|
+
# Create a manager and a scene
|
24
|
+
bf.Manager(bf.Scene("main")).run()
|
25
|
+
```
|
26
|
+
In practice, users can inherit bf.Scene to create their own scenes, adding specific behaviors, entities, etc.
|
27
|
+
|
28
|
+
## Features and Functionalities
|
29
|
+
|
30
|
+
For more detailed information, please refer to the [documentation](https://batframework.github.io/batDocumentation/).
|
31
|
+
|
32
|
+
|
33
|
+
# License
|
34
|
+
MIT License
|
35
|
+
|
36
|
+
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "batframework"
|
7
|
-
version = "1.0.
|
7
|
+
version = "1.0.9a13"
|
8
8
|
license = { file = "LICENSE" }
|
9
9
|
authors = [
|
10
10
|
{ name="Turan Baturay", email="baturayturan@gmail.com" }
|
@@ -22,4 +22,15 @@ dependencies=[
|
|
22
22
|
]
|
23
23
|
|
24
24
|
[project.urls]
|
25
|
-
"Homepage" = "https://github.com/TuranBaturay/batFramework"
|
25
|
+
"Homepage" = "https://github.com/TuranBaturay/batFramework"
|
26
|
+
|
27
|
+
[tool.commitizen]
|
28
|
+
name = "cz_conventional_commits"
|
29
|
+
version_provider = "pep621"
|
30
|
+
tag_format = "$version"
|
31
|
+
update_changelog_on_bump = true
|
32
|
+
changelog_file = "CHANGELOG.md"
|
33
|
+
version_files = [
|
34
|
+
"pyproject.toml:version",
|
35
|
+
"src/batFramework/__init__.py:__version__"
|
36
|
+
]
|
@@ -1,3 +1,5 @@
|
|
1
|
+
__version__="1.0.9a13"
|
2
|
+
|
1
3
|
import os
|
2
4
|
import pygame
|
3
5
|
import json
|
@@ -51,17 +53,7 @@ def init_screen(resolution: tuple[int, int], flags: int = 0, vsync: int = 0):
|
|
51
53
|
|
52
54
|
|
53
55
|
def print_version():
|
54
|
-
|
55
|
-
version_file = os.path.join(os.path.dirname(__file__), "version.json")
|
56
|
-
try:
|
57
|
-
with open(version_file, "r") as f:
|
58
|
-
version_data = json.load(f)
|
59
|
-
version = version_data.get("version", "unknown")
|
60
|
-
print(f"BatFramework version: {version}")
|
61
|
-
except FileNotFoundError:
|
62
|
-
print(f"Version file not found: {version_file}")
|
63
|
-
except json.JSONDecodeError:
|
64
|
-
print(f"Error decoding version file: {version_file}")
|
56
|
+
print(f"BatFramework version: {__version__}")
|
65
57
|
|
66
58
|
def init(
|
67
59
|
resolution: tuple[int, int],
|