Firew0lf
e10a101a4a
Added some examples, fixed a typo
2015-12-31 15:41:09 +01:00
Reuh
b87b2676e6
gfx.GFX_TOP, gfx.GFX_BOTTOM, gfx.GFX_LEFT, gfx.GFX_RIGHT -> gfx.TOP, gfx.BOTTOM, gfx.LEFT, gfx.RIGHT
...
Also commented and moved tests/audio to examples/audio because the code is quite clean, and we lack examples.
2015-12-30 19:15:46 +01:00
Reuh
73b5c55133
gfx.startFrame -> gfx.start and gfx.endFrame -> gfx.stop
2015-12-30 18:19:13 +01:00
Reuh
07d5316d72
Changed map format to CSV, added ability to load maps from a Lua table
2015-12-30 14:51:51 +01:00
Reuh
e39fcc6c7b
Added Tremor Ogg decoder, removed libvorbis from Makefile. OGG audio working perfectly.
...
Tremor is extremly similar to libogg but only uses integers (and doesn't provide an encoder). The playing problem with libvorbis was probably a float-precision related issue.
No need for make build-all.
2015-12-29 17:25:34 +01:00
Firew0lf
b4f5365e96
Rolled back to RAM by default for textures (not working on hardware)
2015-12-28 20:57:03 +01:00
Reuh
7359512ebe
Merge branch 'master' of https://github.com/ctruLua/ctruLua
...
Merge with master
2015-12-27 19:59:55 +01:00
Reuh
bda9de4d1c
ADDED AUDIO! WAV working perfectly
...
Added libogg, libvorbis and libvorbisfile to 3ds_portlibs. You will need to compile thems using make build-portlibs. Opening OGG files works but they play badly.
Added a very simple error handler in main.lua
Added audio example.
Renamed isGfxInitialised to isGfxInitialized.
Did you know? The audio module is the longest ctrµLua module.
2015-12-27 19:54:58 +01:00
Firew0lf
fe894820a2
The ctr.news library should now be bug-free !
...
Untested, but checked 3 times with citra, and everything matches the doc.
Warning: there is no check of any kind, so don't put weird stuff as arguments.
2015-12-24 23:58:16 +01:00
Firew0lf
bebfa8b72d
Merge branch 'master' of https://github.com/Firew0lf/ctruLua
2015-12-24 18:45:40 +01:00
Firew0lf
5c4da69997
Added the ctr.apt library, tweaked ctr.news a bit, fixed a typo in cfgu.c
2015-12-24 18:44:22 +01:00
Reuh
716c42b849
Fixed keyboard and editor colors
2015-12-24 13:15:00 +01:00
Firew0lf
2e782ed9ea
Updated to the latest ctrulib, Fixed some minor bugs.
...
Working with citra, untested on real hardware but should be OK.
IR should now work.
Let's add some 3D drawing and sound now !
2015-12-14 23:11:45 +01:00
Firew0lf
b4d025d602
Updated the sf2dlib and sftdlib; Added the gfx.color.hex() function; Added the New3DS CPU mode control.
...
As the color order of the sf2dlib changed, you have to change it in your code, or use the color.hex() function.
To fix the problems, just change "0xRRGGBBAA" to "0xAABBGGRR".
Also, the shader compiler changed to Picasso, so you'll need it in order to compile.
https://github.com/fincs/picasso
2015-12-09 23:14:23 +01:00
Reuh
4acd13de9b
Close socket on GC
2015-10-25 18:56:39 +01:00
Reuh
e6e99f59c4
In ctr.fs: automatically select archive when using absolute paths without archive prefix; fs.list should work with RomFS
2015-10-25 17:01:26 +01:00
Reuh
095308732c
Documented ctr.gfx.color
2015-10-25 12:33:44 +01:00
Reuh
3b8d56de63
Documented ctr.fs
2015-10-25 12:22:58 +01:00
Reuh
d015918d22
Ignore the sdmc: prefix in fs.list; added missing space on some strings for the null-termination
2015-10-25 12:03:21 +01:00
Reuh
0efdc23576
Moved library path modifications to main.lua, made all paths relative
...
The library path can now be easlily modified.
Instead of always launching /3ds/ctruLua/main.lua, ctruLua will now launch the main.lua in the current directory (the ctruLua.3dsx directory when launched with HBL).
On citra, this will be the root of the sdmc directory.
2015-10-25 11:08:27 +01:00
Firew0lf
81f8edb25d
Added UDP sockets functions (untested, like 80% of my code)
...
I didn't find a server/protocol to test the UDP sockets, so I didn't test.
Also, there's no built-in "pseudo-connected" mode, you have to manage it in your code.
2015-10-24 22:03:09 +02:00
Reuh
8e94add9a6
Fixed documentation of socket:connect
2015-10-24 13:34:53 +02:00
Firew0lf
3aeb5b3534
Fixed te cam lib, added some field for the documentation, added setFrameRate
2015-10-24 12:08:03 +02:00
Reuh
09ea79bc86
Added line receiving to socket:receive and changed *a to a
...
Added l and L. Removed the starting * of *a, because it isn't used in Lua 5.3 io lib.
2015-10-24 11:12:10 +02:00
Reuh
d5f8202c69
Fixed tcpsocketobject:received when receiving less data than passed at arguments
...
It cuts the string at the end of received data.
2015-10-23 21:02:27 +02:00
Firew0lf
a8d31de1e4
Added the ctr.cam library (untested but should work)
2015-10-22 16:13:14 +02:00
Firew0lf
4d56037289
Added documentation and (untested) code for server sockets
2015-10-18 16:07:29 +02:00
Firew0lf
8500bcb8fa
ADDED SOCKETS ! Added ROMFS support (maybe), Improved the news library, added a VBLank waiting function
...
Sockets are only very buggy/unstable TCP clients, but working. The library was written from scratch.
2015-10-17 23:15:06 +02:00
Firew0lf
dcdeec6525
Updated the sftdlib, Added some functions in gfx and gfx.texture
2015-10-09 00:02:23 +02:00
Firew0lf
c5337a5b2e
Added map:setSpace(), to set the space between the drawn tiles.
2015-10-07 20:49:43 +02:00
Firew0lf
71ddca2bf4
Added the ctr.cfgu lib, to get User Configuration, Added a method in HTTPC
...
Warning: requires the latest ctrulib to build !
2015-10-07 12:08:44 +02:00
Reuh
4aad32d5ab
Moved lzlib to the libs directory (cleaner)
2015-10-04 12:08:25 +02:00
Firew0lf
406e17d321
Fixed the missing "#include <string.h>"
2015-10-02 18:17:51 +02:00
Ruairidh Carmichael
48afdc07b5
Multiple image types
2015-10-02 14:20:53 +01:00
Firew0lf
29ed61131d
Oops, fixed an error in the gfx.font documentation
2015-09-28 22:52:19 +02:00
Firew0lf
5d0e2a7d81
Documented the font library, Improved the news library (still unusable)
2015-09-28 22:37:03 +02:00
Firew0lf
a3ab825365
Documented the HTTPC library, and maybe fixed it (couldn't test, sorry)
2015-09-20 18:23:44 +02:00
Firew0lf
b47634f699
Fixed the documentation error with lzlib, Added gfx.get3D(), Enhanced the ir library errors returns.
2015-09-15 23:10:15 +02:00
Firew0lf
22bcc3e2d5
Added the Tiago Dionizio's "lzlib", and modified it to be usable with ctrµLua.
...
Accessible with require("ctr.fs.lzlib"). I just added the file "lzlib.c" in the source/ directory, because it's much simpler to build.
https://github.com/LuaDist/lzlib for details and documentation.
2015-09-14 22:17:30 +02:00
Firew0lf
070a0d698e
Added documentation for the ctr.hid, ctr.ptm, ctr.news and ctr.gfx.texture
2015-09-13 14:39:12 +02:00
Firew0lf
ab06123f7a
Fixed the QTM documentation, Added an usage note about indexing an object with a number
2015-09-12 19:57:28 +02:00
Firew0lf
e94da040f7
Added documentation for gfx.map and ctr.qtm modules
2015-09-12 19:29:11 +02:00
Reuh
0773992b68
Fully documented ctr and ctr.gfx in the C source
...
The documentation can be built using LDoc : run make build-doc
However, there's still a bunch of things to document.
2015-09-12 13:35:21 +02:00
Firew0lf
9d8c499afc
Fixed the QTM __index method
2015-09-12 12:05:04 +02:00
Firew0lf
848fe42096
Finished the QTM library, Added some text in ctr.c
...
The QTM (Headtracking) is not tested on real hardware, and doesn't work in citra.
But should work, maybe. Please update your boot.3dsx to use it without errors.
2015-09-12 00:15:51 +02:00
Reuh
45f3216ed8
Updated font and fs lib; updated editor; updated sf2dlib
...
Libs additions: font.load, font:unload, font:getWidth, fs.getDirectory, fs.setDirectory, fs.exists
Editor additions: syntaxic coloring and mono font
sf2dlib update: you will need the latest version of ctrulib.
Also, because of the lib font needs, the sftdlib was modified.
2015-09-05 19:00:36 +02:00
Firew0lf
a4a6e09d74
Added a sprite library (unfinished, but working)
2015-09-01 11:31:09 +02:00
Firew0lf
800dd6f963
Cleaned up the HTTPC lib
2015-08-24 21:25:25 +02:00
Firew0lf
d3ca4d0360
"Fixed" the HTTPC lib with the crappiest code you've ever seen, Added a (very) small QTM lib
...
Don't look at the HTTPC code !!! Also, the example only work a random number of times.
2015-08-24 20:24:15 +02:00
Firew0lf
2f27ea317c
Merge branch 'master' of https://github.com/Firew0lf/ctruLua
2015-08-23 18:09:44 +02:00