Sorry to bring the globals thing up again, but IMO that's like saying "The warning lights kept flashing. I thought that was annoying so I turned them off. I don't see the mysterious big advantage for using warning lights."MadByte wrote:Basically thats what I do for every module, but why should I add an extra line "local Object=require("class")" to every single class, for every single required module I create. I don't see the mysterious big advantage when doing everything local. All my main.lua files look like this:
How to LÖVE - Now with text-based tutorials
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: How to LÖVE - A LÖVE tutorial series
Help us help you: attach a .love.
Re: How to LÖVE - A LÖVE tutorial series
He emphasized "everything", I totally agree with him. IMO blindly following the "no globals" rule is just as bad as not thinking about scope at all. If he literally uses that throughout all his files, it would be foolish not to have it global.Robin wrote:Sorry to bring the globals thing up again, but IMO that's like saying "The warning lights kept flashing. I thought that was annoying so I turned them off. I don't see the mysterious big advantage for using warning lights."MadByte wrote:Basically thats what I do for every module, but why should I add an extra line "local Object=require("class")" to every single class, for every single required module I create. I don't see the mysterious big advantage when doing everything local. All my main.lua files look like this:
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: How to LÖVE - A LÖVE tutorial series
It's still treating the symptoms of high coupling. Organising your code in a way that leads to more separation of concerns leads to less moving parts, less bugs, less boilerplate and less temptation to use globals.
I never use globals any more and it makes my code healthier, because I can actually see when my code is becoming too highly coupled and needs to be refactored before the technical debt starts accruing.
I never use globals any more and it makes my code healthier, because I can actually see when my code is becoming too highly coupled and needs to be refactored before the technical debt starts accruing.
Help us help you: attach a .love.
- Sheepolution
- Party member
- Posts: 264
- Joined: Mon Mar 04, 2013 9:31 am
- Location: The Netherlands
- Contact:
Re: How to LÖVE - Now with text-based tutorials
How to LÖVE is back, now with text-based tutorials!
Check it out!
I will keep writing tutorials till I can't think of anything to write about.
Check it out!
I will keep writing tutorials till I can't think of anything to write about.
Re: How to LÖVE - Now with text-based tutorials
To explain collisions I'd start with easier cases:Sheepolution wrote:How to LÖVE is back, now with text-based tutorials!
Check it out!
I will keep writing tutorials till I can't think of anything to write about.
- 1 point and another point
- 1 point and a rectangle
- point & circle
- circle & circle
Anyway. Your tutorials are very cool. I've posted links to them here and there. Hope my friends & pupils would love them.
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
Re: How to LÖVE - Now with text-based tutorials
If you're still looking for help writing some chapters, I could write a chapter on why classes suck, and why ECS is master race. I ditched OOP last year and couldn't be happier.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
Re: How to LÖVE - Now with text-based tutorials
I would be interested in this.Karai17 wrote:If you're still looking for help writing some chapters, I could write a chapter on why classes suck, and why ECS is master race. I ditched OOP last year and couldn't be happier.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
- Sheepolution
- Party member
- Posts: 264
- Joined: Mon Mar 04, 2013 9:31 am
- Location: The Netherlands
- Contact:
Re: How to LÖVE - Now with text-based tutorials
Actually, yes. I think it should be chapter 20+, but once there I was already planning on asking you or one of the ECS master race people to write a chapter about it, since I have never really invested time in ECS myself.Karai17 wrote:If you're still looking for help writing some chapters, I could write a chapter on why classes suck, and why ECS is master race. I ditched OOP last year and couldn't be happier.
I will probably keep using classes for future chapters, unless your chapter is able to convince me not to.
I could also use help with a chapter for love.physics.
Here's my current list of ideas for future chapters, in no particular order:
- Distribution
- Angles and distance
- Errors
- Camera
- Online
- ECS
- Audio
- Tweening
- Animation
- Tiles
- Platformer
- Terminology
- Clean code
- Physics
- Filesystem
- Text
Re: How to LÖVE - Now with text-based tutorials
Alright, I'll stay writing something today and link you to a Google doc via pm when I have a draft ready.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
- Sheepolution
- Party member
- Posts: 264
- Joined: Mon Mar 04, 2013 9:31 am
- Location: The Netherlands
- Contact:
Re: How to LÖVE - Now on Github
I put the whole thing on Github.
Who is online
Users browsing this forum: ImpishDesign and 2 guests