Looking for advice

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
maromaro
Prole
Posts: 9
Joined: Tue Nov 24, 2020 12:33 am

Looking for advice

Post by maromaro »

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.
User avatar
ReFreezed
Party member
Posts: 323
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: Looking for advice

Post by ReFreezed »

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.)
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."
User avatar
maromaro
Prole
Posts: 9
Joined: Tue Nov 24, 2020 12:33 am

Re: Looking for advice

Post by maromaro »

ReFreezed wrote: Thu Dec 03, 2020 10:14 pm 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.)
Thank you i appreciate your response :D , and i will indeed star developing my own Programming Style.
sphyrth
Party member
Posts: 260
Joined: Mon Jul 07, 2014 11:04 am
Contact:

Re: Looking for advice

Post by sphyrth »

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".
User avatar
maromaro
Prole
Posts: 9
Joined: Tue Nov 24, 2020 12:33 am

Re: Looking for advice

Post by maromaro »

sphyrth wrote: Thu Dec 03, 2020 11:14 pm 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".
Hello i appreciate your response :), i am pretty comfortable with OPP concepts so i naturally tend to use the OOP approach even tho i am not that much of a new programmer. so i don't think that it is a matter of beginner or advanced programmer it's just preference and what approach you used to and "master".
User avatar
Nikki
Citizen
Posts: 51
Joined: Wed Jan 25, 2017 5:42 pm

Re: Looking for advice

Post by Nikki »

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.
User avatar
maromaro
Prole
Posts: 9
Joined: Tue Nov 24, 2020 12:33 am

Re: Looking for advice

Post by maromaro »

Nikki wrote: Fri Dec 04, 2020 5:13 pm 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.
Hi thank you for the advice i appreciate you :ultrahappy: .
User avatar
Gunroar:Cannon()
Party member
Posts: 650
Joined: Thu Dec 10, 2020 1:57 am

Re: Looking for advice

Post by Gunroar:Cannon() »

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
-It might look like nonsense :roll: but there's so much proof.
-Some more if you pls... :? .
It has to be real then, all that talk about the end :shock: .
-How to be saved :huh:
User avatar
maromaro
Prole
Posts: 9
Joined: Tue Nov 24, 2020 12:33 am

Re: Looking for advice

Post by maromaro »

Gunroar:Cannon() wrote: Sun Dec 13, 2020 9:37 am 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
Roger that.Thank you i appreciate you.
FKemp
Prole
Posts: 1
Joined: Sat Dec 26, 2020 10:56 am

Re: Looking for advice

Post by FKemp »

Gunroar:Cannon() wrote: Sun Dec 13, 2020 9:37 am 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
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.
Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests