Re: Audio wrapper for Python
@14If you want to generate a random audio sample, there are tools and methods for doing that. If you want to play one of a set of sounds randomly, then how you imagine it is exactly how you'd do it. You could pack it all into one line though like so:self.player
Re: Audio wrapper for Python
@22Hm? In your example, you should already have to tap the left or right keys to move one step in either direction. Or is it that you want to limit the speed at which a person can tap, and thus move in a given direction?
URL: https://forum.audiogames.net/post/5
Re: Audio wrapper for Python
Hmm, I see. If thats the goal then you'd probably need to track when a button is held with a variable and run it in the main loop. Something like this:import pygame
from pygame import mixer
import sys
class Player:
def __init__(self):
self.x = 0
Re: Audio wrapper for Python
Hmm, I see. If thats the goal then you'd probably need to track when a button is held with a variable and run it in the main loop. Something like this:import pygame
from pygame import mixer
import sys
class Player:
def __init__(self):
self.x = 0
Re: Audio wrapper for Python
Oops! ambro86 is right, the [mixer.music] functions do support position control. But theres a few caveats, music played like this is streamed only from the mixer itself, and the mixer can only stream one track at a time. There also doesn't seem to be a function
Re: Audio wrapper for Python
Oops! ambro86 is right, the [mixer.music] functions do support position control. But theres a few caveats, music played like this is streamed only from the mixer itself, and the mixer can only stream one track at a time. There also doesn't seem to be a function
Re: python auto updater
[PyUpdater]
URL: https://forum.audiogames.net/post/526859/#p526859
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Problems installing lambda moo extensions
Hm... What extensions are you trying to install specifically?
URL: https://forum.audiogames.net/post/527452/#p527452
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bi
Re: Problems installing lambda moo extensions
Hmmm... The link to the Martian's MOO Extensions is still up, but looks unmaintained. The source codes there though, digging into a few of the files i'm seeing imports for [lambdamoo server] scripts. I think camlorns right, you may need to patch
Re: Image Module In python Question
The declarations may be case sensitive, so you may need to import PIL in all caps, Image with a capitol I, etc. From the examples the declarations of opening a file would look like this:from PIL import Image
img = Image.open("your_image.jpg")
img.show()T
Re: UI Screen reader support
@12[Universal Speech]? There also seems to already be some Rust bindings with [Tolk-rs]. If you want you can grab the last working Tolk binary distro you can find the link in post 4. As for 1077/0x2, from what I can find [here] and [here] its a fail execution wi
Re: Audio wrapper for Python
The pygame documentation mentions set_pos and get_pos, but whats in the documentation and whats actually implemented in the API can be two different things, which is one of the chronic problems with libraries like wxPython. I think there may be a newer version o
Re: Audio wrapper for Python
Challenges like this can crop up in any language, its all part of the fun, heh. Part of what I meant is that I don't have the latest version of pygame, so have to rely on the documentation for this. The example I posted was based off that documentation and shoul
Re: Audio wrapper for Python
Challenges like this can crop up in any language, its all part of the fun, heh. Part of what I meant is that I don't have the latest version of pygame, so have to rely on the documentation for this. The example I posted was based off that documentation and shoul
Re: Why do people still use bgt?
The Indie scene is generally populated by people who got their start wanting to make games, so I think there's some truth to that kind of organic community development. BGT is a good resource in the same sense that RPG Maker, Game Maker, or RenPy are good re
Re: Why do people still use bgt?
@11In a sense thats true, BGT, much like other engines of its kind in the wider mainstream isn't of much value outside of itself. I can't for example drop a starcraft script into anything other than starcraft, but the concepts of that scripting: variables, l
Re: Wx.FindReplaceDialog I need help
You have to bind and handle when the next button is pressed, you can find the find dialog event triggers [here]. Its a bit rough, but this might help:import wx
class MyFrame(wx.Frame):
def __init__(self, *args, **kwds):
kwds["style"] = wx.DE
Re: Wx.FindReplaceDialog I need help
You have to bind and handle when the next button is pressed, you can find the find dialog event triggers [here]. Its a bit rough, but this might help:import wx
class MyFrame(wx.Frame):
def __init__(self, *args, **kwds):
kwds["style"] = wx.DE
Re: Audio wrapper for Python
If it can't find the binary, then there may be an issue with your current working directory. The script your working on has to be in the same directory as the OpenAL binary and the OpenAL.py script, and the script has to consider that folder your working directo
Re: Audio wrapper for Python
As amerikranian mentioned, even if the files are allin the same folder, python has to consider it the current working directory. If you run the script from C: by writing "C:\folder\myscript.py", then C: would be the working directory, not the folder conrtaining
Re: Audio wrapper for Python
Hm, odd. Is this a compiled script? Or could you try sticking it in a temporary folder like "C:\tmp"? Whats the working directory when the script runs before trying to change it? Also be sure that you change the working directory before you try to import openal.
Re: issue with multiple variables in if statement
Hm... From what I can tell, the auto-delay code doesn't actually do anything. reqx is initially set to False, and there's a bit at the start of the msg() function that checks that if reqx is True to extend the delay. But in the while loop se
Re: An interesting error when trying to initialize lucia
The problem seems to specifically be with Lucia's ability to handle Jaws, try using another screen reader like NVDA instead.
URL: https://forum.audiogames.net/post/541647/#p541647
--
Audiogames-reflector mailing list
Audiogames-
Re: Audio wrapper for Python
Hm, digging around [here] it seems that may be an architecture mismatch. Are you running 32bit or 64bit Python? The included OpenAL32.dll is 32bit, but OpenAL Soft also comes with a 64bit version.Try heading [here] and download the latest version, inside the arc
Re: issue with multiple variables in if statement
"code" in square brackets, followed by your code, then closed with "/code" in square brackets.
URL: https://forum.audiogames.net/post/541661/#p541661
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
ht
Re: python socket server allow multiple clients to connect
[Here's] is a link that covers what ashleygrobler04 mentioned.#create an INET, STREAMing socket
serversocket = socket.socket(
socket.AF_INET, socket.SOCK_STREAM)
#bind the socket to a public host,
# and a well-known port
servers
Re: python socket server allow multiple clients to connect
@22Communication styles vary depending on what your goals, RTS's for example may rely heavily on asynchronous lockstep models, whereas FPS's may be more authoritative and freestyle with client side prediction and server corrections.
Re: first letter navigation in python
Lucia is built on top of pygame, its abstracting that same event system under the hood. Take a [peek], it might help you figure out how to better integrate what you want to do. Either that or write what you need with pygame.
URL: https://forum.audiogam
Re: Multiple State Menus?
Objects are not necessarily entirely isolated, since by their very nature they have to interact with other elements of the program. The player class for example may have to be aware of the environment for collision or interaction purposes, or vice versa, the enviro
Re: Multiple State Menus?
Objects are not necessarily entirely isolated, since by their very nature they have to interact with other elements of the program. The player class for example may have to be aware of the environment for collision or interaction purposes, or vice versa, the enviro
Re: Audio game jam - No Video Jam runs thru August 28
On some of the other jam pages that are currently in progress, there's a tab listing current submissions that can be viewed and/or downloaded. Chances are when someone submits something, you'll be able to find it that way.
URL: https://
Re: Audio game jam - No Video Jam runs thru August 28
[Correction]: Seems the entries will only be available when the jam is finished.
URL: https://forum.audiogames.net/post/562066/#p562066
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://saba
Re: logic for creating maps in python
Maps in python are more or less just data, so it really depends on what kind of map you want to make, 2D/3D, etc. A map class can contain all sorts of data, but the primary data is usually the map itself which can consist of things like a 2D array to te
Re: logic for creating maps in python
A typical way of implementing a 2D map editor involves assigning a numerical value to an object. So 0 = open space, 1 = a wall, 2 = bunnies, etc. Then the 2D array is populated with those items in a way that you want to create a map. Other numbers can a
Re: Continuous input
Added a print function under "if keylist[pygame.K_SPACE]:", seems to work alright. Tapping or holding space seems to run along, although it doesn't go upto 300, it goes up to 1600. Are you trying to count individual key taps?
URL: https://forum.audiogames.net/post/5634
Re: Pygame Tutorials
Pygame by itself isn't terribly accessible, so you'd need to hook in your own TTS support via Tolk, Accessible_output2, pyttsx, etc. Or do pre-recorded speech. I've posted a number of basic examples for pygame before, like [here], [here], or [here], along with descripti
Re: Pygame Tutorials
Pygame by itself isn't terribly accessible, so you'd need to hook in your own TTS support via Tolk, Accessible_output2, pyttsx, etc. Or do pre-recorded speech. I've posted a number of basic examples for pygame before, like [here], [here], or [here], along with descripti
Re: trying to add camera support to my application with no luck
@9There's a few options available [here], including PyOCR. Another alternative could also be [PyTorch], there's a few OCR projects made with it on github, like [this one].
URL: https://forum.audiogames.net/post/569482/#p569482
Re: Pyglet help
When you use pyglets quick play option, it automatically allocates a player to play the sound with and returns it, thats what would control the volume. So:box = music.play()
box.volume = 0.5Alternatively you can initialize a player and queue the sound on that to have a bit e
Re: Pyglet help
If the goal is to control playback and volume, then you may want to take advantage of pyglets keyboard input functions or a main update loop, or both. Example:import pyglet
from pyglet.window import key
class Prototype(pyglet.window.Window):
def __init__(self):
Re: Pyglet help
If the goal is to control playback and volume, then you may want to take advantage of pyglets keyboard input functions or a main update loop, or both. Example:import pyglet
from pyglet.window import key
class Prototype(pyglet.window.Window):
def __init__(self):
Re: Pyglet help
When I started with python I selected Pyglet as my go-to graphics library because of its flexibility and capabilities for both rendering and audio. After that it was more a combination of trial and error, plumbing the documentation and net for reference material, and time. T
Re: Pyglet VS Pygame?
Pyglet is built with OpenGL in the backend, so it has better rendering support for heavy lifting. Of course, that may not necessarily be applicable to audiogames perse, though there are some potential applications that could be useful for, such as sonifiers. Pygames au
Re: Pyglet VS Pygame?
Pyglet is built with OpenGL in the backend, so it has better rendering support for heavy lifting or 3D applications/shaders. Of course, that may not necessarily be applicable to audiogames perse, though there are some potential applications that could be useful for, su
Re: Pyglet VS Pygame?
Pyglet is built with OpenGL in the backend, so it has better rendering support for heavy lifting or 3D applications/shaders. Of course, that may not necessarily be applicable to audiogames perse, though there are some potential applications that could be useful for, su
Re: how to create a python application that looks like web application?
Your probably looking for [django], which is generally used for python web apps.
URL: https://forum.audiogames.net/post/571779/#p571779
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukogl
Re: Pyglet help
The seek function works based on time across total duration, so you can take the current time its at and add/subtract that to set your position. So something like this:#rewind
if symbol == key.LEFT:
print(self.player.time)
if self.player.time - 10.0 < 0.0:
se
Re: Pyglet help
Bunch of little things, a missing period, indentation on overflow if statements, and you needed to get_duration from the sound file itself, in this case music.get_duration, not the player.import pyglet
from pyglet.window import key
class Prototype(pyglet.window.Window):
Re: Twisted an UI's?
I've posted a bit of twisted code before, you can find some of it [here] for how to integrate twisted with a UI, with pyglet at least. Generally speaking i'd have a client protocol register itself with the game class, and use twisteds reactor.coiterate function to bounc
Re: Audio Games with Rust?
@18A [programming language], fairly good for working with hardware from what i've heard.
URL: https://forum.audiogames.net/post/572657/#p572657
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.co
Re: help with endless map generation please?
Are you attempting to procedurally generate a whole map? Or generate it as you go? Do you retain previously generated tiles? Do you have a limit in mind as to the maximum size of the generated map?
URL: https://forum.audiogames.net/post/534439/#
Re: how to make actual apps with python
wxPython is probably the best option for accessible GUI out of the box. There are of course other graphical libraries to choose from, but they are not natively accessible and would require you to hook in screen reader support manually, like Tolk, Univ
Re: how to make actual apps with python
Hm, depends. Django and Twisted come to mind, though there are other built in options like sockets or Asyncio. What kind of server support did you have in mind? High scores, match making, etc.
URL: https://forum.audiogames.net/post/535074/#p535074
Re: (suggestion) an open source audio game in python
I think there have been a few attempts at a collab, and there are a few people working on a few things, though motivation and time are precious resources. Such an engine is also on my todo list, though i'm currently occupied dealing with
Re: help with endless map generation please?
Hm, well if there's no need to care about previous tiles, there may be no need to retain them in memory either. When moving forward, can they move left or right? Or is it just a straight line? How far ahead can they see along this path? Internall
Re: help with endless map generation please?
Hm, well if there's no need to care about previous tiles, there may be no need to retain them in memory either. When moving forward, can they move left or right? Or is it just a straight line? How far ahead can they see along this path? Internall
Re: how to make actual apps with python
So something akin to a client server model, where client A and client B talk to server C, who returns packets to A & B? Django is more oriented towards web servers, though you could potentially get something working with that. Sockets and AsyncIO are
Re: (suggestion) an open source audio game in python
I think there have been a few attempts at a collab, and there are a few people working on a few things, though motivation and time are precious resources. Such an engine is also on my todo list, though i'm currently occupied dealing with
Re: Audio wrapper for Python
There's something about that error [here], it would seem that get_pos() returns the position in milliseconds, whereas set_pos() takes the target position only in seconds, for whatever reason. So instead of putting set_pos(1000), it would be set_pos(1) to set it
Re: Audio wrapper for Python
There's something about that error [here], it would seem that get_pos() returns the position in milliseconds, whereas set_pos() takes the target position only in seconds, for whatever reason. So instead of putting set_pos(1000), it would be set_pos(1) to set it
Re: WebAudio question
Have you tried enabling [HRTF]?
URL: https://forum.audiogames.net/post/535810/#p535810
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: I want to lirn pithon but pithon doesn't want me to do so
Its not, really. Though it can depend on what your looking at. You may not want to restrict yourself to just audiogames if you want to dig into source code, combing through github could be a good place to look, or the game projec
Re: I want to lirn pithon but pithon doesn't want me to do so
There are commands for that, for example:#convert string to int
st = "56"
st = int(st)
print(type(st), st)
#comvert to float
st = float(st)
print(type(st), st)
#convert to string
st = str(st)
print(type(st), st)For window creat
Re: I want to lirn pithon but pithon doesn't want me to do so
No, similar syntax. here's an example function:def bob():
print("this is a function"
bob()If you want to play around with code, something like the [Python Practice Book] might be more up your alley.
URL: https://forum.audio
Re: I want to lirn pithon but pithon doesn't want me to do so
No, similar syntax. Here's an example function:def bob():
print("this is a function")
bob()If you want to play around with code, something like the [Python Practice Book] might be more up your alley.
URL: https://forum.audi
Re: I want to lirn pithon but pithon doesn't want me to do so
Seems to work fine, although you can only guess one number. You could try adding in a while loop so users can try multiple times.
URL: https://forum.audiogames.net/post/535862/#p535862
--
Audiogames-reflector mailing list
A
Re: Audio wrapper for Python
I don't think threading would improve the situation any, and thats something python can be troublesome with. But being able to move forward only once is... odd. How many times can you rewind? Can you post the code for your forward and rewind code, and mention th
Re: I want to lirn pithon but pithon doesn't want me to do so
Hmm, yup that works, good job. Also flexing some function calls and globals as well, there are a few other ways to handle that. For example, you could put the while loop just before your input so you wouldn't need to use a functi
Re: I want to lirn pithon but pithon doesn't want me to do so
@38Hmm, yup that works, good job. Also flexing some function calls and globals as well, there are a few other ways to handle that. For example, you could put the while loop just before your input so you wouldn't need to use a fun
Re: Classes for learning new information about programming?
Well that depends, what programming language did you have in mind?
URL: https://forum.audiogames.net/post/536364/#p536364
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-g
Re: I want to lirn pithon but pithon doesn't want me to do so
@38Hmm, yup that works, good job. Also flexing some function calls and globals as well, there are a few other ways to handle that. For example, you could put the while loop just before your input so you wouldn't need to use a fun
Re: html help file
@19Well, i'm glad you figured it out. If its of any assistance though, there's information [here] on how to set the title. There's also the [Microsoft Help Workshop and Documentation] tools for compiling chm files, and you can use the previously suggested Markdown with [d
Re: Classes for learning new information about programming?
Python is not a bad choice, and is often recommended as a good place to start because of its easy to pick up, lots of documentation, and strong community... Speaking of which, congradulations! You're talking to a bunch of programme
Re: I want to lirn pithon but pithon doesn't want me to do so
Decorators mostly have to do with functions, or more specifically nested functions within functions and so forth. There's a rundown on all of it [here].
URL: https://forum.audiogames.net/post/536918/#p536918
--
Audiogames-r
Re: I want to lirn pithon but pithon doesn't want me to do so
@54If you'd like an example of properties, look into [OpenAL PyLite], alot of the classes use them. Really, its more of a syntax convience thing. For example lets say you want to get and set the volume of a given sound, you'd the
Re: I want to lirn pithon but pithon doesn't want me to do so
@57Yes, i'm trying to be illustrative. From a practical standpoint a property descriptor can operate much like that of a function, which may help in understanding it from a conceptual standpoint, followed by more nuanced aspects.
Re: I want to lirn pithon but pithon doesn't want me to do so
@54If you'd like an example of properties, look into [OpenAL PyLite], alot of the classes use them. Though there are a few applications, lets say you want to get and set the volume of a given sound, you can use a property deascri
Re: I want to lirn pithon but pithon doesn't want me to do so
@54If you'd like an example of properties, look into [OpenAL PyLite], alot of the classes use them. Though there are a few applications, lets say you want to get and set the volume of a given sound, you can use a property descrip
Re: I want to lirn pithon but pithon doesn't want me to do so
@54If you'd like an example of properties, look into [OpenAL PyLite], alot of the classes use them. Though there are a few applications, lets say you want to get and set the volume of a given sound, you can use a property descrip
Re: how to use python sapi
There are a few options besides accessible_output2, [Pyttsx] for crossplatform system TTS, [Tolk] which can support most windows based screen readers, you can find an example of it [here], and [Universal Speech].
URL: https://forum.audiogames.net/post/537088/#p53
Re: I want to lirn pithon but pithon doesn't want me to do so
@54If you'd like an example of properties, look into [OpenAL PyLite], alot of the classes use them. Though there are a few applications, lets say you want to get and set the volume of a given sound, you can use two functions for
Re: I want to lirn pithon but pithon doesn't want me to do so
Hm. Do you have pygame installed? Lucia uses it as a dependancy for keyboard input.
URL: https://forum.audiogames.net/post/537432/#p537432
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
h
Re: Something that confuses me in python
[Mutable Default Arguments]
URL: https://forum.audiogames.net/post/537528/#p537528
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: what do i need in an rpg engine?
@13One method would be to have a map array and store object and trigger id's for events, like fights, switches, etc. Makes editing environments and scripting straightforward, that and you can potentially store event scripts externally for easier editing.
Re: I want to lirn pithon but pithon doesn't want me to do so
Something else is your collision detection:if me.x<0:
me.x==0
if me.y<0:
me.y==0
if me.x>30:
me.x==30
if me.y>30:
me.y==30In this case, your doin
Re: Audio wrapper for Python
@46Hm? The line you wrote doesn't match the attribute error, which has an underscore between mixer and music instead of a period. I'd need more context.
URL: https://forum.audiogames.net/post/537861/#p537861
--
Audiogames-reflector mailing list
Audiogames-
Re: Audio wrapper for Python
Well, seems unload may not be implemented like it says in the documentation, or maybe thats for Pygame2? No matter. You can leave that out and just load a new song when you want to play something different. You may also want to move pygame.display.update() up to
Re: Audio wrapper for Python
The problem isn't so much the playback, which can be done easily enough with other libraries, so much as the decoding. If you wanted to play wav or ogg file formats it would be easy enough, but mp3's are more of a pain to work with given the available libraries,
Re: Audio wrapper for Python
The problem isn't so much the playback, which can be done easily enough with other libraries, so much as the decoding. If you wanted to play wav or ogg file formats it would be easy enough, but mp3's are more of a pain to work with given the available libraries,
Re: Audio wrapper for Python
If set_pos() can work properly its not much of an issue, though integrating Pylite with Pygame is fairly easy:import pygame
from openal import *
import sys
def Example():
#initialize pygame
pygame.init()
#initialize sound mixer
listener = Listener()
#lo
Re: Audio wrapper for Python
If set_pos() can work properly its not much of an issue, though integrating Pylite with Pygame is fairly easy:import pygame
from openal import *
import sys
def Example():
#initialize pygame
pygame.init()
#initialize sound mixer
listener = Listener()
#lo
Re: Audio wrapper for Python
If set_pos() can work properly its not much of an issue, whats the length in seconds of the mp3 you tested it with? Integrating Pylite with Pygame is also fairly easy:import pygame
from openal import *
import sys
def Example():
#initialize pygame
pygame.ini
Re: Audio wrapper for Python
Well, thats frustrating. Its just a python 2 to 3 thing, if you don't mind editing openal.py, you can change that print function to "return". Or you could just grab a hotfix version I just uploaded [here].
URL: https://forum.audiogames.net/post/538508/#p538508
Re: I want to lirn pithon but pithon doesn't want me to do so
When you say "platform", in what way do you mean? Like a free moving game like Zelda, or like a snap like tile based roguelike? Is it a side scroller or top down?
URL: https://forum.audiogames.net/post/538510/#p538510
--
Au
Re: Passing a key from one function to another in python
Going from the source, you should probably be using lucia.key_released(), since that indicates when a key isn't being held anymore, and thus just pressed and not held. Lucia uses pygame for its input backend, when you call [process_ev
Re: I want to lirn pithon but pithon doesn't want me to do so
How you handle the data can have an effect on the kind of response or effect your going for. In a game like Zelda, you can walk fluidly across many tiles in a non-even way, whereas in a roguelike you snap from one tile to the nex
Re: Passing a key from one function to another in python
That would suggest that each function operates simultaneously, which unless your using threading wouldn't happen. One function by necessity would have to come before the other. Generally how I structure code is I have a root class tha
Re: Audio wrapper for Python
@56No, I believe thats an OpenAL issue. If you have OpenAL installed, then Python will default to it instead of the OpenAL Soft dll included with the examples. To fix it you'll either need to uninstall OpenAL, or download [OpenAL Soft] and follow the included in
Re: appreciating visual effects?
Theoretically, there could be a few color formatting approaches you could do that could make UI borders and elements more scannable with a sonifier like the vOICe, black background, white borders, etc. You could take a screenshot of the layout and use the vO
Re: appreciating visual effects?
@4BrushTone is not so much meant for animation, so much as a generalized paint tool thats capable of it. You can make animations with it and view them via sonifier, or frame by frame, if you prefer. This isn't dissimilar to other tools like Asprite or Graphi
101 - 200 of 1095 matches
Mail list logo