Search found 26 matches

by TheHistoricApple
Thu Nov 09, 2017 3:38 am
Forum: Support and Development
Topic: math help
Replies: 5
Views: 5322

Re: math help

zorg wrote: Thu Nov 09, 2017 3:24 am
TheHistoricApple wrote: Thu Nov 09, 2017 3:10 am Think this is what you're looking for.
-code-
You're mixing up the sin and cos though; x gets cos, y gets sin, like with the examples given above yours.
You're right I fixed it, thanks!
by TheHistoricApple
Thu Nov 09, 2017 3:10 am
Forum: Support and Development
Topic: math help
Replies: 5
Views: 5322

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...
by TheHistoricApple
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: 3766

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
by TheHistoricApple
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: 5783

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(...
by TheHistoricApple
Wed Jun 07, 2017 6:14 pm
Forum: Support and Development
Topic: Having data update when app is closed (idle)
Replies: 5
Views: 3348

Re: Having data update when app is closed (idle)

What does the

Code: Select all

f:read("*a)
Do i get an error saying number expected got string
by TheHistoricApple
Wed Jun 07, 2017 4:38 pm
Forum: Support and Development
Topic: Having data update when app is closed (idle)
Replies: 5
Views: 3348

Re: Having data update when app is closed (idle)

i'm so stupid and your a genius.

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
by TheHistoricApple
Wed Jun 07, 2017 4:02 pm
Forum: Support and Development
Topic: Having data update when app is closed (idle)
Replies: 5
Views: 3348

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...
by TheHistoricApple
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: 5783

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...
by TheHistoricApple
Wed Jun 07, 2017 6:08 am
Forum: Support and Development
Topic: I'm having trouble requiring a module on Android
Replies: 5
Views: 4332

Re: I'm having trouble requiring a module on Android

I uploaded the wrong .love updated it