I've never used Lua before but I am fluent in OOP. I'm not of advanced skill in any language, although, I have been able to write small programs in Python, Ruby, and JavaScript simply by knowing the concepts of OOP and adapting to the syntax of a new language.
Until very recently I was on path to become a web developer, but I'm so burnt out with that idea. I don't care to make boring social networks, e-commerce sites, and blogs: I am entertained with the idea of creating my own world, characters, stories, and laws much more.
So I am here to find out a little bit about Lua. I could have asked these questions on Quora, but I'd much rather get the answers from this seemingly vibrant community.
Firstly, I understand that Love is a 2D engine. That is fine by me, but does it support vector based graphics?
Next, does Lua and Love allow you to create entire games with no low-level coding required? Not grasping C/C++/C#/Java is a handicap of mine.
Also, can I create cross-platform games using Love? Browser, Android, iOS?
Lastly, does this Lovely combination support online/multiplayer integration?
Thank you in advance.
A few questions about Lua and Love.
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- zorg
- Party member
- Posts: 3468
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: A few questions about Lua and Love.
Hey there, welcome to the forums!
So, short answers to your specific questions:
So, short answers to your specific questions:
- Unless you find a (either lua or c) library for it, or write it yourself, löve doesn't support vector graphics, like loading and using SVG files. (but you can create art assets programatically, if you meant that instead, like create shapes and textures through code)
- Yes, you don't need to know C++ or C to create a game in löve; you're fine with just lua!
- Löve is cross-platform in that it does run on windows, mac and linux, and whenever 0.10.0 comes out, it will probably include android and iOS ports as well; for browsers, i believe there are/have been some ports in the ports subforum; to my knowledge, none complete.
- If by this, you mean that can you create multiplayer games, then yes; löve does include luasocket, and Enet, the latter being a somewhat higher-level lib... or you can also use the LUBE lib, that a löver wrote; your choice. (There are a few other relevant libs as well though)
If you're going for (dedicated-) server - client, not just peer-to-peer, then you can write the server in "plain" lua as well, as long as you correctly simulate the game and handle packets.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: A few questions about Lua and Love.
Hi! :-)zorg wrote: Also, i would suggest not sticking to OO solutions with lua (You can, of course, in more than one way too), but try out entity-component-systems.
Your sentence intrigued me. See, I stumbled upon a couple of articles on the subject (which were really more about theory); but I never had a chance to see it "for real". Does ECS mean "no OO" ? Would you happen to have any code example (maybe a little project ?) ?
Good evening (and sorry for the off-topic)
Re: A few questions about Lua and Love.
OO and ECS don't exclude each other, OO is a programming paradigm and/or language feature, ECS are a way of handling/simulating "things" specific mostly to video games. An ECS can be implemented using OO, but it doesn't need to, and in Lua you probably won't use a lot of OOP concepts if you use an ECS:SuperZazu wrote:Hi! :-)zorg wrote: Also, i would suggest not sticking to OO solutions with lua (You can, of course, in more than one way too), but try out entity-component-systems.
Your sentence intrigued me. See, I stumbled upon a couple of articles on the subject (which were really more about theory); but I never had a chance to see it "for real". Does ECS mean "no OO" ? Would you happen to have any code example (maybe a little project ?) ?
Good evening (and sorry for the off-topic)
With classical OOP Game programming, you will most likely end up with a class hierarchy something like this somewhere in your project:
Code: Select all
Entity
| \....
DamageableEntity
|
AnimatedCharacterEntity
| \-- ZombieNPC
Player
Entity #1 (Player): affected by AnimationSystem, WASDInputSystem, HealthArmorSystem
Entity #2 (Zombie #1): affected by AnimationSystem, AISystem, HealthArmorSystem
Entity #2 (Zombie #2): affected by AnimationSystem, AISystem, HealthArmorSystem
as you can see, there are no Classes or Types and in most ECS there isn't even going to be a "zombie" type anywhere (ECS work in a duck-typing kind of way usually).
Re: A few questions about Lua and Love.
Thank you for your answer! :-)
Who is online
Users browsing this forum: Google [Bot] and 5 guests