OMEGANAUT

Post screenshots, binaries and projectfiles of the projects you have made with ZGE that you want to share!

Moderator: Moderators

User avatar
VilleK
Site Admin
Posts: 2320
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: OMEGANAUT

Post by VilleK »

The problems with ZGE on Android is split into new topic here: viewtopic.php?f=9&t=1368
User avatar
Ats
Posts: 713
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: OMEGANAUT

Post by Ats »

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 :roll:
User avatar
Ats
Posts: 713
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: OMEGANAUT

Post by Ats »

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 ?
User avatar
Ats
Posts: 713
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: OMEGANAUT

Post by Ats »

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 :D

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>
User avatar
VilleK
Site Admin
Posts: 2320
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: OMEGANAUT

Post by VilleK »

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".
User avatar
Kjell
Posts: 1911
Joined: Sat Feb 23, 2008 11:15 pm

Re: OMEGANAUT

Post by Kjell »

Hi Ats,
Ats wrote: Fri Mar 01, 2019 10:15 amI didn't use Sunvox for the SFX because I didn't find a clever way to make it work for that task.
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.
Ats wrote: Fri Mar 01, 2019 10:15 amI 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?
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>
K
Attachments
Foo.zip
(1.18 KiB) Downloaded 725 times
User avatar
Ats
Posts: 713
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: OMEGANAUT

Post by Ats »

Thanks for the explanations and the good examples :)
Send me both your postal address, so I can send you bottles of wine :wink:

So I made a new release with a shaky-shaky hyperspace:
Image

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 :)
User avatar
Kjell
Posts: 1911
Joined: Sat Feb 23, 2008 11:15 pm

Re: OMEGANAUT

Post by Kjell »

Hi Ats,
Ats wrote: Thu Mar 07, 2019 5:58 pmNow 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.
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 ...

Image

K
User avatar
Ats
Posts: 713
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: OMEGANAUT

Post by Ats »

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 :roll:
User avatar
Ats
Posts: 713
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: OMEGANAUT

Post by Ats »

New version today with the very first boss: LOTUS. I'm quite happy with this one :D

Image
User avatar
Ats
Posts: 713
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: OMEGANAUT

Post by Ats »

New version with a lot of debug and a brand-new bonus stage filled with a bunch of old foes:

Image

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 :roll:
User avatar
VilleK
Site Admin
Posts: 2320
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: OMEGANAUT

Post by VilleK »

Very nice screenshots :)
User avatar
Ats
Posts: 713
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: OMEGANAUT

Post by Ats »

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? :x

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 :lol: :roll:
User avatar
Kjell
Posts: 1911
Joined: Sat Feb 23, 2008 11:15 pm

Re: OMEGANAUT

Post by Kjell »

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
User avatar
Ats
Posts: 713
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: OMEGANAUT

Post by Ats »

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 :lol:
Post Reply