Author Topic: Pac3D Demo  (Read 3868 times)

0 Members and 1 Guest are viewing this topic.

Peter

  • Guest
Pac3D Demo
« on: October 25, 2010, 09:22:53 AM »
Deleted
« Last Edit: April 14, 2015, 03:39:49 AM by Peter »

Charles Pegge

  • Guest
Re: Pac3D Demo
« Reply #1 on: October 25, 2010, 11:05:06 AM »

Many Thanks Peter!

This is a very significant first for Oxygen.

My survival time is around 4 seconds - I might improve with practice. In between bouts of hardcore programming.

Your game works fine on my PC with Alpha018 but not with Alpha019 which I am working on at present. 019 has had a complete rework of the string management and garbage collection system correcting a few more memory leaks.. So I would advise including Alpha018 Oxygen.dll with your game as a complete package. I will Also retain 018 on SourceForge for a while.

Charles

Charles Pegge

  • Guest
Re: Pac3D Demo
« Reply #2 on: October 27, 2010, 12:49:43 AM »
Thanks Peter.

O2 can read C headers but It will be good to have a cmpact 'MinWin' with all the essentials for accessing the Windows API.

I wonder if Linux uses the same keyboard mappings. - if most of these are scan-codes direct from the keyboard..

Charles

kryton9

  • Guest
Re: Pac3D Demo
« Reply #3 on: October 27, 2010, 04:47:45 PM »
Very cool Peter. Ran smoothly here and is fun. I have yet to beat it, but got close, got all the yellow pills and atoms, couldn't lay any bombs, so I am doing something wrong. Got killed trying to lay a bomb.

Charles Pegge

  • Guest
Re: Pac3D Demo
« Reply #4 on: October 29, 2010, 06:04:22 AM »
Hi Peter,

Oxygen strings are dynamic - which means indirect bstring. Try this:

     Dim song as long
     Dim snd as string
     snd = "tada.wav"
     song = *snd
            
     push 1
     push 0
     push song  
     call PlaySound

« Last Edit: October 29, 2010, 06:06:23 AM by Charles Pegge »

Charles Pegge

  • Guest
Re: Pac3D Demo
« Reply #5 on: October 29, 2010, 06:03:53 PM »
You could use a zstring buffer instead:

Dim song as long
     Dim snd[128] as zstring
     snd = "tada.wav"
     song = &snd
             
     push 1
     push 0
     push song   
     call PlaySound

or even a string literal:

             
     push 1
     push 0
     "tada.wav"
     push eax

     call PlaySound

Charles