QB64 Phoenix Edition
Old invader game - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Programs (https://qb64phoenix.com/forum/forumdisplay.php?fid=7)
+---- Thread: Old invader game (/showthread.php?tid=1888)

Pages: 1 2 3


RE: Old invader game - grymmjack - 08-16-2023

(08-16-2023, 11:18 PM)mnrvovrfc Wrote: File types self-styled for a 16-bit program. Have to study the source code to know precisely how a file type goes.

.SPR is a sprite. Likely this could be replicated into DATA statements with simple hexadecimal numbers, or like what the TheBob did. LOL.
.FNT is a font.
.SFX is a sound to be loaded into the Sound Blaster FM chip or alike hardware.
.SCR is probably a BSAVE screen image or something analogous to a BMP or PCX or something else.

Ahhhh OK. thanks.

Just arbitrary stuff then perhaps I get you. Was this BSAVE SCR a common thing? Curious about the formats will dig more with your hints.


RE: Old invader game - grymmjack - 08-16-2023

I was not able to successfully build the sound version. I put all the sounds and files from that archive in the same dir as the original zip, is this how it should work @Steffan-68 ?


RE: Old invader game - a740g - 08-17-2023

I can get the FM emulation to work.

I recently got FM based MIDI working using the OPL3 core from ymfm (aaronsgiles/ymfm: BSD-licensed Yamaha FM sound cores (OPM, OPN, OPL, and others) (github.com)).

a740g/MIDI-Player-64: A MIDI player & library for QB64-PE (github.com)

Hopefully over the next weekend... let's see.


RE: Old invader game - bplus - 08-17-2023

(08-17-2023, 03:51 AM)a740g Wrote: I can get the FM emulation to work.

I recently got FM based MIDI working using the OPL3 core from ymfm (aaronsgiles/ymfm: BSD-licensed Yamaha FM sound cores (OPM, OPN, OPL, and others) (github.com)).

a740g/MIDI-Player-64: A MIDI player & library for QB64-PE (github.com)

Hopefully over the next weekend... let's see.

Jesus! Man I am glad you're on our side Smile  Do you work mainly in Linux?


RE: Old invader game - a740g - 08-17-2023

(08-17-2023, 08:42 AM)bplus Wrote:
(08-17-2023, 03:51 AM)a740g Wrote: I can get the FM emulation to work.

I recently got FM based MIDI working using the OPL3 core from ymfm (aaronsgiles/ymfm: BSD-licensed Yamaha FM sound cores (OPM, OPN, OPL, and others) (github.com)).

a740g/MIDI-Player-64: A MIDI player & library for QB64-PE (github.com)

Hopefully over the next weekend... let's see.

Jesus! Man I am glad you're on our side Smile  Do you work mainly in Linux?
Big Grin No. I usually do all my dev work on Windows. But I do test on Linux (WSL2 & Ubuntu) and occasionally on macOS.


RE: Old invader game - Steffan-68 - 08-17-2023

(08-16-2023, 11:18 PM)mnrvovrfc Wrote: File types self-styled for a 16-bit program. Have to study the source code to know precisely how a file type goes.
.SPR is a sprite. Likely this could be replicated into DATA statements with simple hexadecimal numbers, or like what the TheBob did. LOL.
.FNT is a font.
.SFX is a sound to be loaded into the Sound Blaster FM chip or alike hardware.
.SCR is probably a BSAVE screen image or something analogous to a BMP or PCX or something else.

Yes, so far everything is correct
.SCR is the high score file. This is also regenerated by the program if it is deleted. Anything dated 1997 just looks weird


RE: Old invader game - Steffan-68 - 08-17-2023

(08-16-2023, 11:50 PM)grymmjack Wrote: I was not able to successfully build the sound version. I put all the sounds and files from that archive in the same dir as the original zip, is this how it should work @Steffan-68 ?

That's right, and that's how it works for me.
I just didn't put the changed BAS file in the zip archive, which is posted in my post.


RE: Old invader game - a740g - 08-20-2023

Alright folks. Here it is, with complete FM/OPL3 emulation. I used the Nuked OPL3 emulator from nukeykt/Nuked-OPL3: Highly accurate Yamaha OPL3 (YMF262, CT1747) emulator (github.com)

I also found and fixed quite a few bugs and typos in the original code. There may be more. If I find more, I'll fix and update those on my GitHub: https://github.com/a740g/QB64-Museum/tree/main/TimTruman/QB-Invaders

Cheers!


RE: Old invader game - Steffan-68 - 08-20-2023

(08-20-2023, 06:41 PM)a740g Wrote: Alright folks. Here it is, with complete FM/OPL3 emulation. I used the Nuked OPL3 emulator from nukeykt/Nuked-OPL3: Highly accurate Yamaha OPL3 (YMF262, CT1747) emulator (github.com)
I also found and fixed quite a few bugs and typos in the original code. There may be more. If I find more, I'll fix and update those on my GitHub: https://github.com/a740g/QB64-Museum/tree/main/TimTruman/QB-Invaders
Cheers!
Hey great job. Heart
I couldn't have done that, thanks.
It sounds different to me than the original, but it's good.
The original was running in the DOSBOX and I tried to record the sound as best as I could and it sounds somehow different.
I had attached the sound further up in the 7zip file.

There is still an error, the top right is still missing the display of how much life you still have. Don't know how I fixed it at the moment.
And the pallet rolling is also missing. I had fixed that, but probably exaggerated a bit.

I'll take a closer look at your changes and hopefully learn something from them.
Now I'm going to sleep first, I have to work again tomorrow.


RE: Old invader game - a740g - 08-21-2023

(08-20-2023, 07:59 PM)Steffan-68 Wrote:
(08-20-2023, 06:41 PM)a740g Wrote: Alright folks. Here it is, with complete FM/OPL3 emulation. I used the Nuked OPL3 emulator from nukeykt/Nuked-OPL3: Highly accurate Yamaha OPL3 (YMF262, CT1747) emulator (github.com)
I also found and fixed quite a few bugs and typos in the original code. There may be more. If I find more, I'll fix and update those on my GitHub: https://github.com/a740g/QB64-Museum/tree/main/TimTruman/QB-Invaders
Cheers!
Hey great job. Heart
I couldn't have done that, thanks.
It sounds different to me than the original, but it's good.
The original was running in the DOSBOX and I tried to record the sound as best as I could and it sounds somehow different.
I had attached the sound further up in the 7zip file.

There is still an error, the top right is still missing the display of how much life you still have. Don't know how I fixed it at the moment.
And the pallet rolling is also missing. I had fixed that, but probably exaggerated a bit.

I'll take a closer look at your changes and hopefully learn something from them.
Now I'm going to sleep first, I have to work again tomorrow.
Thanks!
Yeah. I may have missed the palette and health stuff because I worked on the original sources. I'll try and look at both our changes and combine those.