Matriks404 / openSMB2

An open source reimplementation of Super Mario Bros. 2 written in Lua and LÖVE.
GNU General Public License v3.0
32 stars 3 forks source link

Create initial port prototype for Nintendo 3DS using LÖVE Potion #51

Open Matriks404 opened 1 year ago

Matriks404 commented 1 year ago

Since I got a New Nintendo 3DS XL, this could be a fun exercise.

Also see #93 for 3DS "fun exclusive features".

Ideas for optimization and small improvements for the prototype:

Temporarily (or not) add controls instructions on the bottom screen (maybe add them later to a submenu that opens by touching some button). This can be accomplished by writing a function that prints the table on some coords (printInstructions(text, x, y, width, height, line_spacing)) I really think that's bad idea (this will just crash the console when we approach the sprite limit) unless we use system font. I think having instructions graphics is a better approach (see #93) though. And this can be used on PCs (or more correctly: all compatible devices with keyboards attached) as well. MAYBE JUST USE CANVAS?

Matriks404 commented 11 months ago

Very primitive support is implemented on 51-3ds_support branch. This is not officially supported.

If basic stuff is resolved and functionality of the 3DS port is the same as on the master branch, code will be moved to port_3ds branch. 3DS/LÖVE Potion related stuff probably will never be merged back into master to not overcomplicate code, but I might change the apparoch in the future for that port.

Some stuff still can be made more portable between these versions however, need to investigate on that though.

Matriks404 commented 10 months ago

Some of the stuff for reworking controls is done on f0951effc7988f4feb84e5279e190d29138ed4ae. Level editor have been disabled for now, will work on this either tomorrow or some other day. Also I need to update controls section in README.

Matriks404 commented 10 months ago

Last bits of level editor controls were implemented in 62938f7505a04cf7cd3179ff0a93e4a2369bed02.

I didn't implement some minor stuff though that's not really needed for anything on 3DS. I will make a Wiki article about this later though.

Matriks404 commented 10 months ago

I have no idea how do I optimize font drawing, it seems to drop to 9 FPS when doing anything with text, regardless how much is loaded.

Matriks404 commented 10 months ago

So... optimizing font drawing was not needed after all :)

image