340 points · by vlaaad · 6y ago · 293 comments
Can't wait to patch more native moonscript support into a fork :evil:
If you want to see an overview of a somewhat typical and polished mobile game done with Defold, here's a non-King dev showing off his work: https://www.youtube.com/watch?v=sK4pJ8A3YS4
Also, in relevant news, Corona (the other major Lua game engine[1]) is also being open-sourced, and renamed to Solar2D: https://news.ycombinator.com/item?id=22326462
[1] with dev ecosystem of extensions, build services etc - without that Love2D might also qualify
Before, I would try to learn how to make games by dabbling with SDL/DirectX/Cocos2D/etc, but figured out that you can't really do much with these frameworks as a beginner than just copy-pasting code in the books and tutorials. I was really able to make "complete" apps once I've grabbed a no-nonsense batteries-included framework like Corona, and I would have wasted far more time on useless low-level stuff if I haven't stumbled upon it.
Oh, and about the unfortunate name they've decided with: who really knew that this coincidence would happen haha...
CoffeeScript development was one of the most regretful experiences I've had. Delimiters are optional even when invoking functions. A statement like f(g(h(x))) becomes painful to read. Plus, sometimes you want to use a function as a parameter, how do you reason about that? Welcome to the Twilight zone.
Whitespace in CoffeeScript has a meaning. In Python, that is the case too, but it only applies to statement blocks. In CoffeeScript, the situations you will find are just absurd, such as the fact that inconsistent indentation is allowed.
Code is written once, read many times. CoffeeScript emphasizes rapid writing not reading. In that sense, CoffeeScript is to JavaScript what Stenography is to Writing.
What I personally like a lot is how it makes it easier to write efficient Lua by because (for example) it makes local variables the default.
Also, FWIW the LuaRocks server is written in Moonscript, and that's a pretty important bit of Lua infrastructure I'd say.
Nitpick: The server is openresty (Nginx). The web-framework is Lapis, which is Lua and can be developed on with Lua or Moonscript.
Also, you probably can't name anything COVID, but I think that's a less likely scenario.
Perhaps this is purely attributable to the British sense of irony.
We have updated the website to reflect this and we no longer use the term "Open Source" as to not confuse it with the OSD.
The Defold license, complete with a summary of what you can and cannot do, can be seen on our license page: https://defold.com/license/
We have also Tweeted this: https://twitter.com/defold/status/1262744466311360517
Note: I'm not taking part in the OSS/FOSS drama, I'm just making a note that if you did want to change all occurrences, you might want to consider that one as well.
It's really not okay to be capitalizing on the FOSS brand without being FOSS. It's a kick in the groin to the FOSS community when companies do this.
Something being "open source" does not imply anything about its license.
Suggesting that only GPL-like software is allowed to use the term "open source" is crazy. It doesn't reflect the world we live in at all: there are thousands of projects on github without a license, or with some "free for non-military use"-type of license, or MIT/BSD-like licenses...
EDIT: "the obvious meaning for the expression “open source software”—and the one most people seem to think it means—is “You can look at the source code.” (Richard Stallman, GNU Philosophy: https://www.gnu.org/philosophy/open-source-misses-the-point.... ). Not that Stallman did much better with "free software", which as the article argues, has the obvious meaning that 'the software is "for free"'.
Having to avoid expressions like "free software" or "open source" because two organizations decided to appropriate common english expressions to give them a complicated meaning is nuts.
This is incorrect. Over 20 years ago people who would later be part of OSI _coined_, not co-opted, the term (within the scope of software). It was coined to mean _exactly the same thing_ as "Free Software"; the OSD was directly derived from the Debian Free Software Guidelines and there have only been two licenses, as I recall, that are OSI approved and the FSF have said are non-free.
You also confuse "OSI-approved license" with "GPL", because the OSI (and FSF) have approved permissive BSD and MIT and many other non-copyleft licenses. Here you go: https://opensource.org/licenses/alphabetical
And? There are a lot of Open Source licenses, and even Free Sofware licenses besides GPLv3.
but neither does LLVM (and many people do not consider LLVM to be free software
Note that "Free Software" and "Open Source" are different - albeit related - things.
nor the dozens projects on Github that don't have a license at all, or that have a license of the form "Free for non-commercial purposes" or the millions of flavors of that ("Free for non-military use", etc.).
And those things are not Open Source. They may be "Source Available", or "Shared Source" or "Something Else", but "Open Source" has a de facto definition of "uses a license which is OSD compliant."
Copyleft, free software, and open source all have different meanings, and GitHub has no restrictions on the license of software using its platform, and you're deliberately confoudning these things here to sow confusion. There are millions of different software licenses, yes, but that doesn't make them all open source. Give me a break. Is Windows "open source" by your reckoning? I has a license, after all, and I can decompile it, after all.
Defold is Open, meaning that it is possible to modify and extend. It is actually possible to extend the engine even without source code access thanks to our native extension system.
Try googling "free and open" and tell me that this choice of words is not misleading after seeing the results.
This makes me realise that I need to update my LinkedIn profile if anyone bothers to check it!
https://defold.com/2020/05/20/Some-thoughts-on-the-open-sour...
As discussed elsewhere in this thread, source-available is not the same thing as Open Source.
edit Not sure why I'm being downvoted here. This really isn't up for debate. See https://news.ycombinator.com/item?id=23233336 , https://news.ycombinator.com/item?id=23235217
Defold uses message passing, which initially I was very excited about, but it turns out my brain is used to thinking about objects and references and I kind of struggled to do simple things in Defold which is part of the reason I switched to Unity.
One thing that did make it over in the port is a cool actor-based AI that I probably wouldn't have thought to use if I started the game in Unity.
Defold does give you a ton of control though and it would enable more customization than Unity, especially now that it is open source.
I should also say the Defold community is great and the devs behind the game engine are very helpful.
And this is my first game so any difficulties with Defold could be due to my initial learning curve.
This gives a good overview https://defold.com/product/
See https://news.ycombinator.com/item?id=23233336 , https://news.ycombinator.com/item?id=23235217
I've just actually started to do something with Godot and I'd be very grateful to find out the differences between these two engines.
Godot was a pleasure to use, I didn't feel the need to revisit Defold.
So, instead of silently killing Defold a second life as an open source project seems more merciful for the people that internally believed in the project.
By open sourcing Defold and handing it to the Defold Foundation we build trust with the community. It guarantees that Defold will be around regardless of what happens with King. And by handing over Defold to the Defold Foundation we believe it gives a lot of credibility to Defold as a strong and independent open source game engine.
I love the release, I appreciate the time and effort, and I'm sure you have the best intentions, but the term "open source" has a very well defined meaning for very well defined reasons, and those reasons are hugely important to the last few decades of technological development. Please don't break the definition, even if you have the best of intentions!
Once again, thanks and congratulations on the release!
> The license grants you the following permissions:
> - You are free to commercialise any software created using Defold
Edit (after reading other comments): Ohh, derivative works of the Editor itself cannot be commercialized. Hmm.
It also focuses a lot on providing fast iteration times. You can hot-reload changed assets onto a device while the game is running. For most asset types, you'll see the change on device in less than a second. Similarly, a Build and Run cycle from scratch for a moderately complex game project such as Blossom Blast typically takes around a minute or so, and subsequent cached builds can start in a couple of seconds.
(Edit: Full disclosure, I worked on the Defold editor.)
When I used Unreal Engine, I found and fixed engine bugs.
When I used Unity, I found engine bugs and we had to work around them with ugly hacks.
When I used Defold, we shipped without ruining into any trouble.
Of course, Unity and UE are much more powerful. But if you don't need that, simple is king.
What's the advantage of this vs Godot?
https://www.youtube.com/watch?v=ajX09xQ_UEg
(I don't know if this is an advantage/disadvantage compared to Godot or how that extensibility compares)
edit: clarification, see Ponk's comment below
You can write game-specific extensions to the runtime in C++ if your game requires it, but most games are authored in just Lua.
Edit: Typo.
https://defold.com/manuals/introduction/
> Defold uses Lua for all its logic control. The engine is a fast C++ piece of machinery, but it is controlled on a high level by Lua programs.
// A terrible hack as an attempt to avoid a deadlock when loading native libraries.Lua has something of the schoolhouse feel about it, too prim and rigid like Pascal.
So I am presently thinking of moving on to Phaser.io.
https://gist.github.com/raysan5/909dc6cf33ed40223eb0dfe625c0...
It includes "No Discrimination Against Fields of Endeavor"
"You can not commercialise original or modified (derivative) versions of the Defold editor and/or engine" does not meet (6).
I'm not even going to start on the use of the term "free".
My (probably flawed) comparison is to the term "fair use". Yes, you can play all sorts of games to make those 2 words mean almost anything you want, but at the end of the day that term is defined by law, not by pedantry.
"open source" has an accepted definition, and it's damaging to society to try to undermine it.
If you think I'm exaggerating, please remember that you can probably thank open-source software for the growth of the Internet, the availability of previously restricted secure encryption and thousands of tools that you probably use to earn a living.
If I would ever release it with restrictions, I would call it "source available" or something like that.
I think as a community, we should also have a strict term for a project with source code, but too restrictive to be called open source.
From my search, "Source Available" was the best terminology, unless someone knows a better one.
EDIT: maybe "Awesome Source" ;-)
Edit: typo
Also, given that the original engine is now free as well doesn't this change actually make the license a bit more GPL like? If you modify the Defold engine you can only give it away or keep it to yourself, basically.
I still feel like the asset flipping issue is a legitimate concern though.
> 9. License Must Not Restrict Other Software
> The license must not place restrictions on other software that is distributed along with the licensed software. For example, the license must not insist that all other programs distributed on the same medium must be open-source software.
When I base software on GPL software, then my software is distributed along with that GPL software. According to this phrase, GPL might not place restrictions on my software. Yet it does.
The GPL requires two things, mainly, if you're going to use something GPL in a closed source package.
1) Attribution. You can't just take and not comment.
2) Modifications should be made available under the same license.
this means that if you're using GPL software and including it as a shared object, then you're fine.
If you need to modify that software to make it work for you (including fixing bugs) then you need to make those elements available.
This is different than insisting that anything that touches GPL code be GPL also.
Some proprietary licenses do have provisions for this, which makes them GPL incompatible.
On top of that, they even use "free and open source", which refers to certain moral freedoms rather than license mechanics.
Please see this statement: https://twitter.com/defold/status/1262744466311360517
What this is about is the potential for naive copies where someone takes the codebase and tries to make essentially the exact same product with no significant changes. That would be a source of confusion and competition and not really serve anyone.
It is great to be enthusiastic about open source, but objecting to people sharing source code is rarely a good idea. I openly challenge anyone to make a functioning, useful fork of this project that would leave enough in place for this clause to apply.
You are talking about game engines and their complexities, which makes it hard to comply. There are compliant full fledged operating systems out there (I am sure you have heard of a few) that are actually "open source". So I am not sure why any company should get away with using the well known term in a misleading way.
Let's talk about the operating system angle. When I went to work at NeXT in 1993 there was a lot of GPL code in the system. By 1999 as Mac OS X approached release there was a frantic effort to remove all GPL code in favor of BSD or Apache licensed alternatives or in some cases nothing at all was favorable. If Mac OS had continued to make use of GPL code and components that could have made a big difference to the whole software development community in a strategic sense. Instead this kind of zealotry resulted in barriers. Not only do you not have the control you imagine, but your ongoing efforts to draw these lines makes everything that much more difficult and unpleasant.
A company gave away their app making tool for free, and these people are sitting in front of their keyboard talking shit about how "this is subverting the definition of 'open source'", seriously?
Also what's so evil about the clause:
> "You can not commercialise original or modified (derivative) versions of the Defold editor and/or engine" does not meet (6).
What's so wrong about businesses trying to give back to the community while protecting themselves against the likes of Microsoft and Amazon who will naturally take the code and monetize if there's no clause that restricts anti competition?
Lastly, who the hell cares what some website called opensource.org says what open source is? This is all subjective, and from my point of view, if the source code is open, it is "open" source. There are many reasons people open source their projects, for transparency, for giving assurance to the ecosystem, etc. By trying to box the definition down to a single very narrow minded idea, you're actually hurting the growth of open source instead of helping.
Excluding commercial use is not helping the growth of OSS, it is falsely claiming to be OSS.
If you want to say that it is being released as "source available" no one would complain. It is the falsehoods that bring out the complaints.
There is no single entity that own the word open source
>If you want to say that it is being released as "source available" no one would complain
Just like everything else, I totally understand that some will like it, some don't.
Is anything less than BSD or MIT license not open source then? I am all for it, but you are publishing some of your work under GNU which mean I can't use in one of my projects without publishing the source code under GNU. Why these restrictions are acceptable but not non-commercialisation?
Which definition of "open source" are you talking about in this case? I'm confused now.
Do you mean "Open Source" or source-available?
Plain English is important. People are lazy. People do not like non-obvious meanings. Regardless of intent, any one prompting idea that “open source” means anything other than “viewable source code” needs to reflect on the clarity of their communication and the reality they may be seen as an chest pounding elitist; which to me is not in the spirit of the idles the claim to believe.
Thousands good and one tiny bad thing, you get scrutinized to hell. You literally have to satisfy everybody otherwise theres gonna be a vocal minority(or majority) pointing out how wrong you are(usually due to difference in priorities). honestly, its mentally and emotionally draining to deal with these.
And its also applicable to HN community. Any time theres a tiny bit of good thing done by somebody/some company, theres always gonna be someone pointing out the bad things that someone/company did.
You either have to be full good, or just dont bother being a good guy.
I mean, why bother trying
You literally don't have to. You can just ignore some of them.
Very different from falsely claiming the release is OSI compliant or whatever the legalese is...
I think people have just figured out that "IANAL" goes without saying in any online public discussion, unless for whatever reason it happens to be in a forum where arbitrary participants are especially likely to be lawyers. This is not a commercial context where fraud would be a concern, and even if the speaker was a lawyer there is no reasonable expectation of any attorney-client relationship between random participants in a public discussion. "IANAL" flags are superfluous.
> Very different from falsely claiming the release is OSI compliant or whatever the legalese is...
The de facto accepted way to say that a license is OSI compliant is to refer to it as "open source".
> geez, what's up with all these armchair open source experts on HN? Looks like too many people on this thread thinks this is evil.
This is evil because it's intentional false advertisement. That's fine when some company which is totally new to the field doing it, but these guys have their code published on GitHub for years and they know the difference.This is no different from situation when surveillance sold under names like Patriot Act.
> Lastly, who the hell cares what some website called opensource.org says what open source is? This is all subjective, and from my point of view, if the source code is open, it is "open" source.
Yeah and if I decide that my restaurant make amazing pork dishes I am totally allowed to call them Vegan, Halal or Kosher. Right?Then we'll have amazing products like zoom call their software end2end encrypted. Oh actually it's already happen. And we also have this amazing software called Telegram which is totally encrypted except it isn't (by default). And Apple is absolutely cannot get access to your encryption key, unless you enable this shiny cloud backup option.
What an entitlement. You basically want people to be punished for giving away something for no charge, and has caused you no harm.
This is not about the money.
> a) You do not sell or otherwise commercialise the Work or Derivative Works as a Game Engine Product; and
Such a noncommercial clause means that this does not really follow the Free Software definition and Open Source definition of "open source".
It then goes on to show the difference very clearly, and as you can see the only difference from the Apache 2.0 license is that additional clause about non-commercialisation of the engine+editor package. You are still free to sell your Defold games, sell your Defold add-ons and sell your Defold tutorials.
So it at the very least claims to be a "permissive" license. The non-commercial restrictions are not mentioned there, one has to read on.
Just a reflection as non-native English speaker. Game Engine Product is not the same as 'Product of Game Engine'.
Not strictly open-source, but I see it as a defense mechanism in order to survive.
The license page is very clear on this: https://defold.com/license/
* You are free to commercialise any software created using Defold * You are free to commercialise any plugin, extension or tool created for use with Defold * You are free to modify Defold and you are not required to share the changes * You are free to distribute original or modified (derivative) versions of Defold * You are given a license to any patent that covers Defold
You can sell anything you want created with or related to Defold, but not package the engine+editor and sell those.
Edit: ahh just noticed that you are(from comment history).
UPD: Okay title has been changed and it's all good now.
No other game engine in Lua is going to provide dedicated server support out of the box besides Grid.
It's all also built on the latest version of LÖVE, which gives you access to all of the software in that ecosystem, too. It's the only full fledged game engine on LÖVE that we know of.
It's less known as we don't do much advertising and have had far fewer contributors, but our focus has been consistent over the years.
Because we have fewer resources, we also work very closely with those using the software if you have any questions.
While a collection of game engines using Lua seem to be tapering off in active development, such as Polycode, Corona, and perhaps now Defold, Planimeter's Grid engine is actively used by the group for game development projects, and will continue to be supported into the future, bringing commercial support in 2021.
We hope to improve the engine to better serve the indie and hobbyist gamedev community with tools that aren't available elsewhere and if we hear about any projects one would like to showcase, we'd be happy to feature them!
I'll keep your feedback in mind since I hope to improve the marketing collateral.
Planimeter uses the tech for its MMO flagship project.
I'm curious about how well tilemaps scale in your engine when it comes to huge maps.