A simple game framework to get started quickly with python and sfml.
Project description
NasNas
A simple game framework to get started quickly with python and sfml.
Features :
- Automatic resource loader and manager system
- Scene and Layers system
- Entities, sprites and animations
- Cameras
- Text and bitmap fonts
- Tiled map loader (.tmx)
- Debug text display in-game
- Transitions
In progress :
- Menus and UI
To do :
- Splash screens
- Levels and game events management
- In-game command line for debugging
- Particles system
Install
From pip
python3 -m pip install NasNas
Then you can import NasNas anywhere in your projects
import NasNas as ns
From source
Download and extract the repository. Then run
python3 setup.py install
Local install
Let's say your project has the following structure
YourProject
|_ assets
|_ src
main.py
Download the repository and copy the NasNas folder into your project src folder.
YourProject
|_ assets
|_ src
|_ NasNas
main.py
Then you can, import NasNas with:
import src.NasNas as ns
Get started
Visit the wiki to get started.
You can also take a look at the example project to see how to use it.
Be sure to run run_example.py from example folder like this : python3 ../run_example.py
Author
- Modar Nasser
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file NasNas-0.1.1.tar.gz
.
File metadata
- Download URL: NasNas-0.1.1.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c86eafbdee48ae54b7a1df65dd12961327580dcb36ffadca8c2bc9f23887b5b4 |
|
MD5 | c770aa79792f4bdee4e834bbf10fe3bf |
|
BLAKE2b-256 | ebac93369277fc56f5181f94243eb110eb68d7c94df0e259c9f1eb334afeee22 |
File details
Details for the file NasNas-0.1.1-py3.8.egg
.
File metadata
- Download URL: NasNas-0.1.1-py3.8.egg
- Upload date:
- Size: 91.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 490a541a8edb15a707dfd448c87dd4eaf9b7f94272676a40675422279f822dc1 |
|
MD5 | 41a83e6e8ec0c95f66503cc6b61d1468 |
|
BLAKE2b-256 | ff1a5982e3d20692c494eef189f274e7e5aa683cf7f20bb2ac31ef3fc1621df8 |
File details
Details for the file NasNas-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: NasNas-0.1.1-py3-none-any.whl
- Upload date:
- Size: 35.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd12f48be858cb889acf898d922ce5af00befef547abb4bdeb8a2f80f3820e78 |
|
MD5 | ff4038c4f1ffa395d23ef510364aa950 |
|
BLAKE2b-256 | 08eb071cc681bb103a1c3da4fdc0e4cea9f543c3b574140703db0de1ade07c9c |