nicholas-ochoa / OpenSC2K

OpenSC2K - An Open Source remake of Sim City 2000 by Maxis
GNU General Public License v3.0
4.97k stars 86 forks source link

Extract and utilize original game assets #28

Closed nicholas-ochoa closed 4 years ago

nicholas-ochoa commented 6 years ago
cursorial commented 6 years ago

Game music can be played with:-

PixiJS extension: https://github.com/pixijs/pixi-sound

or

PhaserIO includes a sound module: https://phaser.io/examples/v2/audio/sound-complete

nicholas-ochoa commented 6 years ago

I think both of these APIs utilize the WebAudio API which doesn't seem to support MIDI or XMI files (what the Windows / DOS versions of the game utilize for music). WAV audio for sound effects shouldn't be a problem at least.

nicholas-ochoa commented 6 years ago

The re-write broken pretty much all of this code, I'm looking at fixing it over the next few days so I can finally remove the assets

pranaygp commented 6 years ago

Is it perhaps possible to convert the MIDI files first (to m3 or wav) and then use them?

nicholas-ochoa commented 5 years ago

Pushed to the top of the priority list now that the repo is back online. I've already got a mostly working prototype, but need to clean up a few things that broke with some of the changes to Phaser over the last few months.

dfloer commented 5 years ago

I know @rage8885 already know about this, but if anyone else is looking to help, I cleaned up the documentation around the sprite file specs and made it public.

https://github.com/dfloer/SC2k-docs/blob/master/sprite%20data%20spec.md

Newspaper and other text specs here: https://github.com/dfloer/SC2k-docs/blob/master/text%20data%20spec.md