Skip to main content

General

info

LÖVE Potion is a work in progress, so things may be missing. Please open an issue on the GitHub repository for filing bugs and feature requests.

Constants

Like LÖVE, LÖVE Potion has defined constants which are useful and can be used for determining platform-specific information.

VariableDescriptionValue
love._consoleThe name of the console3DS, Switch, or Wii u
love._potion_versionThe version of LÖVE Potione.g. 3.0.0
love._osThe running "Operating System" of the consoleHorizon/Cafe

Extended System Functions

NameDescriptionReturns
love.system.getNetworkInfoReturns whether or not the system has an active internet connectionstring status, number strength
love.system.getFriendInfoReturns the information of the user running LÖVE Potion{ name: string, code: string }
love.system.getPlayCoinsReturns the number of Play Coins on the Nintendo 3DS systeminteger coins
love.system.setPlayCoinsSets the number of Play Coins on the Nintendo 3DS systemnil

Hashing Functions (Wii U)

LÖVE itself does not have a big endian implementation for the hashing functions in the data module. Your hashing results will vary due to no proper big endian implementations.

ImageData (3DS)

info

If you’re not familiar with ImageData, please view the LÖVE Wiki

The main difference between LÖVE and LÖVE Potion when it comes to ImageData is the rawdata parameter for the constructor. When it is supplied, the data must be tiled (e.g. with data from a tex3ds generated texture). This will throw an error otherwise.