Looking for advice
Looking for advice
Hello, i am new to the framework and i don't know if there is any best practices i should follow or anything like that, for example what approach if best OOP or ECS. so i would appreciate any advice.
Re: Looking for advice
My advice is to not listen to any advice. 
(Seriously though, everyone's got their own programming style and there's no right or wrong. While one "practice" works well for some, it doesn't work well for others. My actual advice is to look for your own style by doing programming instead of asking random people about what will just end up being a bunch of subjective opinions.)

(Seriously though, everyone's got their own programming style and there's no right or wrong. While one "practice" works well for some, it doesn't work well for others. My actual advice is to look for your own style by doing programming instead of asking random people about what will just end up being a bunch of subjective opinions.)
Tools: Hot Particles, LuaPreprocess, (more)
Games: Momento Temporis: Light from the Deep, Energize!
"If each mistake being made is a new one, then progress is being made."
Games: Momento Temporis: Light from the Deep, Energize!
"If each mistake being made is a new one, then progress is being made."
Re: Looking for advice
Thank you i appreciate your responseReFreezed wrote: ↑Thu Dec 03, 2020 10:14 pmMy advice is to not listen to any advice.
(Seriously though, everyone's got their own programming style and there's no right or wrong. While one "practice" works well for some, it doesn't work well for others. My actual advice is to look for your own style by doing programming instead of asking random people about what will just end up being a bunch of subjective opinions.)

Re: Looking for advice
I wanna start the discussion (because I naturally want someone to disagree with this).
If you're new to programming in general, OOP it's intuitive.
If you're quite advanced, ECS is a good option since we're in a generation that says "OOP is Dead".
If you're new to programming in general, OOP it's intuitive.
If you're quite advanced, ECS is a good option since we're in a generation that says "OOP is Dead".
Re: Looking for advice
Hello i appreciate your response

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 personally dont see much of a gain in using ECS either.
The thing that ECS does better then OOP (imo) is that it favors Composition over Inheritance.
but to compose some gameobject of smaller parts you dont need ECS 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 personally dont see much of a gain in using ECS either.
The thing that ECS does better then OOP (imo) is that it favors Composition over Inheritance.
but to compose some gameobject of smaller parts you dont need ECS at all.
Re: Looking for advice
Hi thank you for the advice i appreciate youNikki wrote: ↑Fri Dec 04, 2020 5:13 pmMy 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 personally dont see much of a gain in using ECS either.
The thing that ECS does better then OOP (imo) is that it favors Composition over Inheritance.
but to compose some gameobject of smaller parts you dont need ECS at all.

- Gunroar:Cannon()
- Party member
- Posts: 140
- Joined: Thu Dec 10, 2020 1:57 am
Re: Looking for advice
My advice which I read about in a book about game programming is to never reinvent the wheel(i.e. Don't waste time making tools that are already made and just focus on your game).
Luckily there are alot of tools for love2d, such as bump, stalker-X, rotLove, jumper, etc.
For more libraries just go to awesome love2d on github. Here's the link:
https://github.com/love2d-community/awesome-love2d
Luckily there are alot of tools for love2d, such as bump, stalker-X, rotLove, jumper, etc.
For more libraries just go to awesome love2d on github. Here's the link:
https://github.com/love2d-community/awesome-love2d
me: I don't always code but when I do it's done flawlessly.
also me:
also me:
Code: Select all
function Gunroar:Cannon()
for x, enemy in ipairs(self.allEnemies) do
self:Cannon(enemy)
end
end
Code: Select all
Lua Error: [file Gunroar.lua]:18: C stack overflow
Re: Looking for advice
Roger that.Thank you i appreciate you.Gunroar:Cannon() wrote: ↑Sun Dec 13, 2020 9:37 amMy advice which I read about in a book about game programming is to never reinvent the wheel(i.e. Don't waste time making tools that are already made and just focus on your game).
Luckily there are alot of tools for love2d, such as bump, stalker-X, rotLove, jumper, etc.
For more libraries just go to awesome love2d on github. Here's the link:
https://github.com/love2d-community/awesome-love2d
Re: Looking for advice
Thanks for sharing, I always end up burning out trying to make tools and the game at the same time. Maybe with tools stuck right at my face I'll finally learn. Having trouble finding free time right now though due to writing my thesis, but I'll probably order from https://prothesiswriter.com/ so I can spend more time developing games.Gunroar:Cannon() wrote: ↑Sun Dec 13, 2020 9:37 amMy advice which I read about in a book about game programming is to never reinvent the wheel(i.e. Don't waste time making tools that are already made and just focus on your game).
Luckily there are alot of tools for love2d, such as bump, stalker-X, rotLove, jumper, etc.
For more libraries just go to awesome love2d on github. Here's the link:
https://github.com/love2d-community/awesome-love2d
Who is online
Users browsing this forum: No registered users and 35 guests