Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - S. P. Gardebiter

#61
Announcements / Re: V8 beta
2010-Jul-09
Does NOT work with IF? :x
Also waiting for compressed sound support ;_; (If ever)
#62
2D / Re: Drawing with DEPTH
2010-Jul-09
Well, there is a way you could do that with code too o:
But with real depth it would be easier for some things, yes.
#63
Hi, ich hab da eine Funktion, die greift auf ein gloables Array zu.
Der Precompiler mags nicht so ganz, aber funktionieren tut alles ganz prima.
Ist das jetzt ein Grund zur Sorge? :>

Code (glbasic) Select
GLOBAL MapTiles%[]; DIM MapTiles%[40][29]

Code (glbasic) Select
FUNCTION MapCollision: OffsetX%, OffsetY%

SELECT GLOBAL MapTiles[OffsetX][OffsetY - 1]
CASE 0
RETURN FALSE
CASE 1
RETURN TRUE
CASE 2
GLOBAL MapTiles[OffsetX][OffsetY - 1] = 0
RETURN FALSE
CASE 3
// Stone
RETURN TRUE
CASE 4
INC GLOBAL Ruby, 1
PLAYSOUND(2, 0, 1)
GLOBAL MapTiles[OffsetX][OffsetY - 1] = 0
RETURN FALSE
CASE 5 TO 6
RETURN TRUE
CASE 8
IF GLOBAL Ruby >= GLOBAL MapRuby
RETURN TRUE
INC Level, 1
GameMode = 5
ELSE
RETURN FALSE
ENDIF
CASE 9
RETURN TRUE
ENDSELECT

ENDFUNCTION


Code (glbasic) Select
"Maze.gbas"(1007) warning : variable already exists : MapTiles
"Maze.gbas"(1015) warning : variable already exists : MapTiles


Er meckert nicht bei der Select Anweisung, sondern bei der Wertzuweisung.
Bei mir funktioniert aber alles.

Edit: Oder hängt es damit zusammen dass ich die Variable schon als global definiert habe bei der Deklaration?
#64
Quote from: Kitty Hello on 2010-Jun-30
that's not lossless then. Well, suggest what I should do now. I don't see a way to play corss platform OGG files. Do Linux and Mac platforms already support OGG with PLAYMUSIC? (can someone test, please) In that case I'd only have to cover Win32 and WinCE. The first of them might be doable, but WinCE is definitely bad.

I'm not sure. If uncompressing at game start is no solution, then I don't know o: Perhaps there is a LPGL OGG Vobis libary. A long time Linux user told me, that Linux does support OGG Vobis (as a codec), while a native Windows version does not. (Not sure about Mac though) I can't play OGG's with PLAYMUSIC, so it seems that umcompressing is the only solution D:
Or a own file format. But I don't know anything about compression :/
#65
Quote from: Kitty Hello on 2010-Jun-30
shoeboxxed wav files? I would not be able to stream them, but they are about the size of a lossless ogg container.

You sure? :/
My wave file: 2,84 MB
My wave file in a showbox: 2,37 MB
My wave file as a ogg: 255 KB
#66
I would be fine with using OGGs for PLAYMUSIC/PLAYSOUND too.
I have googled about the OGG file format too, but I can't find anything aside from C/C++ Source Codes >_>;
And I don't know any C/C++ :/

All I ask for is compression, a own file format would be fine too :/
#67
@Kuron:

Oh really?
Why does PLAYMUSIC support MP3's then? ::)
#68
I just thought that it should be in GLBasic, since I it's so common, I can't even believe that it's not supported. The problem with uncompression is always the file format. I will see what I can do, I just hope that it's not too slow if I uncompress them with GLBasic rather than INLINE C. If I'm able to uncompress them, I will make the functions to do so public.

Quote from: Kitty Hello on 2010-Jun-09You might try the fmod or bass dll if it's windows/linux/mac only.

The problem with 3rd party libaries is usually the license.
#69
Quote from: Ian Price on 2010-Jun-09
Can't you just play them as music using the PLAYMUSIC command,  or is there music playing as well?

Please read my posts:

Quote from: S. P. Gardebiter on 2010-Jun-09Why? I already explained it o: I want to play some ambient sounds and they may overlap.

But sometimes there is music playing as well.

I don't get whats so hard to get MP3 support working for Sounds. It's working with music too.
#70
Quote from: Kitty Hello on 2010-Jun-08
no. I don't see any need for that

Why? I already explained it o: I want to play some ambient sounds and they may overlap. Games need atmosphere. If I use wavs they are 2 MB big but if I use MP3s they are only 200 kB big. It would be insane if I only would use 15 of them (30 MB versus 3 MB and 15 wouldn't be much soundfiles). My internet connection will die and my beta testers will complain about the huge download.
Also MP3 is a very common format, more common than wav. Why is there no need for this and why does PLAYMUSIC support MP3s and PLAYSOUND does not?

Quote from: Kitty Hello on 2010-Jun-08and it's definitely not doable x-platform for me.

There are several ways to implement this:
You could decode the MP3 and save it as a wav on the harddisk and then you could play it. Or you could decode it and load it into the ram. Should work for any platform. Decoding MP3s shouldn't be that hard. I would even code it, if you want.
#71
So what about playing compressed soundfiles with LOADSOUND? o:
Is it atleast on the todo list?
#72
Quote from: Ian Price on 2010-Jun-05
Can you not convert them to .ogg or .mp3?

That's what I want to do but I read in the help file that GLBasic is not able to use .mp3's for sounds. (Only for music.)
#73
I really need this. Having a bunch of 2 MB wav files, just because I would like to play some ambient sounds for the atmosphere isn't funny guys :/
#74
Thanks Gernot.
How fast is this function?
#75
Ups. Tut mir leid Gernot, natürlich mache ich SETSCREEN.
Ich Idiot hab es mit USESCREEN verwechselt.
Mein Fehler.

Quote from: Kitty Hello on 2010-May-20
Hat der 2 Monitore? Ich werde das bei SETSCREEN jetzt immer in die Mitte packen, OK?

Ja der hat 2 Monitore. Hm, was ich jetzt genau machen muss, ist eigentlich nicht so wichtig. Hauptsache ist eigentlich, dass ich eine Lösung habe die multiplatform und einigermaßen schnell ist. Also würde das mit dem SETSCREEN klar gehen o: