# Pygame Core
This is a basic application skeleton for creating games or applications using the Pygame library. It provides a starting point for developers to build upon, offering key components like a game loop, event handling, and scheduled events. The structure is intentionally simple to allow for easy customization.
## Usage
1. **Initialize the Core**: Create a class that extends the Core class
```python
class MyClass(Core):
def __init__(self):
super().__init__()
...
```
2. **Implement Your Game Logic**: Override methods like `check_event`, `update`, and `draw` to implement your game or application logic.
3. **Run Your Application**: Start your application by calling the `run()` method on the `Core` instance.
```python
core.run()
```
4. **Scheduled Events**: You can schedule events to execute at specific intervals using the `set_interval()` and `set_timeout()` methods provided by the `Core` class.
```python
event = core.set_interval(interval, function, *args, **kwargs)
event = core.set_timeout(interval, function, *args, **kwargs)
```
## Customization
Feel free to extend and customize the code to suit your specific project requirements. Replace the placeholder methods with your game or application logic. This structure is intentionally kept minimal to give you full control over your project.
## Contributions
If you find this code useful and want to contribute improvements or features, please consider sharing your enhancements with the community.
## License
This code is provided under the [MIT License](LICENSE).
Raw data
{
"_id": null,
"home_page": "",
"name": "pygame-core",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "pygame",
"author": "Vinicius Putti Morais",
"author_email": "viniputtim@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/70/8e/9283740b7f1fccb3f77f715133e719ca540045d8004e080b8b48dee12d43/pygame_core-1.0.0.tar.gz",
"platform": null,
"description": "# Pygame Core\n\nThis is a basic application skeleton for creating games or applications using the Pygame library. It provides a starting point for developers to build upon, offering key components like a game loop, event handling, and scheduled events. The structure is intentionally simple to allow for easy customization.\n\n## Usage\n\n1. **Initialize the Core**: Create a class that extends the Core class\n\n```python\nclass MyClass(Core):\n\n def __init__(self):\n super().__init__()\n ...\n```\n\n2. **Implement Your Game Logic**: Override methods like `check_event`, `update`, and `draw` to implement your game or application logic.\n\n3. **Run Your Application**: Start your application by calling the `run()` method on the `Core` instance.\n\n```python\ncore.run()\n```\n\n4. **Scheduled Events**: You can schedule events to execute at specific intervals using the `set_interval()` and `set_timeout()` methods provided by the `Core` class.\n\n```python\nevent = core.set_interval(interval, function, *args, **kwargs)\nevent = core.set_timeout(interval, function, *args, **kwargs)\n```\n\n## Customization\n\nFeel free to extend and customize the code to suit your specific project requirements. Replace the placeholder methods with your game or application logic. This structure is intentionally kept minimal to give you full control over your project.\n\n## Contributions\n\nIf you find this code useful and want to contribute improvements or features, please consider sharing your enhancements with the community.\n\n## License\n\nThis code is provided under the [MIT License](LICENSE).\n\n\n",
"bugtrack_url": null,
"license": "MIT license",
"summary": "Simple Core class for pygame",
"version": "1.0.0",
"project_urls": null,
"split_keywords": [
"pygame"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "708e9283740b7f1fccb3f77f715133e719ca540045d8004e080b8b48dee12d43",
"md5": "a2612967ae49552646487902f6a63615",
"sha256": "acb8eeabe44e21170404ac4a72b8cd755bde0fd53e9c27b83ca3d795b8ec91bd"
},
"downloads": -1,
"filename": "pygame_core-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "a2612967ae49552646487902f6a63615",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5280,
"upload_time": "2023-10-11T17:45:01",
"upload_time_iso_8601": "2023-10-11T17:45:01.364405Z",
"url": "https://files.pythonhosted.org/packages/70/8e/9283740b7f1fccb3f77f715133e719ca540045d8004e080b8b48dee12d43/pygame_core-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-11 17:45:01",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pygame-core"
}