Log In  
Follow
TylerRDavis
Follow

Journalist/organizer by day, coder by night. Creator of @DnDSheetBot

Cart #sesatereke-0 | 2021-10-13 | Code ▽ | Embed ▽ | No License

Someone on Twitter asked for this, and this seemed like the easiest place to share the code.

function preplace_in_circle(centerx,centery,radius,checkcol,newcol)
    local topleft={x=centerx-radius,y=centery-radius}
    local bottomright={x=centerx+radius,y=centery+radius}
    for x=topleft["x"],bottomright["x"] do
        for y=topleft["y"],bottomright["y"] do
            if (x-centerx)^2+(y-centery)^2<radius^2 then
                if (pget(x,y)==checkcol) pset(x,y,newcol)
end
end
end
end
function psetin_circle(centerx,centery,radius,checkcol,col)
    local topleft={x=centerx-radius,y=centery-radius}
    local bottomright={x=centerx+radius,y=centery+radius}
    for x=topleft["x"],bottomright["x"] do
        for y=topleft["y"],bottomright["y"] do
            if (x-centerx)^2+(y-centery)^2<radius^2 then
                 pset(x,y,col)
            end
        end
    end
end
P#98594 2021-10-13 19:01

Amika's Quest is a roguelite Zelda-like!

Controls:

X (X, V or M on a keyboard): Sword

O (Z, C or N): Item

Pause (P): Open menu

Once items are purchased, you can switch between items in the pause menu

Cart #amikasquest-0 | 2021-09-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

Credits:

Design and coding: Tyler Davis
Character design: Te'shon Farr
Music: Cory Shane Davis

P#97116 2021-09-09 21:47 ( Edited 2021-09-09 21:50)

I made a name generator for about 40 tokens. The nice thing about it is that no matter how many names you have in your name list, it is still just three tokens to store it, since the names are all kept in one long string.
The tradeoff is that the names generated will always be the same number of characters.
Name lists included are the most popular names in the U.S., pared down to 5 letter names. You can make and use your own name lists though, you just need a big string with all the names, no spaces or commas between names, and all the names need to be the same number of characters.

Cart #namegen-1 | 2021-01-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

P#86564 2021-01-18 17:52 ( Edited 2021-01-18 18:00)

Cart #alpine-1 | 2020-12-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
28

Made a little chill climbing platformer. Let me know what you think!
x- Jump
o- use stamina coin

When your stamina bar runs out, you can't jump or cling to walls. You can replenish stamina by landing on the ground, or spending a green coin. Gold coins will increase your max stamina.

P#85376 2020-12-14 04:25 ( Edited 2021-09-14 21:06)

Follow Lexaloffle:        
Generated 2021-10-21 20:48:46 | 0.111s | Q:21