Search found 24 matches

by jordan4ibanez
Tue Jul 05, 2022 3:26 am
Forum: Libraries and Tools
Topic: lua_switch, a shorthand for creating switch statements in lua
Replies: 5
Views: 5408

Re: lua_switch, a shorthand for creating switch statements in lua

Here's a really simple example with syntax that's more C-like. local function switch(value) return function (cases) cases[value]() end end local value = "hello" switch (value) { hello = function () print "Hello, world!" end, goodbye = function () print "Goodbye, world!"...
by jordan4ibanez
Mon Jul 04, 2022 5:29 am
Forum: Games and Creations
Topic: Pain Flood Fill aka "pain ting"
Replies: 1
Views: 2065

Pain Flood Fill aka "pain ting"

A spooky piece of art that fills your window with blood. How dramatic!

Can't really post a picture of it. You'll just have to watch the video or look at the code. ¯\_(ツ)_/¯

A video of it: https://youtu.be/fISafWWHwD0

Github: https://github.com/jordan4ibanez/pain_flood_fill
by jordan4ibanez
Mon Jul 04, 2022 1:40 am
Forum: Libraries and Tools
Topic: lua_switch, a shorthand for creating switch statements in lua
Replies: 5
Views: 5408

Re: lua_switch, a shorthand for creating switch statements in lua

pgimeno wrote: Mon Jul 04, 2022 1:37 am Just because you can, doesn't mean you should ;)
Instructions unclear, create more insanely mundane libraries for people to utilize confirmed
by jordan4ibanez
Mon Jul 04, 2022 1:38 am
Forum: General
Topic: Forum etiquette
Replies: 43
Views: 1881615

Re: Forum etiquette

I forgot to reply to this ten years ago. Let's just say I'm utilizing rule 4 to the extreme
by jordan4ibanez
Mon Jul 04, 2022 1:28 am
Forum: Libraries and Tools
Topic: lua_switch, a shorthand for creating switch statements in lua
Replies: 5
Views: 5408

lua_switch, a shorthand for creating switch statements in lua

Someone in the discord was surprised that there was no internal method to create a switch statement in Lua. So being half awake, I thought to myself: "I can fix that." Then this thing was made. If it's useful to you, I'm glad. Have fun with it. https://github.com/jordan4ibanez/lua_switch u...
by jordan4ibanez
Sat Jul 02, 2022 8:22 pm
Forum: Libraries and Tools
Topic: lua_ecs, a small Entity Component System library/class
Replies: 0
Views: 8248

lua_ecs, a small Entity Component System library/class

Hello. I have made a small ECS class for anyone to utilize in their project. I hope this helps you. I tried to make it as user friendly as possible. Here is the link: https://github.com/jordan4ibanez/lua_ecs Usage example: (taken from the example in the repo) require("ecs") --[[ OR do a do...
by jordan4ibanez
Fri Jan 31, 2020 2:56 am
Forum: Games and Creations
Topic: Fakeman, a ghetto pacman clone
Replies: 9
Views: 12354

Re: Fakeman, a ghetto pacman clone

So I got the shaders right, but it slowed the game down, but this is what it looks like for now, with shaders disabled
https://youtu.be/SWI9TNtLRBc
by jordan4ibanez
Thu Jan 30, 2020 6:48 pm
Forum: Games and Creations
Topic: Fakeman, a ghetto pacman clone
Replies: 9
Views: 12354

Re: Fakeman, a ghetto pacman clone

Some of the pellets are inaccessible. You resolve this by finding all "islands" and making sure that there's only one of it, by breaking some walls between separate islands. I fixed that for now, created a stock map temporarily. Also, shaders are moving along. (A glitch from earlier) Unti...
by jordan4ibanez
Sat Jan 25, 2020 12:56 am
Forum: Games and Creations
Topic: Fakeman, a ghetto pacman clone
Replies: 9
Views: 12354

Re: Fakeman, a ghetto pacman clone

It would be nice if it played a bit more like OG pacman, i.e. the character never stops and the walls are thin plates instead of solid bricks, and the ghosts are somewhat trying to catch you so you need to use powerups (and strategically too). With a bit of effort an infinite version could be made,...
by jordan4ibanez
Wed Jan 22, 2020 5:30 am
Forum: Games and Creations
Topic: Fakeman, a ghetto pacman clone
Replies: 9
Views: 12354

Re: Fakeman, a ghetto pacman clone

raidho36 wrote: Tue Jan 14, 2020 9:21 pm You'll have to edit your post because it got messed up, most notably there's no download link.
I uploaded a new version that properly scales to the screen size, also there is now pathfinding, but "demons" seem to want to stack on top of each other