#34 Add MIDI support like in unreleased PC/DOS/Windows version
~soniccis96 commented on libremo todo
#34 Add MIDI support like in unreleased PC/DOS/Windows version
~soniccis96 filed ticket on libremo todo
About: This is an incomplete clone of the Sharp X68000 game "Cyberblock Metal Orange EX". License: LibreMO is free software, licensed under version 3 (or any later version) of the GNU General Public License. Note: I might choose to relicense the project as GPLv2 in the future. If you submit any patches, you're agreeing that your code can be relicensed as GPLv2. See the libremo-devel mailing list for development discussion and patch submission. https://lists.sr.ht/~ndiddy/libremo-devel How to use: 1. Follow the instructions in the moexconv repository to extract all the graphics from your copy of Cyberblock Metal Orange EX, but run moexconv with the -p option to create pak files. Copy all the files from the out/ directory into the gfx/ directory here. 2. Copy the "MO.STD" file from Disk A of Metal Orange EX to the gfx/ directory. 3. Download the PC-88 Cyberblock Metal Orange pack from VGMRips and unzip it to the music/ directory. Download "Opening (with SFX)" from the PC-98 Carat pack from VGMRips and save it to the music/ directory. This step is optional, but without it the game will not have any music. 4. Compile and run the program with "make run". It depends on SDL2 and SDL2-image, and a C++20 compiler. Alternatively, you can compile with Visual Studio 2022 on Windows. Controls are WSAD for movmement and J, K, Enter, and Esc for buttons. Note that a lot of the time, I hardcode the game to start in the game playing state, so if you want it to boot from the start you can change the state variable in main.cpp to STATE_LOGO. Compilation note: Because Windows and Linux have different feature sets (Linux has better C language debugging software, and Windows has X68000 emulators with debugging support), I will flip-flop between them depending on what I'm doing. This might mean that at some points, the Makefile will not have some files, and at other points the Visual Studio project won't have some files. It should be easy enough to add the missing files to either of these depending on what platform you use. Status: For current stuff to work on, look at the libremo issues tracker. https://todo.sr.ht/~ndiddy/libremo Used software: sdl2 ---- Copyright (C) 1997-2021 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. sdl2_image ---------- Copyright (C) 1997-2021 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. stb_vorbis ---------- Copyright (c) 2017 Sean Barrett Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ymfm ---- Copyright (c) 2021, Aaron Giles All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. em_inflate ---------- Copyright (c) 2019 Emmanuel Marty This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution.