You're right I fixed it, thanks!
Search found 26 matches
- Thu Nov 09, 2017 3:38 am
- Forum: Support and Development
- Topic: math help
- Replies: 5
- Views: 5502
- Thu Nov 09, 2017 3:10 am
- Forum: Support and Development
- Topic: math help
- Replies: 5
- Views: 5502
Re: math help
Think this is what you're looking for. --load angle = 1 -- in degrees I use it as math.random(1,360) to get random starting spot X, Y = ObjectInMiddleX + math.cos(angle) * DistanceYouWantObjectToBeFromMiddle, ObjectInMiddleY + math.sin(angle) * DistanceYouWantObjectToBeFromMiddle --update angle = an...
- Fri Jun 09, 2017 3:28 am
- Forum: Support and Development
- Topic: How should I setup my LOVE2D project so that it works on mobile?
- Replies: 5
- Views: 3875
Re: How should I setup my LOVE2D project so that it works on mobile?
love does not auto scale to different resolutions. Meaning you have to make the code to do so. The simplest way to do this is use a library like this
https://love2d.org/forums/viewtopic.php?f=5&t=80738
https://love2d.org/forums/viewtopic.php?f=5&t=80738
- Wed Jun 07, 2017 9:04 pm
- Forum: Support and Development
- Topic: How can I test things on my PC that I plan to port to my phone?
- Replies: 7
- Views: 6004
Re: How can I test things on my PC that I plan to port to my phone?
lets say I'm developing my game for 480x320 Lets sets those to vars OriginalWidth, OriginalHeight = 480, 320 So we want to scale it to our new resolution which is the actual size of the devices we are running the app on. Lets set those aswell. WindowWidth, WindowHeight = love.graphics.getDimensions(...
- Wed Jun 07, 2017 7:32 pm
- Forum: Support and Development
- Topic: How can I test things on my PC that I plan to port to my phone?
- Replies: 7
- Views: 6004
Re: How can I test things on my PC that I plan to port to my phone?
I personally use 480x320
- Wed Jun 07, 2017 6:14 pm
- Forum: Support and Development
- Topic: Having data update when app is closed (idle)
- Replies: 5
- Views: 3530
Re: Having data update when app is closed (idle)
What does the
Do i get an error saying number expected got string
Code: Select all
f:read("*a)
- Wed Jun 07, 2017 4:38 pm
- Forum: Support and Development
- Topic: Having data update when app is closed (idle)
- Replies: 5
- Views: 3530
Re: Having data update when app is closed (idle)
i'm so stupid and your a genius.
So something like:
So something like:
Code: Select all
function saveExitTime()
lasttime = os.time()
end
function comparetime()
os.difftime(os.time, lasttime)
end
function love.load()
comparetime()
end
- Wed Jun 07, 2017 4:02 pm
- Forum: Support and Development
- Topic: Having data update when app is closed (idle)
- Replies: 5
- Views: 3530
Having data update when app is closed (idle)
So i'm wanting to make a idle game. In which you upgrade buildings gain gold blah blah. However i'm not sure how to go about updating the data while someone isn't online as i've never done any networking or any online development. What would i need? Where should i start. Can i use a database instead...
- Wed Jun 07, 2017 8:41 am
- Forum: Support and Development
- Topic: How can I test things on my PC that I plan to port to my phone?
- Replies: 7
- Views: 6004
Re: How can I test things on my PC that I plan to port to my phone?
my PC screen is 1360 x 778 while my phone is 1440 x 2960 First, I would not recommend making your game native 1440x2960 especially if you plan on supporting other phones. Reason being it takes Alot more power to scale down large assets then scale up small assets an older phone could possible freeze...
- Wed Jun 07, 2017 6:08 am
- Forum: Support and Development
- Topic: I'm having trouble requiring a module on Android
- Replies: 5
- Views: 4445
Re: I'm having trouble requiring a module on Android
I uploaded the wrong .love updated it