Skip to main content

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

Metadata

Release files for NasNas 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NasNas 0.1.3
File Size Uploaded
NasNas-0.1.3.tar.gz 26.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for NasNas 0.1.3
File Interpreter ABI Platform
NasNas-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 61.4 kB

Release files / NasNas-0.1.3.tar.gz

Download URL NasNas-0.1.3.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a27b646d71b3f0807e0c031501b3074bb6461ca52d15cb1102a5e8ad78c5f3c1
BLAKE2b-256 checksum
How to use checksums
6c582615092e2b28ffcb1b2386c1b2b1f045e5f1608665ec62acdd6e219187db
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / NasNas-0.1.3-py3-none-any.whl

Download URL NasNas-0.1.3-py3-none-any.whl
Size 35.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2c7af14502c485111484f9f54d83951c8f775ceeba8713530b094b144b0dd14
BLAKE2b-256 checksum
How to use checksums
95f75699dce1056f19f847e473e3e3c3c3b341e2574fabfae9da25397db308ed
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

3 release files

0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page