Search found 34 matches
- Sun Apr 18, 2021 7:54 am
- Forum: Libraries and Tools
- Topic: Groverburger's 3D Engine (g3d) v1.3 Release
- Replies: 92
- Views: 116945
Re: Groverburger's 3D Engine (g3d) v1.3 Release
Hi Groverburger, starting to play around with your engine, https://i.ibb.co/mtM2k6x/Screenshot-2021-04-18-at-09-50-20.png Now i am wondering, i use the collision code to figure out a collision, that works. If i would want to move an object in the 3d world, by dragging with the mouse, what steps woul...
- Thu Apr 15, 2021 11:20 am
- Forum: Support and Development
- Topic: Using a Shader breaks Image:replacePixels on my system
- Replies: 5
- Views: 159
Re: Using a Shader breaks Image:replacePixels on my system
I have the same behaviour. the scrolling stops after pressing space
- Tue Mar 30, 2021 9:18 am
- Forum: Support and Development
- Topic: one touch disappears when approaching to another
- Replies: 10
- Views: 1658
Re: one touch disappears when approaching to another
Do you have like a minimal working example of the issue ?
as in some code?
as in some code?
- Tue Feb 23, 2021 5:23 pm
- Forum: General
- Topic: Any idea in implementing steering behaviour
- Replies: 19
- Views: 4323
Re: Any idea in implementing steering behaviour
https://natureofcode.com/book/chapter-6-autonomous-agents/ this book is very nice and free btw the weighing part is something like this in pseudocode 0.4 * pathfollowing + 0.6 * obstacle avoidance = the force you want to apply this frame oh and obstacle avoidance is basically just calculating a forc...
- Wed Jan 13, 2021 2:18 pm
- Forum: Libraries and Tools
- Topic: Let's Make Useful LOVE2D Extensions For Coders!
- Replies: 3
- Views: 4548
- Sun Dec 13, 2020 1:44 am
- Forum: Support and Development
- Topic: Worried about continuing my relationship with LÖVE :(
- Replies: 9
- Views: 2798
Re: Worried about continuing my relationship with LÖVE :(
Programming languages aren't monogamous!
It's good to snoop around occasionally
It's good to snoop around occasionally
- Fri Dec 04, 2020 5:13 pm
- Forum: General
- Topic: Looking for advice
- Replies: 9
- Views: 8723
Re: Looking for advice
My advice would be to not upfront pick OOP or ECS, both have their advantages for specific cases but none of them are necessary at all. Lua is a prototype based language meaning you dont need all the OOP jazz at all, and when you arent developing a RPG with countless enemy types and effects i person...
- Sun Nov 15, 2020 4:36 pm
- Forum: General
- Topic: I want to know the process of erasing bullets in a shooting game
- Replies: 4
- Views: 4898
Re: I want to know the process of erasing bullets in a shooting game
Instead of all the instancing, adding and deleting from a list you could also look at a Pool Bullets are the perfect case for them I think. edit: here is a little example of a very simple pool implementation in action in love2d: 50k bullets onscreen runs smoothly at 60fps on my low end machine over ...
- Sun Nov 01, 2020 8:07 am
- Forum: Libraries and Tools
- Topic: lovemi: Integrate the Konami code +custom patterns (cheats!)
- Replies: 7
- Views: 4533
Re: lovemi: Integrate the Konami code +custom patterns (cheats!)
"if the pattern is entered within a span of 2 seconds from the first keypress to the last." I havent used the library (yet) but in the linked example : https://github.com/Ulydev/lovemi/blob/master/examples/love/love.lua it looks like you can just do : duration = 2 to get your desired behav...
- Mon Sep 14, 2020 8:15 am
- Forum: Support and Development
- Topic: Getting a key as a number
- Replies: 8
- Views: 4741
Re: Getting a key as a number
I am not sure I understand completely,
but do you mean something like this:
which will print
1 10
2 11
3 12
that 'k' here is the key (1,2,3) and the 'v' is the value (10,11,12)
but do you mean something like this:
Code: Select all
local var = {10,11,12}
for k,v in ipairs(var) do
print(k,v)
end
1 10
2 11
3 12
that 'k' here is the key (1,2,3) and the 'v' is the value (10,11,12)