Re: Getting started with coding audiogames in Python?

2019-05-17 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Re: Getting started with coding audiogames in Python?

magurp244 wrote:Adding audio can be fairly straightforward, but where and how complex it is can depend on a number of factors and personal tastes. Here's an example of how to add audio to a Pygame framework:import pygame
from pygame import mixer
import sys

def Example():
#initialize pygame
pygame.init()
#initialize sound mixer
mixer.init()
#create display
window = pygame.display.set_mode([640,480])
#load sound
sound = mixer.Sound('tone5.wav')

#main update loop
while True:
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
#if space is pressed, play sound
if event.key == pygame.K_SPACE:
sound.play()
#if escape is pressed, quit
if event.key == pygame.K_ESCAPE:
pygame.quit()
sys.exit(0)

#update window
pygame.display.update()

Example()Keep in mind that Pygame and Pyglet typically only handle basic audio, if you want advanced audio like HRTF, EFX, or 3D positional audio you'll need to use a library like OpenAL, such as with my examples. I have provide other examples for Pyglet, or another Pygame example using OpenAL, if you prefer. Thank you for the quick reply! This is helpful.What kind of basic audio do  the libraries like pygame and pyglet provide?Thanks again.

URL: https://forum.audiogames.net/post/434322/#p434322




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Getting started with coding audiogames in Python?

2019-05-16 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Re: Getting started with coding audiogames in Python?

magurp244 wrote:There are a number of free books available, such as [Dive Into Python], [How To Think Like A Computer Scientist], or the [Python Practice Book]. In general though the basics of python are fairly straight forward, loops, if statements, variables, etc. so even "crap" sources can provide at least some useful information.As for audio, its difficult to point to any particular tutorial on that, as there are a variaty of libraries around with their own functions and methods, although you may find my [OpenAL Examples] useful for getting started. If you have any questions feel free to ask. Much of the books i've already mentioned only cover the core basics of the language, so if you plan on getting into game development you'll need some additional libraries for handling things like windows, key input, and such. Most tend to choose between Pygame or Pyglet, there are others but they can be a bit troublesome to deal with. Its also worth noting that both Pygame and Pyglet have their own audio functions, if you feel like starting out with those.Your choice of library should also be determined based on what you plan on doing, Pygame is largely for 2D applications, Pyglet can handle both 2D and 3D, Ren'Py is mostly for text based games, and Panda3D is a 3D engine based framework. I've haven't played much with cocos2D or Arcade so can't offer much advice on them. Thanks for posting. As someone who  has  learned  the basics of python, and  is now looking to start making games,  this gives me a much clearer idea of what I’ll need to learn. I found plenty of tutorials online that show how to make games with the libraries  mentioned in your  post, however  they don’t mention how To add audio. This is where I am a bit confused. Is it as simple as adding sounds into the code of the   main game at the  correct places,   using  the audio libraries you mentioned,  or is it a more complicated process than that? I would greatly appreciate any   advice You can provide.

URL: https://forum.audiogames.net/post/434107/#p434107




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Accessing the BGT Documentation?

2017-12-14 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Re: Accessing the BGT Documentation?

ironcross32 wrote:BGT hasn't been updated in quite some time. I think the reason people use it is that it contains a lot of things to help you get started quickly, things you won't find on other platforms, plus, there are a lot of BGT includes for you to make use of, including a rotation package for help making 3D stuff. It's limited in the sense that if you want to do anything outside what it can do, you will have t wrap DLLs. It can't even print to the screen, with the exception of the title bar, so you cannot make anything thats useful for say, blind and sighted players, that means no graphics, no text, nothing like that. You just have a window that shows in the top left of the screen, you can't really control it. Thanks for the explanation.  It seems like BGT should work fine for me now.    I looked into python a little bit in the past, and while  I could understand the basic coding/syntax part of it, making sure I had all the right library/packages, and getting them to all work properly, was a little confusing/complicated.    It seems like BGT solves that issue by having everything in one place.Just out of curiosity, what platform/languages do you guys use for building games? If I start with BGT, how easy/difficult would it be to transition to using another platform  if I decided to switch  in the future?

URL: http://forum.audiogames.net/viewtopic.php?pid=342129#p342129





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Accessing the BGT Documentation?

2017-12-14 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Re: Accessing the BGT Documentation?

CAE_Jones wrote:I think the only major out-of-date-ness is mostly that BGT is using an older version of Angelscript. It's not out of date in the sense of compatibility, security, etc.Well, there is that problem where antivirus programs have been flagging games made in BGT, for some reason. Dunno what that's about.thanks for the quick reply.So, would you say that BGT is a good platform for someone starting out with making games?  I am fairly new to this.

URL: http://forum.audiogames.net/viewtopic.php?pid=342068#p342068





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Accessing the BGT Documentation?

2017-12-14 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Re: Accessing the BGT Documentation?

CAE_Jones wrote:I think the only major out-of-date-ness is mostly that BGT is using an older version of Angelscript. It's not out of date in the sense of compatibility, security, etc.Well, there is that problem where antivirus programs have been flagging games made in BGT, for some reason. Dunno what that's about.thanks for the quick reply.So, would you say that BGT is a good platform for someone starting out with making games?  I am fairly new to this, and am looking for a place to start.Thanks,Ultradude306

URL: http://forum.audiogames.net/viewtopic.php?pid=342068#p342068





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Accessing the BGT Documentation?

2017-12-14 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Re: Accessing the BGT Documentation?

CAE_Jones wrote:I don't think there's anything out of date about the tutorials that isn't out of date about BGT itself, but maybe I missed something? Would  you say that BGT is out of date?    If so, is there a more current/better way to be developing games nowadays?I’m just surprised, as  it  seems like quite a few people here on the forums are still using BGT.

URL: http://forum.audiogames.net/viewtopic.php?pid=342060#p342060





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Accessing the BGT Documentation?

2017-12-13 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Accessing the BGT Documentation?

I have decided to give BGT a shot. However, when I downloaded the program, I was unable to find any of the documentation/tutorials for  the software.I’ve heard on various boards on this site, as well as on the official blast bay website, that there is very good documentation. Unfortunately, for the life of me, I can’t seem to find it.Any help would be greatly appreciated.Thanks,Ultradude306

URL: http://forum.audiogames.net/viewtopic.php?pid=342008#p342008





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Accessing the BGT Documentation?

2017-12-13 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Accessing the BGT Documentation?

I have decided to give BGT shot. However, when I downloaded the program, I was unable to find any of the documentation/tutorials for  software.I’ve heard on various boards on this site, as well as on the official blast bay website, that there is very good documentation. Unfortunately, for the life of me, I can’t seem to find it.Any help would be greatly appreciated.Thanks,Ultradude306

URL: http://forum.audiogames.net/viewtopic.php?pid=342008#p342008





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Any Good Libaudioverse Tutorials?

2017-07-27 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Any Good Libaudioverse Tutorials?

I have read the documentation, and it seems like a very interesting library.Struggling with getting it working though.I was wondering if there was any tutorials/tips on how to use the library outside of the documentation?

URL: http://forum.audiogames.net/viewtopic.php?pid=321256#p321256





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Piglet/Python Audio Tips?

2017-07-19 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Re: Piglet/Python Audio Tips?

CAE_Jones wrote:The tutorials spend a lot of time on graphics because they expect a sighted audience. The graphics are output, though, not part of how the game works behind the scenes. Audio is similar: the workings of the game are not the graphics or sound (or haptics if anyone ever goes there); those are just methods of communicating what happens to the user. A lot of 3d engines blurr the line between graphics and mechanics, but those sorts of engines leave a ton to be desired in terms of accessibility ATM. Pyglet and Pygame support graphics, but you can ignore them if you wish.Thanks.  This cleared a lot of stuff up.  Still a little confused as to how you get libaudioverse to work with the mechanics that you've got coded in pygame though.

URL: http://forum.audiogames.net/viewtopic.php?pid=320181#p320181





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Piglet/Python Audio Tips?

2017-07-19 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Re: Piglet/Python Audio Tips?

CAE_Jones wrote:The tutorials spend a lot of time on graphics because they expect a sighted audience. The graphics are output, though, not part of how the game works behind the scenes. Audio is similar: the workings of the game are not the graphics or sound (or haptics if anyone ever goes there); those are just methods of communicating what happens to the user. A lot of 3d engines blurr the line between graphics and mechanics, but those sorts of engines leave a ton to be desired in terms of accessibility ATM. Pyglet and Pygame support graphics, but you can ignore them if you wish.Thanks.  This cleared a lot of stuff up.  Still a little confused as to how you get libaudioverse to work with the mechanics that you've got for your coded in pygame though.

URL: http://forum.audiogames.net/viewtopic.php?pid=320181#p320181





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Piglet/Python Audio Tips?

2017-07-19 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Re: Piglet/Python Audio Tips?

CAE_Jones wrote:The tutorials spend a lot of time on graphics because they expect a sighted audience. The graphics are output, though, not part of how the game works behind the scenes. Audio is similar: the workings of the game are not the graphics or sound (or haptics if anyone ever goes there); those are just methods of communicating what happens to the user. A lot of 3d engines blurr the line between graphics and mechanics, but those sorts of engines leave a ton to be desired in terms of accessibility ATM. Pyglet and Pygame support graphics, but you can ignore them if you wish.Thanks.  This cleared a lot of stuff up.  Still a little confused as to how you get libaudioverse to work with your the framework that you've built for your game in pygame though.

URL: http://forum.audiogames.net/viewtopic.php?pid=320181#p320181





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Piglet/Python Audio Tips?

2017-07-19 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Re: Piglet/Python Audio Tips?

Hijacker wrote:Hi,you can combine almost every library with each other as long as they are compatible, means they don't interfere with each other. Since libaudioverse is a library which doesn't influence any other library, you can combine it with every library you want, if it's pyglet, pygame or some GUI framework like wxPython or Qt doesn't play any role here.There aren't any special steps to get both of them working, at least no more steps you'd need to get each of them working separately.Yeah, pygame is older and you can probably find more examples on the net, and since development of pygame continued some months ago, there isn't any reason not to try it out.Best Regards.Hijacker Thanks for the information.Looking further into things, I'll probably use Pyglet,  as it seems to be able to do more.However, no matter what library I choose, I'm still stumped on how to actually get my game up and running… Looking at all the tutorials online,  it looks like you need some sort of sprite to get the basic mechanics of the game working. I looked at the documentation regarding keyboard events for pyglet,  but it seemed to focus  only on text/menus, not gameplay.

URL: http://forum.audiogames.net/viewtopic.php?pid=320133#p320133





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Piglet/Python Audio Tips?

2017-07-19 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Re: Piglet/Python Audio Tips?

Hijacker wrote:Hi,there already was some other topic I answered similar questions about pyglet and how to do stuff with the keyboard and some other stuff without displaying anything on the screen, which is indeed not needed at all. Since I only got experience with pygame, but not with pyglet, I can't speak from my own experience, but I can link to some tutorial which should cover those basics:Check out this link for exampleBest Regards.Hijacker Does Pygame work withLive Audioverse as well?     If it does, that might be a better place for me to get started, since Pygame seems to be more widely used.PS:  are there certain steps I need to take in order to get Live Audioverse working with python/the other libraries I'm  using to make the game?

URL: http://forum.audiogames.net/viewtopic.php?pid=320118#p320118





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Piglet/Python Audio Tips?

2017-07-19 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Re: Piglet/Python Audio Tips?

Hijacker wrote:Hi,there already was some other topic I answered similar questions about pyglet and how to do stuff with the keyboard and some other stuff without displaying anything on the screen, which is indeed not needed at all. Since I only got experience with pygame, but not with pyglet, I can't speak from my own experience, but I can link to some tutorial which should cover those basics:Check out this link for exampleBest Regards.Hijacker Does Pygame work withLive Audioverse as well?     If it does, that might be a better place for me to get started, since Pygame seems to be more widely used.PS:  are there certain steps I need to take in order to get Live Audioverse working with python/the other libraries I'm  using up make the game?

URL: http://forum.audiogames.net/viewtopic.php?pid=320118#p320118





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Piglet/Python Audio Tips?

2017-07-19 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Re: Piglet/Python Audio Tips?

Thanks for the quick replies.I skimmed through the documentation for Live Audioverse, and it looks like something I could work with. I'm a bit confused as to how I get it working with python/pyglet though.  I'm assuming you can't simply install it with pip like you can with pyglet?Additionally, how do you get your game working without any graphics?  Looking through the tutorials for libraries like pyglet and pygame, it seems as though you need some kind of sprite/pixels on the screen to handle events like player movement and collisions. Is this all done through pyglet somehow, or with Live Audioverse?Thanks again,Appreciate the support.

URL: http://forum.audiogames.net/viewtopic.php?pid=320077#p320077





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Piglet/Python Audio Tips?

2017-07-18 Thread AudioGames . net ForumDevelopers room : ultradude306 via Audiogames-reflector


  


Piglet/Python Audio Tips?

Hey there, Long time lurker, don't post often. I've recently learned the basics of python, and heard that pyglet was a good place to start for audio game development.  After searching online I found a few tutorials for how to get pyglet working, but nothing regarding sounds.  I looked through the documentation, but that wasn't much help either.  So, are there any tips, tricks or tutorials for working with python and pyglet, or is it best to work with another language and  library entirely?Thanks in advance for any replies.  This seems like a great hobby to get into, but I'm pretty unclear on where to start.

URL: http://forum.audiogames.net/viewtopic.php?pid=320056#p320056





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector