05-17-2018, 03:36 AM
Hi again,
I have managed to use aiff, ogg for sound effects using...
sounds = Sound(number of channels, path)
sounds.load(name, file)
and
sounds.play(name, channel)
...with the python binding and was pleasantly supprised that I could use a mod from MilkyTracker v1.02 for some background music.
However I was wondering though, how do I use other SDL_mixer commands through the PySDL2 python binding?
Also a version of Tilengine with “bitmap-based background layers” sounds interesting.
If you release a version with “bitmap layers” could you also add a few more Keyboard Inputs for the python binding ie/ “SPACE”, “TAB” possidly “W,A, S,D” for people who have no Joystick or game controller pluged in? This would allow for coding “tln.Input.TAB” to switch Colour Cycling on & off (like many paint programs on the Amiga) and “tln.Input.SPACE” (Spacebar) for Jumps or Fire and “W,A,S,D” keys for another player. I’m afraid I don’t know how to do this through SDL2 & PySDL2 due to the same reason I don’t know how to use the PySDL2 python binding to add more SDL_mixer commands.
I hope this makes sense.
I have managed to use aiff, ogg for sound effects using...
sounds = Sound(number of channels, path)
sounds.load(name, file)
and
sounds.play(name, channel)
...with the python binding and was pleasantly supprised that I could use a mod from MilkyTracker v1.02 for some background music.
However I was wondering though, how do I use other SDL_mixer commands through the PySDL2 python binding?
Also a version of Tilengine with “bitmap-based background layers” sounds interesting.
If you release a version with “bitmap layers” could you also add a few more Keyboard Inputs for the python binding ie/ “SPACE”, “TAB” possidly “W,A, S,D” for people who have no Joystick or game controller pluged in? This would allow for coding “tln.Input.TAB” to switch Colour Cycling on & off (like many paint programs on the Amiga) and “tln.Input.SPACE” (Spacebar) for Jumps or Fire and “W,A,S,D” keys for another player. I’m afraid I don’t know how to do this through SDL2 & PySDL2 due to the same reason I don’t know how to use the PySDL2 python binding to add more SDL_mixer commands.
I hope this makes sense.