Mage Bros. Native
=================

This repository contains code under different terms. Read all three parts.


1. The port's own code: MIT License
-----------------------------------

Applies to everything in this repository EXCEPT the paths listed in part 2 and the third-party
files listed in part 3. That is: src/core, src/gfx, src/audio, src/input, src/ui, src/main.cpp,
src/framework/interp.cpp and interp.h, tools, tests, the build files, res/ and the documentation
(all original work; the engine layers come from Hopmon Native, by the same author).

Copyright (c) 2026 <YOUR NAME>

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.


2. Reconstructed game code: NOT covered by the MIT License
----------------------------------------------------------

  src/game/       reconstruction of the game logic of Mage Bros.,
                  (c) 2003-2009 Saito Games
  src/framework/  (except interp.cpp/interp.h) reconstruction of the DirectX 7 SDK
                  sample framework the game was built on, (c) Microsoft Corporation,
                  with Saito Games' modifications (shared with Hopmon Native)

These files reproduce the behaviour and structure of the original program so that it can
run on modern systems. The rights to that original work belong to its owners, and no
license to it is granted here. Native additions inside these folders are marked "Native"
in the source comments.

Mage Bros., its name, artwork, levels, sounds and music are (c) Saito Games, and its MIDI
music is (c) Yamaha Corporation. None of them are included in this repository; they are
read at runtime from the user's own copy of the freeware game.


3. Third-party code
-------------------

The files in third_party/ keep their own licenses, listed in THIRD_PARTY_NOTICES.md:

  third_party/coldet/  ColDet 1.2, (c) 2000 Amir Geva, GNU LGPL version 2 or later
                       (third_party/coldet/COPYING). The collision library the original
                       game was built with, included unmodified.
  third_party/*.h, *.c TinySoundFont, dr_libs, stb, cgltf, font8x8 (MIT / public domain).

SDL3 (zlib license) is downloaded at build time, not included.
