batframework 1.0.9a10__tar.gz → 1.0.9a12__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.
Files changed (87) hide show
  1. {batframework-1.0.9a10 → batframework-1.0.9a12}/LICENSE +20 -20
  2. {batframework-1.0.9a10 → batframework-1.0.9a12}/PKG-INFO +24 -17
  3. batframework-1.0.9a12/README.md +36 -0
  4. {batframework-1.0.9a10 → batframework-1.0.9a12}/pyproject.toml +13 -2
  5. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/__init__.py +2 -0
  6. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/action.py +280 -279
  7. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/actionContainer.py +105 -82
  8. batframework-1.0.9a12/src/batFramework/animatedSprite.py +81 -0
  9. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/animation.py +91 -77
  10. batframework-1.0.9a12/src/batFramework/audioManager.py +156 -0
  11. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/baseScene.py +249 -240
  12. batframework-1.0.9a12/src/batFramework/camera.py +245 -0
  13. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/constants.py +57 -51
  14. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/cutscene.py +239 -253
  15. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/cutsceneManager.py +34 -34
  16. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/drawable.py +107 -77
  17. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/dynamicEntity.py +30 -30
  18. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/easingController.py +58 -58
  19. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/entity.py +130 -130
  20. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/enums.py +171 -135
  21. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/fontManager.py +65 -65
  22. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/__init__.py +28 -25
  23. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/animatedLabel.py +90 -89
  24. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/button.py +17 -17
  25. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/clickableWidget.py +244 -245
  26. batframework-1.0.9a12/src/batFramework/gui/collapseContainer.py +98 -0
  27. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/constraints/__init__.py +1 -1
  28. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/constraints/constraints.py +1066 -980
  29. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/container.py +220 -201
  30. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/debugger.py +140 -130
  31. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/draggableWidget.py +63 -44
  32. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/image.py +61 -58
  33. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/indicator.py +116 -113
  34. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/interactiveWidget.py +243 -239
  35. batframework-1.0.9a12/src/batFramework/gui/label.py +147 -0
  36. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/layout.py +442 -426
  37. batframework-1.0.9a12/src/batFramework/gui/meter.py +155 -0
  38. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/radioButton.py +43 -35
  39. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/root.py +228 -228
  40. batframework-1.0.9a12/src/batFramework/gui/scrollingContainer.py +282 -0
  41. batframework-1.0.9a12/src/batFramework/gui/selector.py +232 -0
  42. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/shape.py +286 -276
  43. batframework-1.0.9a12/src/batFramework/gui/slider.py +353 -0
  44. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/style.py +10 -10
  45. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/styleManager.py +49 -54
  46. batframework-1.0.9a12/src/batFramework/gui/syncedVar.py +43 -0
  47. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/textInput.py +331 -306
  48. batframework-1.0.9a10/src/batFramework/gui/label.py → batframework-1.0.9a12/src/batFramework/gui/textWidget.py +308 -344
  49. batframework-1.0.9a12/src/batFramework/gui/toggle.py +140 -0
  50. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/tooltip.py +35 -30
  51. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/gui/widget.py +546 -521
  52. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/manager.py +131 -134
  53. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/particle.py +118 -118
  54. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/propertyEaser.py +79 -79
  55. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/renderGroup.py +34 -34
  56. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/resourceManager.py +130 -130
  57. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/scene.py +31 -31
  58. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/sceneLayer.py +134 -138
  59. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/sceneManager.py +200 -197
  60. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/scrollingSprite.py +115 -115
  61. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/sprite.py +46 -51
  62. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/stateMachine.py +49 -54
  63. batframework-1.0.9a12/src/batFramework/templates/__init__.py +2 -0
  64. batframework-1.0.9a12/src/batFramework/templates/character.py +15 -0
  65. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/templates/controller.py +158 -97
  66. batframework-1.0.9a12/src/batFramework/templates/stateMachine.py +39 -0
  67. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/tileset.py +46 -46
  68. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/timeManager.py +213 -213
  69. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/transition.py +162 -162
  70. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/triggerZone.py +22 -22
  71. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batFramework/utils.py +306 -306
  72. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batframework.egg-info/PKG-INFO +24 -17
  73. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batframework.egg-info/SOURCES.txt +5 -0
  74. batframework-1.0.9a10/README.md +0 -29
  75. batframework-1.0.9a10/src/batFramework/animatedSprite.py +0 -59
  76. batframework-1.0.9a10/src/batFramework/audioManager.py +0 -131
  77. batframework-1.0.9a10/src/batFramework/camera.py +0 -317
  78. batframework-1.0.9a10/src/batFramework/gui/meter.py +0 -96
  79. batframework-1.0.9a10/src/batFramework/gui/selector.py +0 -250
  80. batframework-1.0.9a10/src/batFramework/gui/slider.py +0 -397
  81. batframework-1.0.9a10/src/batFramework/gui/syncedVar.py +0 -49
  82. batframework-1.0.9a10/src/batFramework/gui/toggle.py +0 -128
  83. batframework-1.0.9a10/src/batFramework/templates/__init__.py +0 -1
  84. {batframework-1.0.9a10 → batframework-1.0.9a12}/setup.cfg +0 -0
  85. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batframework.egg-info/dependency_links.txt +0 -0
  86. {batframework-1.0.9a10 → batframework-1.0.9a12}/src/batframework.egg-info/requires.txt +0 -0
  87. {batframework-1.0.9a10 → batframework-1.0.9a12}/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.9a10
3
+ Version: 1.0.9a12
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
- Welcome to the `batFramework`. This README provides an overview of the game framework.
38
+ batFramework is a Python game framework built using Pygame, designed to simplify game development.
39
39
 
40
- ## batFramework
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
- The `batFramework` is a Python game development framework based on pygame, designed to streamline the process of creating 2D games. It provides a set of tools and components to handle scenes, transitions, cutscenes, audio, sprites, and more. The framework is built with flexibility in mind, allowing you to focus on game design while abstracting away low-level details.
43
+ ## Installation and Setup
44
+ To install batFramework, you can use pip:
45
+ ```pip install batFramework```
43
46
 
44
- ### Features
47
+ The only dependency required is pygame-ce.
45
48
 
46
- - Scene management
47
- - Cutscene support
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
- ### Explore batFramework
52
+ ```python
53
+ import batFramework as bf
55
54
 
56
- 1. Install Python (version 3.11 or higher) and the latest stable version of pygame-ce.
57
- 2. Clone or download this repository.
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
- For more detailed information on how to use the framework, refer to the documentation (if available) or explore the source code in the `batFramework` directory.
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.9a10"
7
+ version = "1.0.9a12"
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.9a12"
2
+
1
3
  import os
2
4
  import pygame
3
5
  import json