2016-06-04 09:09:36

Hello!
Who knows, please tell me which language is easier to use for the development of sound games?
I am interested in games like ultrapower, stw, and to work with sound, and the network was simple.
I have often written about the forum network in BGT, but did not get a good answer. I decided to use other tools!
Thanks in advance!

2016-06-04 15:53:02

Do you know how to code?
I also need a coder Jxter
well python is a good language and I have written a four line code and I think it is easy than BGT
However I never tried pure basic
I have read a book on pure basic and the book was the crap one.
Thanks in advance
Ishan

life's battle do not always go to the stronger and faster man,
But sooner or later who win the one who thinks he can!

2016-06-04 16:08:28

Hello.
I think that the best language for writing audio games is BGT.
Why? It generates very small executables, it contains all the functions
you'll need out-of-the-box and is simple to learn.
Python and PureBasic, on another hand, are general-purpose programming languages.
This means that you can create anything you want with them, but they contain only the basic tools to code the applications.
I think that you should try to code some offline games first.
Not will They give you more experience in writing code, with them you'll
learn the architecture of an audiogame and become proficient with the language you chose.
And most importantly, don't worry if you make misstakes. They are the
best ways to learn and improve.
Of course, that is only my oppinion.
While BGT is good for audiogame programming, Python and Purebasic can be
good to create very wide types of applications.
Hope this helps.

2016-06-04 16:27:43

@thggamer I have to make 1 small correction. BGT generates very large executables because Phillip ahs statically linked all of the libraries he's using, and it always includes every library in a compiled executable even if it's used or not. So a BGT application will be 800 KB in size minimum. A pure basic app will be 7 or 8 times smaller.

Now as far as specificaly comparing PB and python, they will both over all let you do much more than BGT. Pure Basic will probably give you a smaller learning curve, as all the tools you will need to make games (sound, input and networking) are included and at least on Windows have comparable functionality to BGT's Python will require more learning, but it's free unlike PB, has more community support and you can use libraries like libaudioverse with it.

<Insert passage from "The Book Of Chrome" here>

2016-06-04 16:35:55

in which language is easier with the network?

2016-06-04 19:40:02

Hi,
i am a python / c++ programmer. I tried do games in bgt, but I haven't write in pb.
bgt, is a good begin, when do you want to do little thinks and when you want to got quick results.
When you learn bgt, you can write very quick the thinks, what do you want.

But, python is a very easy language, it is portable, this means the games can work on windows, linux and mac os.
The language is very easy to understand and very quick in the running program.
You can try thinks with the interpreter and it exist many packages for different thinks.
Whit python you can do most of all, what do you need, physic, 3d sound, network and so on.
For the beginning with python, i recoment you, use pygame or pyaudiogame.
When you wrote your first realy projects, you can collect experince and can work with the language.
When you are on a point, where you can say, that pygame can't do, what do you want, then use panda3d for very complex or pygleet.

With bgt, you can do thinks, but not all of them, I don't like limits for me, I want a language where I can do what I want...
:-)

Whatever, for each language it exist many users here, who can help you.
When you need help, ask!

sorry for my english, I hope you have understood me.

2016-06-04 23:35:37 (edited by magurp244 2016-06-04 23:40:24)

The thing to keep in mind is that all programming languages share certain similarities, so learning one language can help you better understand and learn others. Whats important is to choose a language that you feel comfortable with. In time you will likely end up learning other languages and go from there.

As for networking, I not sure there's any particular language where networking would be considered "easy". In many cases networking could be considered a form of advanced programming as you should already have a grasp of the fundamentals before attempting it, the reason for this has more to do with the inherent problems with communicating securely and reliably between two computers more than it does with any particular language. Put simply, its much harder to suss out networking problems like Floating Point Determinism, Network Stability, and Communication Protocols when you don't even understand the language such problems are framed in. Focus on learning a language first, then start thinking about networking.

As i've suggested to others, I would recommend Python as its well documented, versatile, and easy to pick up. It does also have various network solutions and API's that you can look into as you become more familiar with it.

You can download Python here: Python 2.7.11

And check out the guide book Learn Python The Hard Way which can help you learn and familiarize you with the language by providing useful information, questions, and problems for you to solve.

-BrushTone v1.3.3: Accessible Paint Tool
-AudiMesh3D v1.0.0: Accessible 3D Model Viewer

2016-06-05 00:42:31

I know the basics of Python.
I am now interested in a particular solution to create sidescroller, and 3D shooters.
BGT is not The game is intended for programming online games. Because I need to select or PureBasic, or Python. Since this is a simple programming language. I do not like complexity.

2016-06-05 01:22:00 (edited by magurp244 2016-06-05 01:26:40)

Complexity is unfortunately an unavoidable occupational hazard of programmers, but if you already understand some amount of Python then I will skip ahead and suggest some API's you may find useful.

Pyglet has a number of built in audio functions and can handle wav files by default, you can also install AvBin to help load other audio formats like MP3's or OGG, but its been known to be quite tempermental. Pyglet also has bindings for OpenAL which can also handle 3D positional audio, I have some example scripts that demonstrate how to use them in my repository over here.

There's also PyAL, which is a more basic OpenAL API that doesn't handle graphics, keyboard, or mouse input the way Pyglet does. The examples in my respository are compatible with it however. Then there's Pyttsx which you can use for TTS speech. You could also look into PyGame, which has many of the capabilities of Pyglet.

For networking, you can use Twisted Matrix, it has a number of dependancies like Zope.Interface and PyWin32 you'll also need to install along side it however. It may be worth noting that much of my current networking experience is with Twisted Matrix integrated with Pyglet. You could also look into Pythons built in Sockets here and here. There are various tutorials and guides scattered about, and you could also try to find a copy of the book: Foundations of Python Network Programming, to help you along.

-BrushTone v1.3.3: Accessible Paint Tool
-AudiMesh3D v1.0.0: Accessible 3D Model Viewer

2016-06-05 03:07:23

can someone give examples using pyglet, pyaudiogame, pyall, pygame?

2016-06-05 03:58:40

Here is a basic Pyglet script demonstrating keyboard input, creating a window, loading, and playing a sound:

import pyglet

#open a 640x480 window to display images and capture input.
window = pyglet.window.Window(640,480)

#load a sound
sound = pyglet.media.load('test.wav',streaming=False)

#capture key presses
@window.event
def on_key_press(symbol,modifiers):
    if symbol == pyglet.window.key.SPACE:
        print "Space Bar pressed"

#if press enter, play sound
    elif symbol == pyglet.window.key.ENTER:
        print "Playing sound"
        sound.play()

#capture key releases
@window.event
def on_key_release(symbol,modifiers):
    if symbol == pyglet.window.key.SPACE:
        print "Space Bar released"

#draw images to the window
@window.event
def on_draw():
    window.clear()

#start event loop
pyglet.app.run()

The OpenAL 3D audio examples in my repository are self contained and load wav files, to use them with pyglet or pyal, just comment and uncomment the required imports at the start of the script.

-BrushTone v1.3.3: Accessible Paint Tool
-AudiMesh3D v1.0.0: Accessible 3D Model Viewer

2016-06-05 05:38:40

Thank you!
I still have questions:
I know the basics of Python. The variables, conditions, loops, lists. Working with libraries. But some things in your code, I can not understand.
@ window.event
What is it and why you need the @ sign?
def on_key_pressed
def on_key_released
where these functions are called?
Where can I read?

2016-06-05 07:01:32 (edited by magurp244 2016-06-05 07:02:33)

You can find a programing guide and Pyglet's documentation here in Pyglets repository. The [ a-t ] window.event is a pyglet function to check for a system event in the window, such as a key press or something being drawn to the screen, which then triggers the functions beneath the [ a-t ] window.event, such as on_key_press and on_key_release. Its not entirely necessary to use window.event, but that was just an example.

-BrushTone v1.3.3: Accessible Paint Tool
-AudiMesh3D v1.0.0: Accessible 3D Model Viewer

2016-06-05 07:57:41

Why do I need the @ sign?

2016-06-05 09:18:57

The [ a-t ] sign is part of how you set event handlers in Pyglet as discussed here in the documentation, though I rarely write code this way. For reference, here is another example not using such event handlers by sub-classing pyglets window class.

import pyglet

#sub class of window
class Example(pyglet.window.Window):
    def __init__(self):
    #have window sub-class call itself to set parameters
        super(Example, self).__init__(640, 480, resizable=False, fullscreen=False, caption="Test")

    #have pyglet repeatedly call our update function every 0.2 seconds
        pyglet.clock.schedule_interval(self.update, .02)

#main update loop
    def update(self,dt):
        self.draw()

#draw screen
    def draw(self):
        self.clear()

#capture key presses
    def on_key_press(self,symbol,modifiers):
        if symbol == pyglet.window.key.SPACE:
            print 'space pressed'

    #press escape to close program
        elif symbol == pyglet.window.key.ESCAPE:
            self.close()

#capture key releases
    def on_key_release(self,symbol,modifiers):
        if symbol == pyglet.window.key.SPACE:
            print 'space released'

#load custom window class
window = Example()

pyglet.app.run()
-BrushTone v1.3.3: Accessible Paint Tool
-AudiMesh3D v1.0.0: Accessible 3D Model Viewer

2016-06-05 10:04:30

I think that it would be easier to PureBasic.

2016-06-05 11:41:21

someone has examples sidescroller on PureBasic or python?

2016-06-05 13:09:45

Hello,
When I decided to dive into programming more seriously, I've chose Python. It has many libraries and you can do a lot with it, including gaming and there are more gaming libraries and more audio libraries you can choose from. Python also has easy to read code, and comparing to PB, Python is freeware. Honestly although I've purchased PB, I haven't made any game with it yet, but that's just because I'm more familiar with coding in Python. In my case, BGT was not so easy to learn for me like Python was.

2016-06-05 13:12:12

jonikster wrote:

someone has examples sidescroller on PureBasic or python?

I'm currently writing side scroller in Python with Pyglet, accessible_output2 and sound_lib. I'll probably post tutorial once I complete enough basic stuff.

2016-06-05 13:24:41

To contact you via Skype or email?
I would like to talk about Python with you personally.

2016-06-05 18:17:51

My email is [email protected]. My Skype is hrvojekatic. though you will need to introduce yourself in the introductory message since I don't accept people who I don't know.

2016-06-06 01:51:41

I have now interested in what programming language you need to write less code. on PureBasic or Python

2016-06-07 20:41:15

Hi,
I'd recommend PureBASIC if you want a lot of functionality that's hard to find anywhere else (accept Python, which owns by comparison). I'd recommend Python if you want text processing services, binary data services, unusual data types, numeric and mathematical modules, functional programming modules, file and directory access, data persistence, data compression and archiving, file formats, cryptographic services, generic operating system services, concurrent execution, interprocess communication (IPC) and networking, internet data handling, structured markup processing, internet protocols and support, multimedia services, internationalization, program frameworks, graphical user interfaces (GUIs), development tools and libraries, debugging and profiling, software packaging and distribution, python runtime services, the ability to create your own custom python interpreters (within python itself), advanced module importers, python language services, miscellaneous services, Microsoft Windows specific services, Unix specific services, the ability to load antiquated and/or archaic modules, the ability to use undocumented modules, and the ability to embed and extend the interpreter, all built-in into the interpreter. PureBASIC has a lot of things that are unnecessary, but can be useful only at certain times.

"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."    — Charles Babbage.
My Github

2016-06-07 21:18:39

Tell me what I need if I want to create sidescrollers, next 3d shooters?
I am wondering where I have to write less code.
I do not like complexity.

2016-06-07 22:07:47

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 creating
even the most basic things.
A side scroller is easier, but even with that, you'll need to write the
game's engine and the game itself.
Purebasic, Python and BGT only provide the building blocks for doing that.
The rest you need to code with the tools that the language provides.