Log In  
Log In  
BBS > Lexaloffle Community Superblog
This is a combined feed of all Lexaloffle user blogs. For Lexaloffle-related news, see @zep's blog.

All | Following | PICO-8 | Voxatron | General :: [Thread List]

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.

Have fun

/Digital Monkey


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)

I made this by looking at script from GARDENING by: PROGRAM_IX

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
P#62053 2019-02-19 03:17 ( Edited 2019-02-19 05:33)

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)

P#61967 2019-02-17 01:24

Cart [#gezwupes-0#] | 2019-02-16 | License: CC4-BY-NC-SA | Embed
2

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.

P#61936 2019-02-16 01:37

Thanks in advance for any help.

I have two Objects tabs in my Designer. Also, I am missing Fonts.

I am on a MacBook Air running 10.14.2.

Thank again!

P#61919 2019-02-15 15:39

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.

P#61894 2019-02-14 20:55 ( Edited 2019-02-14 20:56)

Cart [#tituhdori-0#] | 2019-02-10 | No License | Embed
1

P#61722 2019-02-10 15:09 ( Edited 2019-02-11 01:39)

Cart [#obstacle-0#] | 2019-01-31 | License: CC4-BY-NC-SA | Embed
2

P#61412 2019-01-31 19:52 ( Edited 2019-01-31 19:53)

Cart [#mb_colors-0#] | 2019-01-31 | License: CC4-BY-NC-SA | Embed
1

This is a quick little cart to let you see the difference between the editor color palette and the palette available through code. I hope it's useful! :)

P#61375 2019-01-31 00:18

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!!!

Controls:
(in menu)
Z: start game

(in 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

Cart [#ix_gardening-0#] | 2019-01-31 | License: CC4-BY-NC-SA | Embed
2

P#61373 2019-01-31 00:07 ( Edited 2019-01-31 00:24)

Cart [#mb_ggj2019-1#] | 2019-01-29 | License: CC4-BY-NC-SA | Embed
1

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.

P#61277 2019-01-28 00:09 ( Edited 2019-01-29 00:18)

@zep for some reason vox 3.5 and 3.5b when installed don't appear to have a ico file see image of
the voxatron 3.5b shortcut from my desktop.

Thank you :)

P#61236 2019-01-26 20:39 ( Edited 2019-01-26 20:40)

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?

P#61220 2019-01-26 06:46

Hello!
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!

P#61091 2019-01-22 14:59

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?

P#61046 2019-01-20 20:02

P#61000 2019-01-19 21:40 ( Edited 2019-01-19 21:44)

Cart [#voxajam2019-2#] | 2019-01-18 | No License | Embed
8

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:

  1. copy an asset directory
  2. 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
    than 'voxatron'"
    there are no official
    limitations
    ..but why not make something
    outside the default
    'robotron' style?
    (a neat effect, a toy, a tool
    a tweetcart, a full game--
    anything!)

    • when: all february 2019
    • where: voxatron forums!
      (lexaloffle.com/bbs)
      and itch.io/jam/voxajam
      use '#voxajam' on twitter
      press ❎ to view some demos
      and examples!"

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

P#60963 2019-01-18 15:37 ( Edited 2019-02-01 22:27)


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.

P#60801 2019-01-13 22:30 ( Edited 2019-01-13 22:35)

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!

P#60800 2019-01-13 21:24 ( Edited 2019-01-13 21:25)

The old way you type out in "concole" with @ making text objects no longer works.
How do you do it now? Access fonts, type, define a default font etc...

Thx a lot
/D

P#60776 2019-01-12 21:10

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.
Thank you.
/D

P#60775 2019-01-12 21:03
View Older Posts
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-02-22 11:16 | 0.132s | 4194k | Q:131