Skip to main content

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

NasNas-0.1.2.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

NasNas-0.1.2-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

Details for the file NasNas-0.1.2.tar.gz.

File metadata

  • Download URL: NasNas-0.1.2.tar.gz
  • Upload date:
  • Size: 25.7 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

Hashes for NasNas-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b20ffc16dd971aad3b3c3751f97b49c8dd21f3dd9271f7a999d95afa1afcee6e
MD5 740ff76e3b260e1975f48795c1f23b65
BLAKE2b-256 8f8d7a6f38a3ba626d0336dd9a1f46cd2b8029f066ee4440c4e0fb5c72391e07

See more details on using hashes here.

File details

Details for the file NasNas-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: NasNas-0.1.2-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

Hashes for NasNas-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f2037c1dd702fee1c7c111fc99a75fa530d3403e33daec5d4e19d536dbdcc1f7
MD5 2c81641f8c7d5367fe3167a0572a4731
BLAKE2b-256 4f5a5858078181f3c9e519cd0fb1cf415350573af527c6b6f12a2ba9882feb62

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page