Is this OOP?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Is this OOP?

Post by Karai17 »

I didn't say OOP produces bad code per se, but it is pretty common for OOP code to get out of hand. OOP has its place but some people tend to swear that place is everywhere the light touches. It is becoming more clear though that in the game industry, OOP is not always the best option, and ECS is becoming quite popular in one form or another.

tiny-ecs uses a strict ECS architecture where you process entities through systems. Unity and Unreal use a different approach where you attach systems (or scripts) to entities and the entity processes itself. I prefer the stricter approach because I feel it is cleaner and more clear what is happening. I can see the appeal of the hybrid approach as it still gives developers the impression that they are in a loose OOP world which many are more familiar and comfortable with. With Unity and the likes, you still need to define rigid classes which negates a lot of the flexibility that ECS provides. With tiny-ecs, I could just up and create a new entity, throw in a couple random components, and have it Just Work. I think that scares some people.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests