I decided to start a library of scripts to help those transitioning from visual scripting to lua.
You should be able to copy and paste code into your new script object put object in the room and run it with "Crt+R"
If something doesn't work please let me know.
Feel free to ask questions.
Lua scrip to print.
place scrip object in the room.
function draw() boxfill(0,0,63,128,128,63,3) set_draw_slice(120, true) print("printing", 48, 11, 7) print("in voxatron 3.5b", 40, 20, 7) end
This is basic player controllers
control the box with arrows, z and x
x = 64 y = 64 updown = 30 function _update() if (btn(0)) then x=x-1 end if (btn(1)) then x=x+1 end if (btn(2)) then y=y-1 end if (btn(3)) then y=y+1 end if (btn(4)) then updown=updown-1 end if (btn(5)) then updown=updown+1 end end function _draw() clv() boxfill(x,y,updown,x+10,y+10,updown+10,14) boxfill(0,0,63,128,128,63,3) set_draw_slice(50) print("control the box", 33, 10, 7) print("using arrows, z and x keys", 10, 100, updown-1) end
Scrip to change rooms made with "function draw()"
on J and K button press
(It's a flip book to go back and forth between rooms)
thx PROGRAM_IX :)
function _init() state = 0 debounce = 0 end function draw() if(state == 0) then draw_title() elseif(state == 1) then draw_instructions() elseif(state == 2) then draw_monkeys() elseif(state == 3) then draw_apples() elseif(state == 4) then draw_game() elseif(state <0) then draw_game() elseif(state >4) then draw_title() end end function draw_title() set_display_camera(-1) boxfill(0,0,63,128,128,63,3) set_draw_slice(120, true) print(state, 40, 20, 7) print("press j or l", 52, 30, state+15) state = 0 end function draw_instructions() set_display_camera(-1) boxfill(0,0,63,128,128,63,14) set_draw_slice(120, true) print(state, 20, 11, 7) print("press j or l", 52, 30, state+15) end function draw_monkeys() set_display_camera(1) boxfill(0,0,63,128,128,63,24) set_draw_slice(60) print(state, 20, 120, 7) print("press j or l", 52, 30, state+15) end function draw_apples() set_display_camera(1) boxfill(0,0,63,128,128,63,28) set_draw_slice(60) print(state, 20, 120, 7) print("press j or l", 52, 30, state+15) end function draw_game() set_display_camera(-1) boxfill(0,0,63,128,128,63,55) set_draw_slice(120, true) print(state, 52, 20, 7) state = 4 print("press j or l", 52, 30, state+15) end function _update() if(state < 5) then if(btn(7) and debounce > 10) then state += 1 debounce = 0 else if(btn(6) and debounce > 10) then state -= 1 debounce = 0 else end debounce += 1 end end end
I see in the manual that Qubicle file format is supported for importing models, but I use MagicaVoxel on my computer and Particubes on my iPad, which use the same .vox format. (Spec: https://github.com/ephtracy/voxel-model/blob/master/MagicaVoxel-file-format-vox.txt)
This is a short puzzle game based off of another puzzle game I saw, SPAB. The player's inputs affect the world as well as the character. I came up with some messy ways to make it work and would redo a lot of it if I made a more complete version.
If I do expand on this idea I see two ways to with it. Either a sort of action-puzzle game with fighting enemies and smoother movement, or a more complex puzzle game with much more responding environmental parts and maybe more rigid movement.
Hello, I saw in the new changelog that Voxatron can now run Pico 8 cartridge , I tried it on my version , but didn't find any "pico 8" section , I tried opening a .p8.png in the designer , but it just crashed the console. This feature really hyped me , so I'll be more than happy to try it , thanks to anyone who read me.
A simple game I made to try and get to grips with Voxatron. I'm so, so glad I finally managed to get into this, after it inspired me so much in its early years but I found the development tools a bit difficult to figure out (even quite recently!).
Having since bought in heavily to PICO-8 and made some 40 games with it, I decided to come back around and make a proper go of it when Voxatron 0.3.5 hit, and I'm really happy that I did. This is entirely programmed in one script inside the main room, with one (short and boring) tune in the background. No precreated assets or anything like that. Which might make it interesting for you to explore!
Anyway here's my silly game about being a weird gardening alien with a weird ship in a weird garden that has
a bottomless pit in the middle. You have to clear all those nasty rocks out!!!
Z: start game
Z [hold]: activate tractor beam to suck up rocks under your ship
X [tap]: dump a rock, ideally into the pit
(in 'all done' screen)
Z + X together [tap]: back to title
When you've dumped all the rocks into the pit, you'll get a nice 'all done' screen and an opportunity to replay. That's it! Have fun messing around in this little world!
itch.io page: here.
#onegameamonth January 2019
A small exploration game about a little being who has crash landed on a planet and needs to find how to get home. You find some waystones that look promising. If you could only find a way to activate them, maybe they'd help....
(Please know that this is game jam code, which means it's horrendous.)
EDIT: Added the insides of trees so they look cool when they clip off the edge of the screen, and also a label image.
i just redownloaded voxatron after hearing about the latest update, but now i get this error message logged to the console on startup:
vox: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by vox)
it seems like it's asking me to update a core system file, but my packages are up to date and for unrelated reasons it's impractical for me to change os or os version. i'm using linux mint 18.
is there anything else that can be done?
I am a new clockwork GameShell purchaser and I am very new to virtual systems and hardware. While waiting for my device to ship, I have been researching things that I can play or do on it. PICO8 Has caught my eye, and along with it; Voxatron. I know PICO8 runs well from the forum over at ClockWorkPI, but I was curious if a 3d based virtual system would work just as well; keeping in mind that the GPU on the GameShell is not fully supported at the moment.
Does the GameShell and Voxatron play nicely together?
Will the control schemes, hardware, or software be compatible or enjoyable to play on the GameShell?
Will the full GPU support be necessary to run Voxatron?
Thankful for any info on the matter!
I don't know if this is a bug or a debug feature? But when pressing the number 6 while in the designer, it zooms in super huge on the mouse. This is really distracting when coding because it'll flash up huge on the screen if you happen to hit a 6 while you type! 😆 Maybe an option to disable that feature while editing code?
Voxajam 2019 is LIVE!! Al February long!!
Details are in the cart, along with some demos and helper functions of varying type/depth made by myself and @Eiyeron -- feel free to take a look and use any of them to help get you started! They should be organized so that you can just:
- copy an asset directory
- change the names of the name_i, name_u, and name_d functions to _init, _update60, and _draw, respectively
Here are the details again for convenience:
"welcome to voxajam 2019!
what: a voxatron jam
theme: "so much more
there are no official
..but why not make something
outside the default
(a neat effect, a toy, a tool
a tweetcart, a full game--
- when: all february 2019
- where: voxatron forums!
use '#voxajam' on twitter
press ❎ to view some demos
If you have questions or suggestions, please post here in the thread or hit me up on twitter ( @enargy)
(helping spread the word by RTing this tweet would be appreciated also -- https://twitter.com/Enargy/status/1086287474127720449 )
Oh yeah if you have any questions let me know -- there's also an easter egg (or two) hidden in the announcement cart if anyone cares to look :p
Trying some simple procedural terrain/cave generator. Results should look like Voronoi volumes. It's using random points, so generated terrain/cave is often pretty ugly.
k for a new one.
I'm learning Voxatron 0.3.5b API
Not sure if anyone else has ever created a vanishing cheese in Voxatron before...
K resets the cheese. Have fun!
How would i go about, writing a script to change rooms on button press?
I tried to use an old "switch room" script object but it doesn't do what I want.
Switching multiple rooms on a button press, with the same button. Like arrow right to go forward and arrow left to go back.
Hope this make sense.