Re: is coding in python easy? just interested

2014-10-21 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: is coding in python easy? just interested Hello,I have been dabbling with this queue problem and delta for the last month or so off and on. I finaly figured it out in several ways.One has 3 options when using a system like pygame or pyglet:1. give everything its own addition each loop

Re: is coding in python easy? just interested

2014-10-21 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: is coding in python easy? just interested Hello,I have been dabbling with this queue problem and delta for the last month or so off and on. I finally figured it out in several ways.One has 3 options when using a system like pygame or pyglet:1. give everything its own addition each loop

Re: is coding in python easy? just interested

2014-10-21 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested You cannot draw in half a pixel. Nothing can draw in half a pixel. Drawing in half a pixel is literally the same as turning on half a light bulb. This isnt even an analogy. Its the literal truth.The structures you are defining are much too

Re: is coding in python easy? just interested

2014-10-21 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: is coding in python easy? just interested A queue is basically a list or set what you had in your audiogame engine, in the scheduler.py file. (BTW, there is 2 lines of code missing in line 18, you need to have an else:task.elapsed=0 after the self.tasks.remove(task) or the repeat flag

Re: is coding in python easy? just interested

2014-10-21 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested No, I dont think it is. Audiogame_engine ticks regardless. Theres some stuff in there that lets you hook into timing, but the main loop doesnt. Ive abandoned Audiogame_engine to be honest; Im now going to use Pyglet. The thing with Pygame

Re: is coding in python easy? just interested

2014-10-08 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: is coding in python easy? just interested Since this topic apparently is the Discuss Python Here! topic and I cant resist, let me add a few of my own issues here.Camlorn, or rather, all of you, would you mind helping me out iwth something? I would like to code a GNU Compiler for Python

Re: is coding in python easy? just interested

2014-10-08 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested You cant. Not in a time period less than 3 or 4 years. This is a project that people have earned doctorates with and its still not done. Grad students work on Pypy all the time, and the only real reason that Pypy works is because its a JIT

Re: is coding in python easy? just interested

2014-08-25 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested Youre overcomplicating things tremendously. I think someone else needs to try to explain why threads are going to screw you in the end, but youre taking the molehill of ticks and turning it into a mountain. You can feel free to disbelieve me

Re: is coding in python easy? just interested

2014-08-25 Thread AudioGames . net Forum — Development room : thggamer via Audiogames-reflector
Re: is coding in python easy? just interested Hello.Here is my opinion.A good program needs to only use threads in situations that are critical,like reading large amounts of data from Internet without blocking the mainprogram.But I say: Dont use threads.Why?Threads are difficult to debug

Re: is coding in python easy? just interested

2014-08-25 Thread AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
Re: is coding in python easy? just interested OK, youve convinced me, no threads!!! LOLNow I need to figure out how to either use the module in audiogame_maker or create my own. URL: http://forum.audiogames.net/viewtopic.php?pid=186462#p186462

Re: is coding in python easy? just interested

2014-08-25 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested I *think* audiogame_engine will mix fine with Pygames sound stuff. There may be sdl issues; I am uncertain, as I obviously only used it with my own stack.Writing your own is actually a good idea, if you want to learn. Its a manageable project

Re: is coding in python easy? just interested

2014-08-24 Thread AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
Re: is coding in python easy? just interested OK, I took a look at audiogame_engine and I wish I knew about this before I got into pygame! LOL... It is basically a light-weight pygame.Now, I just need a game example to see how they work together with one another.I didnt understand

Re: is coding in python easy? just interested

2014-08-24 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested Libaudioverse got delayed because the first week of school is awful, I missed the deadline and decided to go ahead and port the media player example to Python, and the blog post about it wont come out the way I want. I then decided that, since

Re: is coding in python easy? just interested

2014-08-24 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested Libaudioverse got delayed because the first week of school is awful, I missed the deadline and decided to go ahead and port the media player example to Python, and the blog post about it wont come out the way I want. I then decided that, since

Re: is coding in python easy? just interested

2014-08-24 Thread AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
Re: is coding in python easy? just interested Ive got 2 different ways of doing screens:1. bring out another screen with another window being stacked on top of the main window. This is really fast and what Ive got already. The downside is that it is a little annoying to have game-wide

Re: is coding in python easy? just interested

2014-08-23 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested Threads are not necessary. Threads actually hurt. Threads will kill your productivity. Im not going to go into why because a quick Google search will bring up many, many articles about just why threads are bad. The secret to using threads

Re: is coding in python easy? just interested

2014-08-23 Thread AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
Re: is coding in python easy? just interested Really? What is the bad part of python multithreading? From what Ive read, it is that it slows down things and accessing shared variables is something you need to be careful about (see the lock section above).Also, killing a daemon thread

Re: is coding in python easy? just interested

2014-08-23 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested Ticks are not too predictable. You can easily do 60 or 100 a second. You can, if you are good at math and adventurous, have the time between them vary. You can have the engine detect when its slow and tick faster to catch up, or make the time

Re: is coding in python easy? just interested

2014-08-23 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested Ticks are not too predictable. You can easily do 60 or 100 a second. You can, if you are good at math and adventurous, have the time between them vary. You can have the engine detect when its slow and tick faster to catch up, or make the time

Re: is coding in python easy? just interested

2014-08-23 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested Ticks are not too predictable. You can easily do 60 or 100 a second. You can, if you are good at math and adventurous, have the time between them vary. You can have the engine detect when its slow and tick faster to catch up, or make the time

Re: is coding in python easy? just interested

2014-08-23 Thread AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
Re: is coding in python easy? just interested Well, what is a mob doing most of the time? waiting for its next step, waiting to respond, waiting for its next attack, it is a lot of waiting. I ran my 45 threads removing numbers from a a variable every random time between 1 and 5 seconds

Re: is coding in python easy? just interested

2014-08-22 Thread AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
Re: is coding in python easy? just interested If you wish to make real-time combat like Swamp has or even for an ai in a side-scroller, in python, I dont think there is any way to do it other than by using threading. Many, many, many python applications use eather multiprocessing

Re: is coding in python easy? just interested

2014-08-22 Thread AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
Re: is coding in python easy? just interested If you wish to make real-time combat like Swamp has or even for an ai in a side-scroller, in python, I dont think there is any way to do it other than by using threading. Many, many, many python applications use eather multiprocessing

Re: is coding in python easy? just interested

2014-08-22 Thread AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
Re: is coding in python easy? just interested So I was thinking how you could do events without using the threading module.You would need to use the time.clock() function a lot as benchmarks.I replicated the threading.Timer functionality. It is used a little differently because I kind

Re: is coding in python easy? just interested

2014-08-21 Thread AudioGames . net Forum — Development room : kingsieuba via Audiogames-reflector
Re: is coding in python easy? just interested hay thomas.how can i get that thingy? the compiler i mean URL: http://forum.audiogames.net/viewtopic.php?pid=185822#p185822 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: is coding in python easy? just interested

2014-08-21 Thread AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
Re: is coding in python easy? just interested pyinstaller is awesome! For quick testing of a game, nothing can beat typing:pyinstaller scripts/scriptname.pyand getting an exe in 30 seconds.py2exe you need to make a file that has all the info for what you wish the game folders to look like

Re: is coding in python easy? just interested

2014-08-21 Thread AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
Re: is coding in python easy? just interested I am currently messing around with multithreading and that is fun! Does anyone have any good techniques for dealing with threads?I dont like the threadname.join() function because it freezes the program till that thread stops. I think daemon

Re: is coding in python easy? just interested

2014-08-21 Thread AudioGames . net Forum — Development room : stewie via Audiogames-reflector
Re: is coding in python easy? just interested Why are you using threads? for a single player small game you dont even really need to. URL: http://forum.audiogames.net/viewtopic.php?pid=185878#p185878 ___ Audiogames-reflector mailing list

Re: is coding in python easy? just interested

2014-08-21 Thread AudioGames . net Forum — Development room : stewie via Audiogames-reflector
Re: is coding in python easy? just interested Why are you using threads? for a single player small game you dont even really need to. Also using print will obviously slow the program down by a large degree. URL: http://forum.audiogames.net/viewtopic.php?pid=185878#p185878

Re: is coding in python easy? just interested

2014-07-26 Thread AudioGames . net Forum — Development room : thggamer via Audiogames-reflector
Re: is coding in python easy? just interested SoundRTS is only slow in the loading sounds part and its not Pygame.I think that the amount of sounds slows a bit the game to load it inmemory.One of the things that I dont like in BGT is that you need to createvarious data types to do a basic

Re: is coding in python easy? just interested

2014-07-26 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested SoundRTS is pygame. I have the source on my hard drive, now that its open source. The code is very unpythonic, so be warned if you decide to dive in: my 30-second glance shows at least 3 Python stylistic and best practice violations

Re: is coding in python easy? just interested

2014-07-26 Thread AudioGames . net Forum — Development room : CAE_Jones via Audiogames-reflector
Re: is coding in python easy? just interested I ported sound_positioning.bgt to Pygame. I dont know if the copy on this computer is the completed version, but I know that I do have a copy that works pretty much identically to the BGT version.(Disclaimer: other than mapping BGTs sound

Re: is coding in python easy? just interested

2014-07-26 Thread AudioGames . net Forum — Development room : thggamer via Audiogames-reflector
Re: is coding in python easy? just interested Hello.In my game I load the sounds when I need it and they are freed frommemory when not used.I think Ill create a topic to share my panning code because I think someonecan have the same problem of creating a panning system for his

Re: is coding in python easy? just interested

2014-07-26 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested You dont want to throw sounds out unless you have to. The issues that can cause are complex, but basically boil down to hard disk I/O issues. If you want to make a cache, which is the right way, you should look at the weakref module, but dont

Re: is coding in python easy? just interested

2014-07-26 Thread AudioGames . net Forum — Development room : thggamer via Audiogames-reflector
Re: is coding in python easy? just interested Hello.Ive reread some posts and I think that my english caused a bit ofmisunderstanding.In the previous post I meant that Pygame is not responsible for the slowdown in the sound loading process.I tried to say that, but i forgot some words

Re: is coding in python easy? just interested

2014-07-26 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested Im not sure, as my familiarity with sdl_mixer is lacking. You may end up needing to create a duplicate when you actually want to play it, which is okay. The thing that you want to avoid is reloading sounds that are already loaded; if a copy

Re: is coding in python easy? just interested

2014-07-13 Thread AudioGames . net Forum — Development room : CAE_Jones via Audiogames-reflector
Re: is coding in python easy? just interested Ive made games in Java and _javascript_ and learned my lesson about lag back when I tried to have IE5 update 80 images a frame. Other than using boatloads of transparent gradients, I dont see speed issues in interpreted languages becoming much

Re: is coding in python easy? just interested

2014-07-13 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested Modern _javascript_ does audio synthesis and is just-in-time compiled on some browsers--on a modern browser, doing that shouldnt be a problem.As for collision detection, yeah. This is one of those programmer knowledge thing. The specific

Re: is coding in python easy? just interested

2014-07-13 Thread AudioGames . net Forum — Development room : CAE_Jones via Audiogames-reflector
Re: is coding in python easy? just interested I was thinking in the general direction of a spatial hash myself after the first huge dose of this (it wasnt a spatial hash exactly because I tried to come up with it on my own). Then I decided that was too inconvenient and settled

Re: is coding in python easy? just interested

2014-07-13 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested Well, the thing with the physics simulators is that you dont have to use them as such. If you so choose, just plug in your shapes and ask if they collide. If you dont tick it, it doesnt simulate. This may not be true of Box2d, but it is true

Re: is coding in python easy? just interested

2014-07-12 Thread AudioGames . net Forum — Development room : the terminator via Audiogames-reflector
Re: is coding in python easy? just interested yah tword, thats why im also dealing with BGT URL: http://forum.audiogames.net/viewtopic.php?pid=180514#p180514 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com

Re: is coding in python easy? just interested

2014-07-12 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested Python is fast enough that I seriously considered (and still am, in a way) doing my MMO project in it. Game load times is not a function of language in this case-I suspect that the Pygame games under discussion are not streaming and load all

Re: is coding in python easy? just interested

2014-07-12 Thread AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
Re: is coding in python easy? just interested Python is fast enough that I seriously considered (and still am, in a way) doing my MMO project in it. Game load times is not a function of language in this case-I suspect that the Pygame games under discussion are not streaming and load all

Re: is coding in python easy? just interested

2014-06-29 Thread AudioGames . net Forum — Development room : tward via Audiogames-reflector
Re: is coding in python easy? just interested Guilevi, well, honestly that is one of the major drawbacks to using Python for games. Its an interpreted language, and will never get the speed and efficiency of a native executable built using C or C++. If someone wants the simplicity of a language

Re: is coding in python easy? just interested

2014-06-28 Thread AudioGames . net Forum — Development room : guilevi via Audiogames-reflector
Re: is coding in python easy? just interested To be honest Ive noticed many pygame games are very unstable and have huge amounts of loading time on startup. I do have to say, though, that games like sound rts or soundmud have a ridiculously stable online gameplay which Ive never seen anywhere

Re: is coding in python easy? just interested

2014-06-26 Thread AudioGames . net Forum — Development room : the terminator via Audiogames-reflector
Re: is coding in python easy? just interested k thanks Thomas, i will learn with the official documantation. Aw! and, well can i make here a sidescroller?URL: http://forum.audiogames.net/viewtopic.php?pid=178376#p178376 ___ Audiogames-reflector

Re: is coding in python easy? just interested

2014-06-26 Thread AudioGames . net Forum — Development room : tward via Audiogames-reflector
Re: is coding in python easy? just interested Terminator, I dont see any reason why you couldnt make a side-scroller in Python. However, you would have to understand a fair amount of the language and a good game API like Pygame or PySDL2 in order to be able to do that though.URL: http

Re: is coding in python easy? just interested

2014-06-25 Thread AudioGames . net Forum — Development room : the terminator via Audiogames-reflector
Re: is coding in python easy? just interested is there an easy way to just like learn the programming languaje?URL: http://forum.audiogames.net/viewtopic.php?pid=178291#p178291 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: is coding in python easy? just interested

2014-06-25 Thread AudioGames . net Forum — Development room : tward via Audiogames-reflector
Re: is coding in python easy? just interested Terminator, well, there is lots of free documentation for Python. There is all of the official documentation athttp://docs.python.organd if you are a Bookshare member they have a few programming books for beginners in daisy format. There is also

Re: is coding in python easy? just interested

2014-06-23 Thread AudioGames . net Forum — Development room : the terminator via Audiogames-reflector
Re: is coding in python easy? just interested hay thomas.how can i get that thingy? the compiler i meanURL: http://forum.audiogames.net/viewtopic.php?pid=177988#p177988 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: is coding in python easy? just interested

2014-06-23 Thread AudioGames . net Forum — Development room : tward via Audiogames-reflector
Re: is coding in python easy? just interested Terminator, the Pyinstaller script can be found athttp://www.pyinstaller.orgas is documentation on how to modify it to build your Python projects for various platforms, add modules, etc. Its not a compiler in the traditional sense the way a C

Re: is coding in python easy? just interested

2014-06-22 Thread AudioGames . net Forum — Development room : tward via Audiogames-reflector
Re: is coding in python easy? just interested Terminator, well a lot depends on what you are comparing Python too, but coming from a programmers point of view Python is fairly easy compared to the various flavors of the C language such as C, C++, Java, etc. It doesnt have a lot of the symbols