Re: BGT help
Why it doesnt work?The code is right I think.
URL: http://forum.audiogames.net/viewtopic.php?pid=195827#p195827
___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
Re: You know you code too much when...
25. When you think that your dog has a bark() function and a PathFinderclass.26. When you think that the keys on your MIDI keyboard are Note on and Noteoff events.27. When you think that your parents are super classes.28. When you want to tell a
Re: Is Learning 2 Programming languages at once possible?
Hello.What do you think about Pascal?You can find the compiller at http://freepascal.org/They have a IDE too, that can do graphic applications at http://lazarus.sourceforge.net/I dont have a top 10 list, because Ive only tried a few
Re: 2D Framework released
Hello.I think I could try implementing it in Python too.The thing with Python is that I cant get a pan system like BGT workingin Pygame, and OpenAL seems very advanced to me.I think someone posted a script to convert BGT pan values to Pygame onesbut I couldnt find
2D Framework released
Hello.After some time of work, Im happy to announce the 2D Framework!Since I think most people here code in BGT, Ive done it with BGT.This is a template game you can build your game in.It implements a basic map representation, basic object handling andbasic movement
Re: Crap ton of free audio samples, sound fonts
Hello.I use VirtualMidiSynth without problems.You just add soundfonts to it's list and you are ready to go, justselect the instrument on the sequencer and play.By the way, anyone knows if there exists an accessible way of creating soundfonts?
Re: Can someone help me, please?
Hello.Here is the reference manual of the Python standard library, wich documents allbuilt-in functions and library modules available.http://docs.python.org/2.7/library/You can find it in the python documentation wich comes with the installer too.Hope this
Re: Python or PureBasic
If you don't like complexity it will be hard to create a 3d shooter.These types of games require a high knowledge of math for creatingeven the most basic things.A side scroller is easier, but even with that, you'll need to write thegame's engine and the game
Re: Python or PureBasic
Hello.I think that the best language for writing audio games is BGT.Why? It generates very small executables, it contains all the functionsyou'll need out-of-the-box and is simple to learn.Python and PureBasic, on another hand, are general-purpose programming
Re: Is their a way to handle a traceback in a multi threaded python app
Well, when I tested, it worked on while loops.The thing is, if you put the try / except block in a wrong place of your program, especially if it's multithreaded, it can break the program's control flow quite easily.I
Re: Is their a way to handle a traceback in a multi threaded python app
Well, when I tested, it worked on while loops.The thing is, if you put the try / except block in a wrong place of your program, especially if it's multithreaded, it can break the program's control flow quit easily.I
Re: problem with pyinstaller
Hello.You could try bb-freeze or cx_freeze to see if they work.If they don't work, you could try to create a installer script toinstall the dependencies on the user's system (Linux distros).I think that is the recommended approach, because Linux binaries are
Re: Tone indication for walls on a 2d map, my working solution for BGT.
Hello.I have some suggestions for your script.You can reduce a lot of code doing a function to scan the map using xand y increments, like this:vector scan_map(int x_incr, int y_incr){int future_x;int future_y;for(int
Re: Help with movement on Map in Python
Hello.I think that the problem is that your character is moving everyiteration of the loop.To solve this, you could try something like that inside your movingcode:if pygame.time.get_ticks() >= move_timer: # Move code goes here move_timer =
Re: trigonometry in audio games, how do I apply the concept?
Hello.Trigonometry is used to get the measures of the values to sum andsubtract in the game's coordinates.For trig to work properly you need to convert the angle in degree format to radians.The radians are numbers based from the
Re: Is their a way to handle a traceback in a multi threaded python app
Hello.There are try / except blocks.You can use them like as follows:try: # Code that can potentially produce errorsexcept: # Rescue codeYou can use except with some exception names like TypeError,
Re: Error with python using pip
Maybe Pip can't find the place to download the packages, so you'll need to download them manually.Pygame can be found at:http://pygame.org/ftp/pygame-1.9.1.win32-py2.7.msiWxPython can be found at:http://downloads.sourceforge.net/wxpyth … 0-py27.exe
URL:
Re: Pure basic devs, I could use your help
The error you are getting is that your loop keeps running after you hit a virus.So, unless you want your gun to kill 2 or more viruses at a time, you'll want tobreak it so it does not repeat more than necessary.If you want to kill 2 viruses at a
Re: Program disasembler?
If you use an interpreted language to write your program, decompilation might be possible.Otherwise, you'll only be hable to get the assembled code (processorinstructions) or some form of that, that resembles your program's sourcecode, but made to get read by a
Re: Starting out with creating a mud
Where do you found the Moo server and the database? I want to try tocode in a Moo but I couldn't find any databases to start with.Edit:I've found a basic core database for starting at http://www.lisdude.com/moo/lambdacore-latest.zip
URL:
Re: Starting out with creating a mud
Where do you found the Moo server and the database? I want to try tocode in a Moo but I couldn't find any databases to start with.
URL: http://forum.audiogames.net/viewtopic.php?pid=301978#p301978
___
Re: If It Ain't Broke, Don't Fix It, Or Why I've Chosen to Lern VB6
I just want to say that security is proportional to the effort you want to spend on it.It's very true that the Python language isn't designed to hide your source code, but Ido know that some companies like Dropbox have
Re: Python: Let's discuss the pros and cons
I think Python might not be the problem, because audiogames usuallyrequire little processing power. Even if you need to do thousands ofcalculations per frame, you can use C extensions that interface withPython to do that for you.To see what is
Re: Namespaces in bgt - A Tutorial / Guide
Another possibility to see these features is looking the source code of the same AngelScript version used to make BGT.
URL: http://forum.audiogames.net/viewtopic.php?pid=325247#p325247
___
Re: List of audio games and there programming languages
BGT: Most of the Darkfleer titles.One more for Python: DMNB (the new version; the old version was written in PureBasic)._javascript_: Cyclepath, most of the old PB Games except TicTacToy that was written in C++.PureBasic: Death Match
Re: Blog post: Why does BGT get bashed?
Hello.The problem doesn't lie in the "releasing BGT's source code" thing.Well, let's make an hypothetical situation. Let's say that Philipreleased the BGT source code today and all of us have it.What will happen next? All the developers who depended
Re: 2D Framework released
@2maidi That was a good suggestion! I have added it.This framework is here to make things easy, not for complicate people's lives.@brian I have replied your PM.Ah something I forgot to say. Feel free to send pull requests with suggestions you think are good, it
Re: 2D Framework released
@Orin you can use git, but if you don't have git you can use this link https://github.com/thgcode/2dframework/ … master.zip
URL: http://forum.audiogames.net/viewtopic.php?pid=349393#p349393
___
Audiogames-reflector
Re: Blog post: Why does BGT get bashed?
Hello.The problem doesn't lie in the "releasing BGT's source code" thing.Well, let's imagine an hypothetical situation. Let's say that Philipreleased the BGT source code today and all of us have it.What will happen next? All the developers who
Re: Getting started in python game development
I have faced the same problem using Pygame and Pygame.mixer.You can fix it by putting this line, before the pygame.init() call:pygame.mixer.pre_init(44100, -16, 2, 1024)This will decrease the buffer size that pygame allocates for each sound
Re: 2D Framework released
Hello.I've pushed the repository to GitHub, since my Dropbox was blocked foran unknown reazon to me.https://github.com/thgcode/2dframework/@Brian, if you want to add to it, feel free. I'd happy to include yourchanges.About the 3d Sound libraries (OpenAL and
Re: Moving away from BGT and learning python
In Python, when you run the "my_fun" function, the variables are createdinside the function.When the function returns or when it ends, Python removes thevariables that are inside the function and restores thevariables that are declared outside
Re: Moving away from BGT and learning python
In Python, when you run the "my_fun" function, the variables are createdinside the function.When the function returns or when it ends, Python removes thevariables that are inside the function and restores thevariables that are declared outside
Re: how can you update the button's label in the wx EVT_BUTTON?
I did a quick test to see if it works and it worked on my computer.Here is the code I used (might help to solve your problem):import wxapp = wx.App()frame = wx.Frame(None, wx.ID_ANY, "Button Test", size=(640, 480))panel =
Re: Python, if statements, and complexity?
For the first example, I would define a function (note: i didn't test the code): def is_at_edge_of(self, object): return self.x==object.x-1 or self.x==object.x+1Or even better, you could have a function that calculates distancesfrom the two
Re: Python, if statements, and complexity?
@5 You can always shorten them by splitting the code in functions or by using the data structures provided with the language, at the same time, your code becomes more maintainable because if you want to change a specific part of theprogram you can
Re: Something i didn't understand
The <10 part completes the text adding spaces to the right while it doesn't reach 10 characters.So if you have a string ("abcd" for example) it will become "abcd " because abcd has 4 characters and 6 are left to complete the 10 remaining characters
Re: Something i didn't understand
The >10 part completes the text adding spaces to the left while it doesn't reach 10 characters.So if you have a string ("abcd" for example) it will become " abcd" because abcd has 4 characters and 6 are left to complete the 10 remaining characters
Re: Another question about pythonic syntax, yea!
Here's another way to generate the same list. It may be more useful if you have a big list or if you have a big function to filter the elements.x = [1,2,3,4,5,6,7,8,9,3,3,4,5,4,3]y = filter(lambda value: value != 3, x)The filter function
Re: Something i didn't understand
The <10 part completes the text adding spaces to the right while it doesn't reach 10 characters.So if you have a string ("abcd" for example) it will become "abcd " because abcd has 4 characters and 6 are left to complete the 10 remaining characters
Re: A question about reasons... think before posting
As much as I like other programming languages, for me what makes me not to drop BGT is its executable (and the program's size too) and9. BGT has a very simple and easy to use audio engine.Yes, there are other audio engines much better
Getting started developing FAQ
I often see people in this forum wanting to learn to code and don't knowing how to start, so I decided to create this topic to centralize the information we have.For this topic, I researched in actual topics what advice people gave and tried to compile the
Re: Would you ever wanna use both BGT and Python?
Here's a short example for those wanting to use BGT and Python together.const string script = "import win32api\nwin32api.MessageBox(0, \"Hello from Python\", \"Hello\", 0)";void main() { library python; python.load("python37.dll");
Re: Would you ever wanna use both BGT and Python?
@13 It's possible, but not practical. A very big workaround would beneeded to do this with BGT's library object. If you use C between Python and BGT, things get easier, but only a bit.However, I agree with @12. I would only use this if I
Re: Would you ever wanna use both BGT and Python?
@13 It's possible, but not practical. A very big workaround would be needed to do this with BGT's library object. If you use C between Python and BGT, things get easier, but only a bit.However, I agree with @12. I would only use this if I
Re: Python, input, and breaking the program
Here is a function that uses only Pygame and gets the input from the game window.The downside of this approach is that you'll need to implement the cursor keys yourself, but it works with capital letters and accents.def pygame_get_input():
Getting started developing FAQ
I often see people in this forum wanting to learn to code and don't knowing how to start, so I decided to create this topic to centralize the information we have.For this topic, I researched in actual topics what advice people gave and tried to compile the
Getting started developing FAQ
I often see people in this forum wanting to learn to code and don't knowing how to start, so I decided to create this topic to centralize the information we have.For this topic, I researched in actual topics what advice people gave and tried to compile the
Re: Getting started developing FAQ
Thank you for your additions. I edited the first post to add these libraries. Also, if you want to add another question or remove something, feel free to include it and I will edit the first post.
URL: https://forum.audiogames.net/post/429830/#p429830
Re: Programming languages for audio game development
See https://forum.audiogames.net/topic/2868 … oping-faq/ , maybe it could help a bit. It would be nice if everyone could edit the post to add instructions for other programming languages.
URL:
Re: shortcut function calls in bgt
@12 I didn't test this, but according to this question https://stackoverflow.com/questions/144 … ring-java, in Java, assuming that arr[i] is a string and the method is in the same class, you can do:getClass().getMethod(arr[i]).invoke(this);
URL:
Re: shortcut function calls in bgt
@2 It's possible, but not easy./* A simple example to demonstrate calling a function through an array */funcdef int calculate_operation(int num1, int num2); /* Define the signature of the functions that will be in our array */int add(int a, int b) {
Re: shortcut function calls in bgt
For calling a single function in BGT, it's almost the same thing, replace & with @ and typedef with funcdef and the proper syntax.In Python these things are much easier. For calling a function as a string we can use the getattr function:>>> import
Re: Accessing of applications on Linux with Java
@3 There's Java ATK wrapper ( https://github.com/GNOME/java-atk-wrapper ) that translates Java GUI events to the at-SPI interface that Orca can communicate with.In theory if you install Java ATK wrapper it might be possible to read Swing
Re: C input?
@1 If you don't know how to use pointers yet you can use a global variable, as your problem is returning 2 values and in the getIntInput function return if scanf succeeded or not, like this:Before the main function:int got_number;And after all the other functions:/* Returns 0
Re: For all who own discord servers with bots on them
I've coded a bot to send the messages written on the server to my NVDA and to make a sound when someone writes, though it's a hack to try to fix some of the accessibility bugs before Discord fixes it.To create a bot, you may need
Orca Remote: an Orca plugin that makes it work with NVDA Remote
Hello people.This is a plugin to make NVDA Remote and Orca work together, as the sound delay on Windows hosted virtual machines is not acceptable to use a screen reader correctly.Please read all the instructions on the Github
Re: Orca Remote: an Orca plugin that makes it work with NVDA Remote
@14 If you know how to implement it, feel free to make a fork and I will incorporate your changes.@13 It is possible (tested on Ubuntu Mate live, but more distros can work).Here are the instructions:1. Make an Ubuntu mate
Re: Orca Remote: an Orca plugin that makes it work with NVDA Remote
@16 You'll have speech when you install the plugin. This plugin is for the graphical interface. For pure console usage you can use a Virtualbox serial port but you don't need to do this to install Ubuntu Mate as it works
Re: Orca Remote: an Orca plugin that makes it work with NVDA Remote
@18 Maybe this can help a bit:https://stackoverflow.com/questions/180 … e-fake-inpThe libraries I use come directly from NVDA remote, so the API to get the key events from the network is the same.
URL:
Re: Orca Remote: an Orca plugin that makes it work with NVDA Remote
Hello people.I updated the repository to fix a bug that NVDA wasn't spelling words using the left and right arrow keys.To update your plugin, run the install script again and it will update the installed copy.
URL:
Re: Orca Remote: an Orca plugin that makes it work with NVDA Remote
@5 Thank you for the advice. I will consider this when the plugin gets more stable. I will need to learn how to make a GUI for it also as the installation process is console based and not too easy.
URL:
Re: Orca Remote: an Orca plugin that makes it work with NVDA Remote
@6 You can install it through the terminal, however I need to get remote keyboard working so it can send keys to the VPS.At the moment I only tested it with virtual machines. You can install it on a live system for example
Re: python socket host='localhost' vs host=socket.gethostbyname(socket.geh
@8 If you s.bind(('localhost', 12345)) the server will only listen for connections on its loopback interface (only for internal machine use).If you need to allow external clients to connect then you will want the
Re: python socket host='localhost' vs host=socket.gethostbyname(socket.geh
@13 No because if you run this code you'll get the IP address of the client. You will need to embed the servers' IP address on the code or get it somewhere if it will change frequently.Put it another way, you can't
Re: python wrapper for windows media player?
If you are using wx, try this https://wxpython.org/Phoenix/docs/html/ … index.html
URL: https://forum.audiogames.net/post/546147/#p546147
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
Re: using a dll in c#?
For the CSC compiler, you can add a reference using the /reference: command line switch, for example:csc /reference:TolkDotNet.dll program.csWill compile program.cs referencing the TolkDotNet.dll library.
URL: https://forum.audiogames.net/post/596370/#p596370
--
Re: trying to solidify my understanding of coding concepts, and failing
Yes, this example is a good way to apply the concepts you learned abouthandles. I'll make a example, let me know if you understood it, or if you became confused so I can explain it another way.In this example, we'll
Re: 2MB Game engine in the works -- any beta testers?
There's also Love2d (https://love2d.org/) which is also based on Lua and seems a bit more mainstream.
URL: https://forum.audiogames.net/post/608646/#p608646
--
Audiogames-reflector mailing list
Re: trying to solidify my understanding of coding concepts, and failing
Yes, this example is a good way to apply the concepts you learned abouthandles. I'll make a example, let me know if you understood it, or if you became confused so I can explain it another way.In this example, we'll
Re: trying to solidify my understanding of coding concepts, and failing
@5 Think the main body of the player class is the same idea as the top of your script, you can put only variables on it. To put instructions, you need functions, like "main" or the player's constructor.If you want to
Re: The Synthizer Thread
You can check the OGG support status on this issue ( https://github.com/synthizer/synthizer/issues/37 ), where I'm tracking it.In summary, the OGG decoder is implemented, but at the moment though stb_vorbis has a bug that makes it unable to load some files. There
Re: Java IDE Accessibility
@1 I'm using IntelliJ with NVDA, I installed the community version and it just workedout of the box. I found some issues with the debugger but the editor itself is very accessible.
URL: https://forum.audiogames.net/post/622232/#p622232
--
Re: Java Accessibility Query regarding Custom States
@1 I tried to do the same thing, and the conclusion I reached was the same as you, the states are hardcoded into NVDA, and if you create a new one it will ignore it because it can't translate it to a NVDA state, even though it's being
Re: how to get JDK 8 & JRE 8 with out having to make an oracle account
You can download it from AdoptOpenJDK ( https://adoptopenjdk.net/ ).
URL: https://forum.audiogames.net/post/617896/#p617896
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
Re: Extended PEMDAS.
You can also use eval to evaluate an _expression_, but please validate your input to see if it contains only numbers because if you're not careful it can run untrusted code.For example:>>> eval('2 * 3')6
URL: https://forum.audiogames.net/post/618928/#p618928
--
Re: A very interesting thing that happens to me
Some antivirus programs, when you open their interface, show a description of why the file was deleted. I don't remember if Windows Defender has this feature, but it would be worth to see if it has written something about why it deleted the
77 matches
Mail list logo