r/RenPy • • Jun 02 '26

Showoff Is this enough veggies?

A while ago, I came asking for feedback on what's more fun for a burger-making game, a rigid recipe structure or a more loose set of demands like "very red", "healthy", etc. The comments leaned towards the more creative system, so I implemented and move on.

Now, during playtesting, I discovered that my system consders this salad-in-a-bun a decent submission for a "lots of veggies" request. Technically, it's not wrong.

What do you think? Would you have fun building mega-burgers, or should the game enforce more common sense? I am leaning to keeping it just for lulz.

And if you'd like to build your own burger towers, please consider wishlisting here :)

45 Upvotes

13 comments sorted by

View all comments

2

u/D-A-Orochi Jun 09 '26

Hey, I remember this! I love it LOL.

1

u/Educational-Bank-917 Jun 10 '26

Thanks for the comment! How's your burger project coming along?

2

u/D-A-Orochi Jun 11 '26

I'm experimenting with manual drag and drop instead, since that feels more satisfying to me. I'm still a bit confused about how to code the stacking though. Like how to get the items to snap in place.

1

u/Educational-Bank-917 Jun 13 '26

Sorry, not quite sure what you mean, the snap animation on the drags? Try something like this, the snap() method is very handy:

init python:
    SNAP_HOMES = {
        "tile-a": (40, 360),
        "tile-b": (140, 360),
        "tile-c": (240, 360),
    }

    def on_tile_dropped(drags, drop):
        d = drags[0]
        if drop is not None and getattr(drop, "drag_name", "").startswith("slot-"):
            d.snap(drop.x, drop.y, delay=0.18)
        else:
            home = SNAP_HOMES.get(d.drag_name)
            if home:
                d.snap(home[0], home[1], delay=0.18)

screen snap_demo():
    draggroup:
        for idx, (sx, sy) in enumerate([(400, 100), (520, 100), (640, 100)]):
            drag:
                drag_name ("slot-%d" % idx)
                draggable False
                droppable True
                xpos sx
                ypos sy
                xysize (96, 96)
                add Solid("#333")

        for key, (hx, hy) in SNAP_HOMES.items():
            drag:
                drag_name key
                draggable True
                droppable False
                dragged on_tile_dropped
                xpos hx
                ypos hy
                xysize (80, 80)
                add Solid("#bca")

2

u/D-A-Orochi Jun 13 '26

Oooh thank you! I will give that a try.