Search found 24 matches
- 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: 7479
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!"...
- Mon Jul 04, 2022 5:29 am
- Forum: Games and Creations
- Topic: Pain Flood Fill aka "pain ting"
- Replies: 1
- Views: 2598
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
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
- 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: 7479
- Mon Jul 04, 2022 1:38 am
- Forum: General
- Topic: Forum etiquette
- Replies: 43
- Views: 2494411
Re: Forum etiquette
I forgot to reply to this ten years ago. Let's just say I'm utilizing rule 4 to the extreme
- 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: 7479
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...
- Sat Jul 02, 2022 8:22 pm
- Forum: Libraries and Tools
- Topic: lua_ecs, a small Entity Component System library/class
- Replies: 0
- Views: 11227
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...
- Fri Jan 31, 2020 2:56 am
- Forum: Games and Creations
- Topic: Fakeman, a ghetto pacman clone
- Replies: 9
- Views: 14323
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
https://youtu.be/SWI9TNtLRBc
- Thu Jan 30, 2020 6:48 pm
- Forum: Games and Creations
- Topic: Fakeman, a ghetto pacman clone
- Replies: 9
- Views: 14323
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...
- Sat Jan 25, 2020 12:56 am
- Forum: Games and Creations
- Topic: Fakeman, a ghetto pacman clone
- Replies: 9
- Views: 14323
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,...
- Wed Jan 22, 2020 5:30 am
- Forum: Games and Creations
- Topic: Fakeman, a ghetto pacman clone
- Replies: 9
- Views: 14323