Commit Graph

35 Commits

Author SHA1 Message Date
Antonio Niño Díaz
cc40a1daad examples: Add example of using affine sprites 2025-06-17 00:20:04 +01:00
Antonio Niño Díaz
0159fb67bf examples: Rename "affine" example to "bgaffine" for clarity 2025-06-16 23:41:48 +01:00
Antonio Niño Díaz
e4fd0ba9b6 examples: Look for path of BlocksDS toolchain in convert.sh
Instead of hardcoding the path, check if the environment variable BLOCKSDS
has been set and use its value instead.
2025-03-24 21:26:32 +00:00
Antonio Niño Díaz
dc1de0cd56 build: docs: Remove all outdated devkitARM makefiles
They don't work. Even if they were updated, the code will require changes,
as well as the examples. For now, it's better to remove the makefiles than
to pretend we support devkitARM.
2025-03-24 20:57:15 +00:00
ThorTuwy
3002fad8d1 examples: Add example to show all possible 2D sprite sizes 2025-02-09 12:48:10 +01:00
Antonio Niño Díaz
e2a8e1ad4d examples: Remove duplicated assets conversion script 2024-06-20 01:22:50 +01:00
Antonio Niño Díaz
71700aab03 examples: Fix tilechange example
Using a different version of grit has changed slightly the output. The code
needs to be updated to use the new tile indices.
2024-06-03 02:00:22 +01:00
Antonio Niño Díaz
72010704c4 examples: Update scripts to use grit from BlocksDS
This version of grit lets the user export binary file without ".bin"
after ".img", ".pal" or ".map", so the conversion scripts can be simplified
a lot.

All the converted files have been regenerated.
2024-06-03 01:08:07 +01:00
Antonio Niño Díaz
194561993a build: docs: example: Set BlocksDS as primary toolchain
The main reason is that BlocksDS doesn't have any bug with NitroFS, and
NitroFS is strictly required to use NFlib. With devkitPro, melonDS won't be
able to run any program made with NFlib due to a bug with NitroFS.
2024-06-03 00:27:39 +01:00
Antonio Niño Díaz
e3fbe8dbec examples: Turn some bitshifts into multiplications for clarity 2023-06-05 20:01:20 +01:00
Antonio Niño Díaz
0672158d1e examples: Remove unused includes 2023-05-21 21:17:28 +01:00
Antonio Niño Díaz
d923bbec50 examples: Translate asset and variable names to English 2023-05-21 21:11:40 +01:00
Antonio Niño Díaz
498a0a2464 examples: Cleanup and translate the remaining examples to English 2023-05-21 20:31:06 +01:00
Antonio Niño Díaz
4d4cb6ab8e examples: Cleanup and translate more examples to English 2023-05-21 02:25:53 +01:00
Antonio Niño Díaz
af329f901a examples: Fix potential tearing
The image needs to be switched during the vertical blanking period so
that no tearing is shown during the switch.
2023-05-21 00:56:06 +01:00
Antonio Niño Díaz
11b2717515 examples: Cleanup and translate more examples to English 2023-05-21 00:49:40 +01:00
Antonio Niño Díaz
b20bb1ca2c examples: Cleanup and translate more examples to English 2023-05-20 02:43:19 +01:00
Antonio Niño Díaz
fa21c62ac4 examples: Cleanup and translate more examples to English 2023-05-19 02:17:59 +01:00
Antonio Niño Díaz
2b4aab4ba8 examples: Cleanup and translate more examples to English 2023-05-18 18:08:55 +01:00
Antonio Niño Díaz
4c92c8c864 examples: Cleanup and translate some examples to English 2023-05-18 02:19:38 +01:00
Antonio Niño Díaz
3d2b4ebabb examples: Add assets of graphics/bgextpalette example 2023-05-14 02:36:01 +01:00
Antonio Niño Díaz
be3050bca8 examples: Add assets of the graphics/affine example 2023-05-14 02:26:11 +01:00
Antonio Niño Díaz
c184900ad6 examples: Add assets and scripts for most remaining examples 2023-05-14 01:42:06 +01:00
Antonio Niño Díaz
b74f8a5d98 examples: Add assets and scripts to more examples 2023-05-13 18:47:41 +01:00
Antonio Niño Díaz
bed8254038 examples: Add assets and conversion scripts for more examples 2023-05-13 15:32:52 +01:00
Antonio Niño Díaz
f91699ea96 examples: Add assets and conversion script for bg8bit example 2023-05-13 14:17:14 +01:00
Antonio Niño Díaz
a62119fe9b examples: Add PNG files and conversion script for bg example 2023-05-13 12:27:00 +01:00
Antonio Niño Díaz
12537467ca examples: Replace some prebuilt graphics by images and scripts 2023-05-12 01:45:24 +01:00
Antonio Niño Díaz
fe33d66d91 Remove trailing whitespace 2023-05-03 01:21:56 +01:00
lifehackerhansol
ef23e0418a
Do not force libfilesystem or libfat dependency
This removes dependency from the (frankly awful) libfilesystem, as well
as libfat.

fatInitDefault() or nitroFSInit() should be initialized outside of
NFlib, if one requires it. Within NFLib, we will only check whether
NitroFS is accessible, and fail otherwise.

This allows a user to still use libfat, libfilesystem or any other
NitroFS / FAT implementation, should one wish to use it, as long as the
implementation of NitroFS mounts to `nitro:/`, or the storage medium is
mounted to `sd:/` or `fat:/`.

This is a breaking change: users will need to update their code to
handle NitroFS and/or FAT inits on their own.

This also removes unnecessary filesystem.h and fat.h includes from all
other files.
2023-04-13 11:30:37 -07:00
Antonio Niño Díaz
61fde2b572 Use UTF-8 across all codebase
This has been done with:

    for f in `ls`; do
        iconv -f ISO-8859-1 -t UTF-8//TRANSLIT "$f" -o "$f".2;
        mv "$f".2 "$f"
    done
2023-04-13 18:51:09 +01:00
Antonio Niño Díaz
151db13cc0 license: Fix licenses
- Creative Commons (except for CC0) shouldn't be used for code:

   https://creativecommons.org/faq/#can-i-apply-a-creative-commons-license-to-software

   MIT has the same spirit as the CC-BY license.

- CC-BY has been retained for the assets included in the repository.

- Also, the years were wrong, this library was started in 2009.

- Make all examples use the CC0 license.
2023-04-01 19:56:45 +01:00
Antonio Niño Díaz
f3e86a56d1 build: docs: Introduce and document build system for BlocksDS
Also, some minor fixes to the examples so that they can build.
2023-04-01 19:06:03 +01:00
Antonio Niño Díaz
daee0a3334 build: Reorganize directories
- Bring the source and include directories in nflib to the root of the
  repository to match the organization of other libraries.

- Expect users to install NFlib in the devkitPro folder.

- Update all Makefiles for modern devkitPro.

- Remove all redundant copies of NFlib in all examples. The only
  remaining copy of the library is in the extras/wifi example, but
  that one includes more files, so I have left it untouched for now.
2023-03-31 18:27:29 +01:00
Cesar Rincon
ddca460fbd Last stable release
Moved from Source Forge
2018-06-20 08:46:10 +02:00