Skip to main content

A simple game framework to get started quickly with python and sfml.

Project description

pyNasNas

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

Other

A C++ version of NasNas is under development, you can check it out here

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.3.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

NasNas-0.1.3-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: NasNas-0.1.3.tar.gz
  • Upload date:
  • Size: 26.0 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.3.tar.gz
Algorithm Hash digest
SHA256 a27b646d71b3f0807e0c031501b3074bb6461ca52d15cb1102a5e8ad78c5f3c1
MD5 7b90f6cfe3423fea5b6b3a5cb535ad24
BLAKE2b-256 6c582615092e2b28ffcb1b2386c1b2b1f045e5f1608665ec62acdd6e219187db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: NasNas-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 35.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f2c7af14502c485111484f9f54d83951c8f775ceeba8713530b094b144b0dd14
MD5 0c7ca6b2217c34b21781bed9bc93b3b1
BLAKE2b-256 95f75699dce1056f19f847e473e3e3c3c3b341e2574fabfae9da25397db308ed

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