All Projects → ctruLua → ctruLua

ctruLua / ctruLua

Licence: GPL-3.0 license
ctrµLua: Lua homebrewing for 3DS

Programming Languages

c
50402 projects - #5 most used programming language
HTML
75241 projects
Makefile
30231 projects
lua
6591 projects
python
139335 projects - #7 most used programming language
CMake
9771 projects

Projects that are alternatives of or similar to ctruLua

Sonic-1-2-2013-Decompilation
Sonic 1/2 (2013) Decompilation for New 3DS
Stars: ✭ 41 (+86.36%)
Mutual labels:  homebrew, 3ds
libstarlight
3DS Homebrew Application Framework
Stars: ✭ 28 (+27.27%)
Mutual labels:  homebrew, 3ds
3DS.py
Python on your Nintendo 3DS
Stars: ✭ 90 (+309.09%)
Mutual labels:  homebrew, 3ds
new-browserhax-XL
Another one!
Stars: ✭ 32 (+45.45%)
Mutual labels:  homebrew, 3ds
Libctru
Homebrew development library for Nintendo 3DS/Horizon OS user mode (Arm11)
Stars: ✭ 530 (+2309.09%)
Mutual labels:  homebrew, 3ds
3ds
Javascript front-end to the titledb API
Stars: ✭ 12 (-45.45%)
Mutual labels:  homebrew, 3ds
old-browserhax
Fast and free old 3ds browser exploit for latest firmware.
Stars: ✭ 37 (+68.18%)
Mutual labels:  homebrew, 3ds
m3diaLib-CTR
A C++ library for easier homebrew development for the Nintendo 3DS
Stars: ✭ 39 (+77.27%)
Mutual labels:  homebrew, 3ds
Luma3ds
Noob-proof (N)3DS "Custom Firmware"
Stars: ✭ 3,313 (+14959.09%)
Mutual labels:  homebrew, 3ds
bottomless-block-barrage
Panel de Pon (Tetris Attack) clone for the 3ds.
Stars: ✭ 15 (-31.82%)
Mutual labels:  homebrew, 3ds
3dsident
PSPident clone for 3DS
Stars: ✭ 150 (+581.82%)
Mutual labels:  homebrew, 3ds
Cthulhu
Homebrew alternative to Nintendo's dev unit software
Stars: ✭ 72 (+227.27%)
Mutual labels:  homebrew, 3ds
3ds Examples
Examples for 3DS using devkitARM, libctru, citro3d and citro2d
Stars: ✭ 221 (+904.55%)
Mutual labels:  homebrew, 3ds
dotfiles
This is a dotfiles repository created and maintained by @erdaltsksn. It contains a collection of `.files`.
Stars: ✭ 16 (-27.27%)
Mutual labels:  homebrew
nolibgs hello worlds
Collection of PsyQ basic examples NOT using libgs
Stars: ✭ 88 (+300%)
Mutual labels:  homebrew
homebrew-amiga
A repository for Amiga Development related brews
Stars: ✭ 21 (-4.55%)
Mutual labels:  homebrew
homebrew-apple-fonts
Easily install Apples fonts using homebrew.
Stars: ✭ 12 (-45.45%)
Mutual labels:  homebrew
dslibris
An ebook reader for the Nintendo DS, DS Lite, and DSi.
Stars: ✭ 31 (+40.91%)
Mutual labels:  homebrew
MacOS-All-In-One-Update-Script
Mac update shell script (Appstore, macOS, Homebrew and others)
Stars: ✭ 39 (+77.27%)
Mutual labels:  homebrew
ComicNX
NSFW comic browser for the Nintendo Switch
Stars: ✭ 15 (-31.82%)
Mutual labels:  homebrew

ctrµLua

banner

Warning: the 'u' in the repo's name is a 'µ', not a 'u'.

Users part

How to install

  • Download ctruLua.zip from the releases (for something stable) or the CI server (for more features)
  • Unzip it on your SD card, in a folder inside your homebrews folder; if you use HBL, extract it in /3ds/ctrulua/
  • Put some scripts wherever you want, just remember where
  • Launch CtrµLua from your homebrew launcher
  • Use the shell to run your scripts

Homebrewers part

Builds build status

Hello world

local ctr = require("ctr")
local gfx = require("ctr.gfx")
local hid = require("ctr.hid")

while ctr.run() do
	hid.read()
	local keys = hid.keys()
	if keys.held.start then break end
	
	gfx.start(gfx.TOP)
		gfx.text(2, 2, "Hello, world !")
	gfx.stop()
	
	gfx.render()
end

This script will print "Hello, world !" on the top screen, and will exit if the user presses Start. This is the "graphical" version; there's also a text-only version, based on the console:

local ctr = require("ctr")
local gfx = require("ctr.gfx")
local hid = require("ctr.hid")

gfx.console()
print("Hello, world !")

while ctr.run() do
	hid.read()
	local keys = hid.keys()
	if keys.held.start then break end
	
	gfx.render()
end

gfx.disableConsole()

Lua API Documentation

  • An online version of the documentation can be found here
  • To build the documentation, run make build-doc-html (requires LDoc).

Developers part

Build instructions

  • Setup your environment as shown here : http://3dbrew.org/wiki/Setting_up_Development_Environment
  • Clone this repository and run the command make build-all to build all the dependencies.
  • If you only made changes to ctrµLua, run make to rebuild ctrµLua without rebuilding all the dependencies.

May not work under Windows.

Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].