foxygit / fake-08-xbox360 Log in
commit 6e57636fee1f26a0da256e0bf0cd035465e5554f
Author:     Jon Bell <jondbell@protonmail.com>
AuthorDate: Tue Jun 9 11:05:39 2020 -0600
Commit:     Jon Bell <jondbell@protonmail.com>
CommitDate: Tue Jun 9 11:05:39 2020 -0600

    Update Readme and License
---
 LICENSE.MD       | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 README.md        |  50 ++++++++++++++++++++++---
 source/Readme.md |  69 ----------------------------------
 3 files changed, 155 insertions(+), 75 deletions(-)

diff --git a/LICENSE.MD b/LICENSE.MD
new file mode 100644
index 0000000..d6ff173
--- /dev/null
+++ b/LICENSE.MD
@@ -0,0 +1,111 @@
+# FAKE-08
+- Website: https://github.com/jtothebell/fake-08
+- License: MIT
+
+**Note: this software is related to Pico-8, or othwerwise related to or supported by Lexaloffle Software
+
+## Lua 5.3
+- Website: https://www.lua.org/
+- License: MIT
+
+## Zepto 8
+- Website: https://github.com/samhocevar/zepto8
+- License: WTFPL 2
+
+## tac08
+- Website: https://github.com/0xcafed00d/tac08
+- License: MIT
+
+## utf8-util
+- Website: https://github.com/0xcafed00d/utf8-util
+- License: MIT
+
+## PicoLove
+- Website: https://github.com/gamax92/picolove
+- License: zlib
+
+## LovePotion
+- Website: https://github.com/TurtleP/LovePotion
+- License: MIT
+
+## libctru
+- Website: https://github.com/smealum/ctrulib
+- License: zlib
+
+## citro2d
+- Website: https://github.com/fincs/citro2d
+- License: zlib
+
+# libnx
+
+- Website: https://github.com/switchbrew/libnx
+- License: ISC
+
+# **License Text**
+
+## MIT license
+```
+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.
+```
+
+## zlib
+```
+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.
+```
+
+## ISC
+```
+Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+```
+
+## WTFPL 2
+```
+            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+                    Version 2, December 2004
+
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
+
+ Everyone is permitted to copy and distribute verbatim or modified
+ copies of this license document, and changing it is allowed as long
+ as the name is changed.
+
+            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. You just DO WHAT THE FUCK YOU WANT TO.
+```
diff --git a/README.md b/README.md
index 62d13d0..63184ac 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,50 @@
 # fake-08
-A Pico 8 player for 3ds (homebrew)

-Usage: currently only supports loading a single cart named "cart.p8". Place cart file next to executable (3dsx or nro) and run from the homebrew menu of your console.
+A Pico 8 player for 3ds (homebrew). Not related to or supported by Lexaloffle Software

-Building:
-Install devkitpro tool chains for 3ds and switch, then call make to make both, or make 3ds or make switch to make one or the other.
+## Usage:
+Place the executable file (.3dsx for 3ds or .nro for Switch) in a directory where it can be executed from your homebrew menu. Place pico 8 cart files (*.p8 text files only. png carts not supported yet) in the `/p8carts/` directory on the SD card of your homebrew capable 3ds or Switch console (no support offered here for modifying your console, but you can look at https://3ds.hacks.guide/ for a guide to installing custom firmware on the 3ds).

-Building tested on windows using devkitpro's msys2 but should work on other platforms as well.
+Launch the homebrew menu, then start Fake-08. Use left and right on the dpad or left stick to cycle through carts on the SD card. Choose a cart using the `A` button. To exit the currently running cart, press `Start` on 3ds or `+` on Switch. Press `R` to cycle between rendering sizes. Press `L` and `R` simultaneously to exit back to the homebrew menu.

-Games with lots of draw calls will have slowdowns on old 3ds consoles (possibly new ones too?). More optimizations are planned, but keep in mind that Pico 8 lists a raspberry pi 1 with a 700 MHz ARM11 professor as minimum spec, and the old 3ds's CPU is 268 MHz ARM11. Many games should be playable regardless.
+## Building:
+Install devkitpro tool chains for 3ds and switch (see https://devkitpro.org/wiki/Getting_Started), then call `make` to make both, or `make 3ds` or `make switch` to make one or the other.
+
+Building tested on windows using devkitpro's msys2 and Ubuntu WSL. Should work on other plaforms as well.
+
+## Acknowledgements
+Zep/Lexaloffle software for making pico 8. Buy a copy if you can. You won't regret it. https://www.lexaloffle.com/pico-8.php
+Nintendo Homebrew Community, including but not limited to Smea, SciresM, yellows8, fincs, WinterMute, etc for making it possible for hobbyists like myself to make software for Nintendo's hardware
+PicoLove (https://github.com/gamax92/picolove)- basis for my previous project - PicoLovePotion - and where I first learned the basics of Pico 8's API
+tac08 (https://github.com/0xcafed00d/tac08) - a Pico 8 emulator that I leared a lot from. FAKE-08's sprite rendering and cart parsing is heavily based on tac08, and it uses 0xcafed00d's utf8-util to handle special characters in pico 8 carts
+zepto8 (https://github.com/samhocevar/zepto8) - Probably the best Pico 8 emulator, without which I probably still wouldn't have sound support in FAKE-08.
+LovePotion (https://github.com/TurtleP/LovePotion) - an implementation of Love2d for 3ds and switch that served as the runtime for PicoLovePotion, and a great way to make homebrew games for the 3ds and switch. I also use their static Logger implementation
+
+See LICENSE.MD for FAKE-08 license (MIT) as well as licenses of all other software used
+
+## Known Issues:
+
+Several functions not implemented yet (peek/poke, fillp, among others)
+
+Png carts not supported yet
+
+No support for new latest Pico 8 0.2 features yet (no tline, oval, new operators, etc)
+
+Uses standard lua 5.3, which uses floating instead of fixed point numbers. I would like to rectify this (and some other related issues) by switching the Lua implemenation to z8Lua (used by Zepto 8) at some point in the future
+
+Sound emulation is missing effects, and the noise implementation is wildly inaccurrate. Most of my sound implementation was ported over from Zepto 8 (a much more accurrate emulator) but I didn't want to bring over dependencies that were needed for those parts, and haven't otherwise implemented them yet
+
+Sound currently not supported at all on Switch. Should be doable, but my switch isn't currently available for debugging so I haven't been able to iron out the details.
+
+Games with lots of draw calls will have slowdowns on old 3ds consoles (possibly new ones too?). I think more optimizations are possible, but keep in mind that Pico 8 lists a raspberry pi 1 with a 700 MHz ARM11 professor as minimum spec, and the old 3ds's CPU is 268 MHz ARM11. Many games should be playable regardless.
+
+## Carts
+
+You browse and download carts by using the `SPLORE()` function in Pico 8 (again, if you have $15 to spend, and you are interested in game dev, it is well worth your money) or by browsing the BBS website. If using Pico 8, once you have loaded a cart that you want to try on FAKE-08, type `save {{cartname}}.p8` to save the cart as a text file, then copy that file to your device's SD card.
+
+If using the Pico 8 website, there is an expandable drop down link under the cart player called "Code". Hit that link, then copy and paste the code into a text file, and save it as `{{cartname}}.p8`. It can then be copied to your device's SD card.
+
+I make no specific claims of compatibility at the present time. I think many carts _should_ work, but this is still a project in the very early stages, and it is my first real foray into C or C++ development and low level game dev in general.
+
+Feel free to write up any issues you come across, and attach as small of a cart as possible that reproduces the issue.

diff --git a/source/Readme.md b/source/Readme.md
deleted file mode 100644
index e99a7ba..0000000
--- a/source/Readme.md
+++ /dev/null
@@ -1,69 +0,0 @@
-This is an emulator for Pico 8 games for Nintendo homebrew platforms.
-
-Still in early development, not recommended for others use.
-
-As of now, it should build and run on 3ds, but most carts will crash because the API isn't built out
-
-Initial goal is playability of as many non-tweet cart games as possible
-
-Latter goals include sound support and memory compatibility
-
-Basic Roadmap:
--finish basic graphics api support
-(x) implement overloads of existing graphics API
-(x) Add camera() support
-(x) Add clip() support
-(x) Add map(), mget(), mset() support
-(x) Add pal() support
-(x) Add palt() support
-(x) add flip support to sprite drawing
-
-
-Add support for other non-lua pico functions
-
-(x)Add 30 and 60 fps support
-
-Bugs:
-(from jelpi)
-button press glyphs are not parsed correctly. (fixed)
-// comments should get switched to -- comments (maybe?)
-menuitem call should at least be stubbed (done)
-
-from low knight:
-0xffff.fffe - hex numbers not converted to numbers properly
-
-thought these were problems, but doesn't appear to be:
-%= operator doesn't get replaced. Need to escape somehow? -- this appears to just be an artifact of logging using a format method
-while (ta < a-.5) ta += 1 shorthand doesn't get fixed (might be a problem with %=)
-
-(known from docs)
-make button press repeats match pico behavior
-
-(sort of done. stretch and overflow doesn't work with debug console on bottom screen)
-add stretching options (pixel perfect [current], stretch to fit, stretch and overflow (use bottom screen?))
-
-make flip() work for carts without update
-
-test celeste? some other real world carts (demos?)? alpha release?
-
-
-
-add switch, and possibly wii u support
-
-
-
-music() and sfx() support
-fillp() support
-peek() and poke() initial support
-
-
-Acknowledgements:
-Zep for making pico 8
-Smea, SciresM, devkitpro devs, Nintendo Homebrew Community
-PicoLove
-LovePotion
-tac08
-zepto8
-
-
-License MIT
\ No newline at end of file