playdate-nim
playdate-nim copied to clipboard
Nim bindings with extra features for the Playdate SDK
It seems the nim-bindings take care of closing files when they go out of scope. This is kind of nice, but it was unexpected for me. This creates opportunity for...
This change refactors the build scripts a bit to support building on both `1.6.14` and `2.0.2`, and adds support for building against Nim 2. The only thing that really needed...
This function is a faster way to set many pixels in a bitmap, as compared to individually setting each pixel, while still being safe. The speed comes from a few...
The recommended extension should become [this one](https://marketplace.visualstudio.com/items?itemName=NimLang.nimlang), which is the new official Nim language support extension for Visual Studio Code.
```nim proc getLevelPaths(): seq[string] {.locks:0.} = playdate.file.listFiles("levels") ``` The above code snippet triggers a `declared lock level is 0, but real lock level is [LockLevel]` warning. Can be fixed by...
When trying to compile the basic example project after following all the instructions, I get the following errors: ```bash nimble simulator Verifying dependencies for [email protected] Info: Dependency on playdate@any version...
This change adds a github workflow that auto-generates docs and publishes to a github page for every push to mainline. This is a pre-emptive pull request based on the conversation...
The idea is to explore whether/how NimScript can allow us to plug-in custom tasks to perform when the user builds the project. Here's an examples of a use case, but...
The module is a mapping of the C API, but it also provides other extra features, so, it would still be very useful to have in-editor support with full documentation...
This allows fillPolygon to be used with seqs and arrays, which have much better performance