Skip to content

Commit

Permalink
Rename github, and some basic setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkauzh committed Feb 1, 2024
1 parent c7c5e0c commit 32df492
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pip install --user pdm
```
PDM will manage everything for us, like virtual enviorments, packages and scripts.

Then, fork [the repository](https://github.com/fusionengine-org/fusion-engine) to your profile.
Then, fork [the repository](https://github.com/fusionengine-org/fusion) to your profile.

Then, clone your forked github repository:
```bash
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<a href="https://pypi.org/project/fusion-engine"><img alt="PyPI - License" src="https://img.shields.io/pypi/l/fusion-engine?color=blue"></a>
<a href="https://pypi.org/project/fusion-engine"><img alt="PyPI - Status" src="https://img.shields.io/pypi/status/fusion-engine?color=blue"></a>
<a href="https://pypi.org/project/fusion-engine"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/fusion-engine?color=blue"></a>
<a href="https://github.com/fusionengine-org/fusion-engine/graphs/contributors"><img alt="GitHub contributors" src="https://img.shields.io/github/contributors/fusionengine-org/fusion-engine?color=blue"></a>
<a href="https://github.com/fusionengine-org/fusion-engine"><img alt="Lines of code" src="https://www.aschey.tech/tokei/github/fusionengine-org/fusion-engine"></a>
<a href="https://github.com/fusionengine-org/fusion/graphs/contributors"><img alt="GitHub contributors" src="https://img.shields.io/github/contributors/fusionengine-org/fusion?color=blue"></a>
<a href="https://github.com/fusionengine-org/fusion"><img alt="Lines of code" src="https://www.aschey.tech/tokei/github/fusionengine-org/fusion"></a>
</p>


Expand Down Expand Up @@ -49,7 +49,7 @@ if you want to install the package from source and get the latest changes then y
```

### 🏃‍♂️ Run example
The examples are located [here](https://github.com/fusionengine-org/fusion-engine/tree/main/src/fusionengine/examples)
The examples are located [here](https://github.com/fusionengine-org/fusion/tree/main/src/fusionengine/examples)
If you want to run the example, then follow these instructions:

1. First, make sure you have fusion engine installed.
Expand Down Expand Up @@ -90,11 +90,11 @@ This project began May 1, 2023. The original project began in C, but it's entire

### ⭐ Star History

<a href="https://api.star-history.com/svg?repos=fusionengine-org/fusion-engine&Timeline">
<a href="https://api.star-history.com/svg?repos=fusionengine-org/fusion&Timeline">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=fusionengine-org/fusion-engine&type=Timeline&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=fusionengine-org/fusion-engine&type=Timeline" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=fusionengine-org/fusion-engine&type=Timeline" />
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=fusionengine-org/fusion&type=Timeline&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=fusionengine-org/fusion&type=Timeline" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=fusionengine-org/fusion&type=Timeline" />
</picture>
</a>

Expand Down
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hide:
---

<p align="center">
<img src="v5/assets/logo/fusion-banner.png" alt="logo" width="1000" height="800">
<img src="assets/logo/fusion-banner.png" alt="logo" width="1000" height="800">
</p>


Expand All @@ -15,8 +15,8 @@ hide:
<a href="https://pypi.org/project/fusion-engine"><img alt="PyPI - License" src="https://img.shields.io/pypi/l/fusion-engine?color=blue"></a>
<a href="https://pypi.org/project/fusion-engine"><img alt="PyPI - Status" src="https://img.shields.io/pypi/status/fusion-engine?color=blue"></a>
<a href="https://pypi.org/project/fusion-engine"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/fusion-engine?color=blue"></a>
<a href="https://github.com/fusionengine-org/fusion-engine/graphs/contributors"><img alt="GitHub contributors" src="https://img.shields.io/github/contributors/fusionengine-org/fusion-engine?color=blue"></a>
<a href="https://github.com/fusionengine-org/fusion-engine"><img alt="Lines of code" src="https://www.aschey.tech/tokei/github/fusionengine-org/fusion-engine"></a>
<a href="https://github.com/fusionengine-org/fusion/graphs/contributors"><img alt="GitHub contributors" src="https://img.shields.io/github/contributors/fusionengine-org/fusion?color=blue"></a>
<a href="https://github.com/fusionengine-org/fusion"><img alt="Lines of code" src="https://www.aschey.tech/tokei/github/fusionengine-org/fusion"></a>
</p>


Expand Down
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
site_name: Fusion Engine Documentation
site_description: A custom open-source game engine on OpenGL and Python, it’s written in pure Python! It’s easy and fast!

repo_name: fusion-engine
repo_url: https://github.com/fusionengine-org/fusion-engine
repo_name: fusionengine-org/fusion
repo_url: https://github.com/fusionengine-org/fusion

nav:
- Home: 'index.md'
Expand Down
26 changes: 26 additions & 0 deletions src/fusionengine/engine/nodes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from fusionengine.engine.physics import Staticbody
from fusionengine.engine.vector import Vector2D


class Node:
def __init__(
self,
x: int,
y: int,
node_type,
body_type=Staticbody,
):
self.x = x
self.y = y
self.x = node_type.x
self.y = node_type.y
self.body_type = body_type
self.node_type = node_type

pass

def get_coord_tuple(self) -> tuple[int, int]:
return self.x, self.y

def get_vec2_coord(self) -> Vector2D:
return Vector2D(self.x, self.y)
8 changes: 8 additions & 0 deletions src/fusionengine/engine/physics.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class Rigidbody:
def __init__(self):
pass


class Staticbody:
def __init__(self):
pass
27 changes: 27 additions & 0 deletions tests/performance.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import fusionengine as fusion
import time

checked_time = False
start_time = time.time()

window = fusion.Window("test", 600, 600)


if fusion.__version__ == "5.1.0" or fusion.__version__ == "5.0.0":
image = fusion.Image(fusion.DEBUGIMAGE, 0, 0, 600, 600)

else:
image = fusion.Image(window, fusion.DEBUGIMAGE, 0, 0, 600, 600)


@window.loop
def loop():
global checked_time
image.draw()

if not checked_time:
end_time = time.time()
elapsed_time = end_time - start_time

print(elapsed_time)
checked_time = True

0 comments on commit 32df492

Please sign in to comment.