Search found 1166 matches

by ivan
Sun Jan 14, 2018 6:08 pm
Forum: General
Topic: AGen
Replies: 56
Views: 9964

Re: AGen

Yep, it's great to see how much Love2D has advanced. Agen and Love2d were released around the same time. Our goal was/is always to focus on making games while Rude and Mike went the open source route. Over the years, it has become impractical to maintain the old engine in addition to making games. T...
by ivan
Sun Jan 14, 2018 5:15 pm
Forum: Games and Creations
Topic: Bass Lover
Replies: 8
Views: 730

Re: Bass Lover

Hey, looks better. Good job improving the UI. Like I said, it's a cool concept, but needs a little bit of work. First off, you need to either start players with a rod/lure already selected or ask them the choose a rod/lure right away - as it can be a little confusing for new players. It's a nice gam...
by ivan
Sat Jan 13, 2018 8:37 am
Forum: Support and Development
Topic: MULTIPLAYER ONLINE GAME - how to do?
Replies: 8
Views: 244

Re: MULTIPLAYER ONLINE GAME - how to do?

I must say, one week to finish such a thing is kind of a brave thing to do! :3
A polite way of saying "not going to happen". :)

Technically it's possible, but concurrency for real-time multiplayer games is a hard problem.
by ivan
Fri Jan 12, 2018 4:04 pm
Forum: General
Topic: [HELP]Rotating circles around the middle and not corner
Replies: 4
Views: 202

Re: [HELP]Rotating circles around the middle and not corner

If you insist on 0,0 being the center of the window: w, h = love.graphics.getDimensions() love.graphics.translate(w/2, h/2) Also, you probably should offset your circles by a half too: love.graphics.draw(circle, sunX, sunY, 0, 1, 1, circleW/2, circleH/2) Lastly it's always a good idea to program you...
by ivan
Fri Jan 12, 2018 2:12 pm
Forum: General
Topic: AGen
Replies: 56
Views: 9964

Re: AGen

Have some followup news on the AGen engine. After 10 years we're finally discontinuing support for AGen and will be porting our games to Love2D! I've rewritten a few of the Lua tutorials so they are largely compatible with Love2D: https://2dengine.com/?p=tutorials PS. Many of tutorials now include i...
by ivan
Tue Jan 09, 2018 12:19 pm
Forum: Support and Development
Topic: File Open
Replies: 3
Views: 137

Re: File Open

File select dialogs are related to the operating system - the focus behind love2d is to make games playable across multiple platforms, including iOS and Android. OS-related things like this are probably not going to happen (at least not in the foreseeable future). Yes, you always want to write to th...
by ivan
Mon Jan 08, 2018 6:36 pm
Forum: Support and Development
Topic: Concerning Source Obfuscation
Replies: 4
Views: 162

Re: Concerning Source Obfuscation

Believe me, you cannot stop piracy - NOT through code obfuscation. When you're selling your game, the goal is to make an easy and seamless experience for the paying customers. Trying to make things more difficult for the pirates is an utter waste of time. The only way to stop piracy altogether is to...
by ivan
Mon Jan 08, 2018 5:27 pm
Forum: Support and Development
Topic: Right-to-left languages and love.graphics.printf
Replies: 0
Views: 77

Right-to-left languages and love.graphics.printf

Hello, I'm porting a few games to Love2D and one of them has an Arabic localization. My question is: does love.graphics.printf support RTL languages? What I mean is, typically with LTR we wrap and break the string from the right side: 1234- 56789 But with RTL the wrapping has to be done from the lef...
by ivan
Sat Dec 30, 2017 7:28 am
Forum: General
Topic: Better exception handling
Replies: 7
Views: 298

Re: Better exception handling

Zorg is correct in theory. While debugging, I also run strict.lua without pcall-s. Nevertheless, similar errors still slip by due to bad packaging, delayed loading, etc. In reality, production code is another story and there are many factors involved. For example, if you have automated error reporti...
by ivan
Fri Dec 29, 2017 10:28 am
Forum: General
Topic: Better exception handling
Replies: 7
Views: 298

Re: Better exception handling

pcall can handle that error:

Code: Select all

function love.audio.pNewSource(filename, type)
  local ok, res = pcall(love.audio.newSource, filename, type)
  return ok and res -- returns nil when "newSource" fails
end
But then you have to check if the function returns nil which can too verbose for some people.