Re: Earwax

OK,
There's some on the docs, which are honestly a bit problematic because of a whole load of reasons I'll not bore you with.

I've pasted the features document below, as taken from docs/source/features.rst (which I appreciate isn't really good enough):

Implemented Features
  • Ability to separate disparate parts of a game into Level constructs.

  • Ability to push, pop, and replace Level instances on the central Game object.

  • Uses Pyglet’s event system, mostly eliminating the need for subclassing.

  • Uses Synthizer as its sound backend.

  • Both simple and advanced sound players, designed for playing interface sounds.

  • A flexible and unobtrusive configuration framework that uses yaml.

  • The ability to configure various apsects of the framework (including generic sound icons in menus), simply by setting configuration values on a configuration object which resides on your game object.

  • Various sound functions for playing sounds, and cleaning them up when they’re finished.

  • Different types of levels already implemented:

    1. Game board levels, so you can create board games with minimal boilerplate.

    2. Box levels, which contain boxes, which can be connected together to make maps. Both free and restricted movement commands are already implemented.

  • The ability to add actions to earwax.Level instances with keyboard keys, mouse buttons, joystick buttons, and joystick hat positions.

  • A text-to-speech system.

  • An earwax command which can currently create default games.

Feature Requests

If you need a feature that is not already on this list, please submit a feature request.

The following block of code is what is created with the command

earwax new

:

"""A game created by `earwax new test.py` on 2020-10-01 05:29:35.902580."""

from earwax import Game, Level, tts

from pyglet.window import Window, key

game: Game = Game(name='New Earwax Game')
window: Window = Window(caption=game.name)

level: Level = Level(game)


@level.action('Test', symbol=key.T, joystick_button=0)
def test_game() -> None:
    """Prove your new game works."""
    tts.speak('Earwax game working.')


@level.action('Quit', symbol=key.ESCAPE)
def do_quit() -> None:
    """Close the game window."""
    window.dispatch_event('on_close')


if __name__ == '__main__':
    game.run(window, initial_level=level)

If you want to know anything else, please let me know.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : NicklasMCHD via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : mechaSkyGuardian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Orin via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector

Reply via email to