This repository has been archived by the owner on Dec 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added changelog and added docs how to use codon
- Loading branch information
Showing
8 changed files
with
75 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 3.0.0 Todo/Changelog | ||
|
||
- [x] Engine | ||
- [x] Window | ||
- [x] Create window | ||
- [x] Get data from window | ||
- [x] Draw shapes | ||
- [x] Draw images | ||
- [x] Input | ||
- [x] Storage system | ||
- [x] Rendering options | ||
- [x] Delta-Time | ||
- [x] Pip package and SetupTools | ||
- [x] Cython | ||
- [x] Implement cython for extra speed | ||
- [x] Dev version without cython | ||
- [x] Vectors (stores x and y coordinates) | ||
- [x] Create vector | ||
- [x] GUI library | ||
- [x] Text | ||
- [x] Drawing (Build in draw function) | ||
- [x] Buttons | ||
- [x] Sound system | ||
- [x] Sound player | ||
- [x] File support | ||
- [x] And more... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# 4.0.0 Todo/Changelog | ||
|
||
- [ ] UI (Using TKinter) | ||
- [ ] Menu | ||
- [ ] Create project | ||
- [ ] Editor | ||
- [ ] Code editor build in | ||
- [ ] Run game | ||
|
||
- [ ] Physics system using PyMunk | ||
- [ ] Gravity | ||
- [ ] Rendering | ||
- [ ] Collision system | ||
- [ ] Physics shapes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# External tools | ||
|
||
## Using pygame | ||
If you cant find some function you need in this engine, the you could use pygame as the engine is build on pygame. You dont need to import pygame, as that can make so issues, you just use: | ||
```python | ||
fusion.pg | ||
``` | ||
Make sure your not using main (the initialized class) but the module itself. | ||
|
||
## Using Codon Compiler | ||
So you heard of [codon](https://docs.exaloop.io/codon/), a python compiler with can compile your python code to machine code, which makes your code a lot faster But how do you use it? Well, its easy! You just install it and then modify these things in your code: | ||
|
||
Loop: | ||
You need to modify our loop to support codon, so you need to change it to this: | ||
```python | ||
while main.window.running(window): | ||
... # Your own loop thing | ||
``` | ||
You may reconise this type of while loop from the main wiki as your second option. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from python import fusionengine as fusion | ||
|
||
|
||
main = fusion.Main() | ||
|
||
window = main.window.new_window("Example: 1", 600, 600) | ||
image = main.image.open_image(window, main.debug.DEBUGIMAGE, 0, 0, 600, 600) | ||
|
||
while main.window.running(window): | ||
main.image.draw_image(image) |