Pygaming

Latest version: v0.6.0

Safety actively analyzes 688746 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.6.0

The new version introduces lazy loading and transformations for arts. It removes support for pygame.Surface and transform AnimatedSurface into Art. Geometric shapes are now Arts as well. Add transformation classes to transform an art: rotations, scaling, slowing down, set introduction, colors, and combination with other arts ....
The algorithm to get the surface is also modified. Every Element has now a make_surface() method that will create a new surface, and a notify_change() that will make the element's parent that a new computation is needed. This method is called when the surface has changed.
get_surface now has a defined behavior: if has_changed => last_surface = make_surface; return last_surface

0.5.0

The v0.5.0 introduces some new changes:
- A better way to manage sounds: They are loaded in the soundbox at the beginning of the phase and not at game launch anymore. Then, we access them through the soundbox.play_sound('sound_name'). There has also been some improvement in the playlists.
- SoundFiles and MusicFiles have been removed
- Introductions of colors with darken and lighten methods, saturate and desaturate methods, and support for short HTML colors and named colors
- Introduction of the typewriter to manage the fonts and generate the texts. Add support for multi-line texts. Fonts are also loaded at the beginning of the phase and not a game launch.
- FontFIles have been removed
- a few bugs have been corrected
- Speeches are now part of the soundbox
- Texts are now part of the typewriter

0.4.0

0.3.0

A few changes appear: The input is managed separately through mouse and keyboard. Clicks are better handled. a few feature modifications

0.2.0

New version with bug fixed, a few new features, modification on how to create the images and backgrounds

0.1.0

First-ever release
Users can create games offline and online by simply creating phases and transitions.

Games include database management, music, sound playing, and language management for speeches and texts. Settings, inputs, network communication with a server and file management.

Servers include communication with several players (games) at the same time, database management

Both include clocks, configs and a logger.

How to create a game?

First, execute 'pygaming init' to create the template repository.

Then, you need to define as many phases as your game might have, including lobbies, leaderboards etc., for both the game and the server (if the game is online). You should also define transitions between them.

Finally, create a Game instance (and a Server instance) to which you add phases and transitions

execute 'pygaming build [your game's name]' to create a .exe file to distribute!

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.