OMEGANAUT
Moderator: Moderators
Re: OMEGANAUT
The problems with ZGE on Android is split into new topic here: viewtopic.php?f=9&t=1368
Re: OMEGANAUT
New release for Omeganaut today!
What's new?
- New collision engine: ZgeBullet by Rado1
- New sets: Space, Asteroid Field, Planet, Moon, Canyon
- Harmful Asteroid shower
- Lots of stuff in Debug Mode
PC: https://www.txori.com/index.php?static21/omeganaut
Android: https://play.google.com/store/apps/deta ... .omeganaut
I'll have a few tweaks to make because debugging the collision engine while the collision shapes are invisible is quite difficult.
Now I'm going to work on music and sounds. I'm quite interested in SunVox. I'll start by adding it to the game and testing it on various Android phone before putting my hands into a new trap
What's new?
- New collision engine: ZgeBullet by Rado1
- New sets: Space, Asteroid Field, Planet, Moon, Canyon
- Harmful Asteroid shower
- Lots of stuff in Debug Mode
PC: https://www.txori.com/index.php?static21/omeganaut
Android: https://play.google.com/store/apps/deta ... .omeganaut
I'll have a few tweaks to make because debugging the collision engine while the collision shapes are invisible is quite difficult.
Now I'm going to work on music and sounds. I'm quite interested in SunVox. I'll start by adding it to the game and testing it on various Android phone before putting my hands into a new trap
Re: OMEGANAUT
Playing with music using Sunvox is a blast. I really like the Mega Man NES / Amiga Demo Maker feel about it. And I was wondering if it would be better and simpler to use SunVox for sounds FX too.
Because, appart from the laser and the power up sounds, I didn't managed to get something good with ZGE internal sound system, as the UI isn't that clear...
Are there any ZGE projects that are already using Sunvox, for SFX so I can ear how it sounds ?
Because, appart from the laser and the power up sounds, I didn't managed to get something good with ZGE internal sound system, as the UI isn't that clear...
Are there any ZGE projects that are already using Sunvox, for SFX so I can ear how it sounds ?
Re: OMEGANAUT
I released a new version of Omeganaut with temporary musics in order to program the sound mixer. I didn't use Sunvox for the SFX because I didn't find a clever way to make it work for that task. But surprisely, the music is covering the sound enough so the explosions are way better now
Now I'm working on the sky colors to be a bit less random. I wrote a quick #334d50 to RGB function, but now I'm having this problem:
intToStr(0x0f) and intToStr(strToInt("0x0f")) are not giving the same result. Is that normal?
Now I'm working on the sky colors to be a bit less random. I wrote a quick #334d50 to RGB function, but now I'm having this problem:
intToStr(0x0f) and intToStr(strToInt("0x0f")) are not giving the same result. Is that normal?
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2">
<OnLoaded>
<ZExpression>
<Expression>
<![CDATA[trace(intToStr(0x0f));
trace(intToStr(strToInt("0x0f")));
trace(intToStr(strToInt("0f")));]]>
</Expression>
</ZExpression>
</OnLoaded>
</ZApplication>
Re: OMEGANAUT
Hi,
The strtoint function in ZGE does not deal with hexvalues so I guess you are seeing some faulty value instead . It only supports simple integer decimal strings like "42".
The strtoint function in ZGE does not deal with hexvalues so I guess you are seeing some faulty value instead . It only supports simple integer decimal strings like "42".
Re: OMEGANAUT
Hi Ats,
K
Ehm .. it's super easy, you can simply trigger notes using the sv_send_event function. Attached is a example ( use left-mouse-button to trigger sound ). Do keep in mind that SunVox is ( generally ) a lot more computationally taxing compared to ZGE's sound engine.
As Ville mentioned, the built-in strToInt only supports decimal values. So, here's a quick & dirty function that converts decimal ( integer-only ) / binary / octal / hexadecimal strings into a integer ( no error checking, so make sure to pass valid strings ).
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2">
<OnLoaded>
<ZLibrary>
<Source>
<![CDATA[//
int numToInt(string num)
{
int l = length(num);
int mode = 0;
if((l > 1) && (ord(subStr(num, 0, 1)) == 0x30))
{
switch(ord(subStr(num, 1, 1)))
{
case 0x62: mode = 1; break; // Binary
case 0x6F: mode = 2; break; // Octal
case 0x78: mode = 3; break; // Hex
}
}
int x = 0;
for(int i=(mode?2:0); i<l; i++)
{
int o = ord(subStr(num, i, 1));
switch(mode)
{
case 0: // Decimal
if(o > 0x2F && o < 0x3A)
{
x = (x * 10) + (o - 0x30);
}
break;
case 1: // Binary
if(o > 0x2F && o < 0x32)
{
x = (x << 1) + (o - 0x30);
}
break;
case 2: // Octal
if(o > 0x2F && o < 0x39)
{
x = (x << 3) + (o - 0x30);
}
break;
case 3: // Hex
if(o > 0x2F && o < 0x3A)
{
x = (x << 4) + (o - 0x30);
}
else if(o > 0x40 && o < 0x47)
{
x = (x << 4) + (o - 0x37);
}
else if(o > 0x60 && o < 0x67)
{
x = (x << 4) + (o - 0x57);
}
break;
}
}
return x;
}]]>
</Source>
</ZLibrary>
<ZExpression>
<Expression>
<![CDATA[//
trace(intToStr(numToInt("15")));
trace(intToStr(numToInt("0b1111")));
trace(intToStr(numToInt("0o17")));
trace(intToStr(numToInt("0xF")));]]>
</Expression>
</ZExpression>
</OnLoaded>
</ZApplication>
- Attachments
-
- Foo.zip
- (1.18 KiB) Downloaded 725 times
Re: OMEGANAUT
Thanks for the explanations and the good examples
Send me both your postal address, so I can send you bottles of wine
So I made a new release with a shaky-shaky hyperspace:
Download game: https://www.txori.com/index.php?static21/omeganaut
Now I have this weird bug on Android Nvidia Shield TV: the gamepad is acting like a mouse. Nothing have changed in my game regarding gamepad input. Making a game is hard when every major companies are breaking things in your back...
Anyway, I think I'm going to make a boss fight for the next release
Send me both your postal address, so I can send you bottles of wine
So I made a new release with a shaky-shaky hyperspace:
Download game: https://www.txori.com/index.php?static21/omeganaut
Now I have this weird bug on Android Nvidia Shield TV: the gamepad is acting like a mouse. Nothing have changed in my game regarding gamepad input. Making a game is hard when every major companies are breaking things in your back...
Anyway, I think I'm going to make a boss fight for the next release
Re: OMEGANAUT
Hi Ats,
K
Do you mean the right analog stick of the Shield controller? Apparently when using the Shield controller with a application that doesn't target Android TV, the right analog stick is automatically used to control a mouse pointer. Below is a table i found on the NVIDIA support pages ...
K
Re: OMEGANAUT
That's the one. But the game was designed from the start to work with a gamepad (since the OUYA and Rado1 gamepad lib in fact), way before I added virtual gamepad buttons for touchscreen. The android manifest is targeting Android TV and everything was working smoothly until Nvidia last update. I'll dig that this weekend
Re: OMEGANAUT
New version today with the very first boss: LOTUS. I'm quite happy with this one
Re: OMEGANAUT
New version with a lot of debug and a brand-new bonus stage filled with a bunch of old foes:
I'm still trying to find the bug where a ZGEBullet rigid body is not destroyed when his parent model is removed, leaving an invisible obstacle in the middle of the field... Very hard to track since it is transparent
I'm still trying to find the bug where a ZGEBullet rigid body is not destroyed when his parent model is removed, leaving an invisible obstacle in the middle of the field... Very hard to track since it is transparent
Re: OMEGANAUT
Very nice screenshots
Re: OMEGANAUT
I'm still trying to make the gamepad to work under Android. So I tried pluggin my xbox360 controller on Windows and it's not working either.
I'm pretty sure I could play Omeganaut with my xbox360 controller before. So I searched for a project that claimed to work with that one. And Vector Locust says it does. But my controller is not working at all in Vector Lust. Even if it is recognized by Windows' joy.cpl and it's working on other games. Just tried Delver and No Man's Sky.
But I have another old gamepad and flightstick that works well with ZGE. That's really weird. So either my xbox360 is kinda broken, or Windows made something in the background of Windows 10 relating their gamepad?
Can someone with an xbox360 gamepad test my game or Vector Lust and tell me if it's working?
Edit:
I just tried vectorllust.exe and omeganaut.exe on linux using Wine, and the xbox360 gamepad is working fine. What's going on with Windows?
Edit 2:
So it seems that the gamepad don't work on USB3 port for some reasons with some exe files. And I only have USB3 on my Window computer
I'm pretty sure I could play Omeganaut with my xbox360 controller before. So I searched for a project that claimed to work with that one. And Vector Locust says it does. But my controller is not working at all in Vector Lust. Even if it is recognized by Windows' joy.cpl and it's working on other games. Just tried Delver and No Man's Sky.
But I have another old gamepad and flightstick that works well with ZGE. That's really weird. So either my xbox360 is kinda broken, or Windows made something in the background of Windows 10 relating their gamepad?
Can someone with an xbox360 gamepad test my game or Vector Lust and tell me if it's working?
Edit:
I just tried vectorllust.exe and omeganaut.exe on linux using Wine, and the xbox360 gamepad is working fine. What's going on with Windows?
Edit 2:
So it seems that the gamepad don't work on USB3 port for some reasons with some exe files. And I only have USB3 on my Window computer
Re: OMEGANAUT
Hi Ats,
Just tried a official wired Xbox 360 controller on a laptop running Windows 10 ( 64-bit ) version 17763.379 that only has USB 3.0 ports and it works just fine in ZGameEditor.
K
Just tried a official wired Xbox 360 controller on a laptop running Windows 10 ( 64-bit ) version 17763.379 that only has USB 3.0 ports and it works just fine in ZGameEditor.
K
Re: OMEGANAUT
YES. Thanks for testing
Good to know. I feared that it wasn't working everywhere. Then I'm just going to format my PC at some point
Good to know. I feared that it wasn't working everywhere. Then I'm just going to format my PC at some point