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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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