Search found 9 matches

by crystal
Mon Jan 28, 2019 3:51 pm
Forum: Support and Development
Topic: Re scaling and Resolutions
Replies: 6
Views: 1658

Re: Re scaling and Resolutions

simply do myW, myH = 500, 900 W, H = love.graphics.getDimensions() scaleW, scaleH = W/myW, H/myH ... love.draw() love.graphics.push() love.graphics.scale( scaleW,scaleW ) --draw game stuff love.graphics.pop() end if you want to avoid stretching you must use same scaling factor for width and height
by crystal
Thu Jan 24, 2019 4:11 pm
Forum: Support and Development
Topic: android sotfkeys block getDesktopDimensions() function
Replies: 1
Views: 1052

Re: android sotfkeys block getDesktopDimensions() function

if anyone else have the same problem, workaround is to set fullscreen mode
love.setFullscreen(true)
and then grab your width and height from love.resize(w,h) callback
by crystal
Wed Jan 16, 2019 2:41 pm
Forum: Support and Development
Topic: android sotfkeys block getDesktopDimensions() function
Replies: 1
Views: 1052

android sotfkeys block getDesktopDimensions() function

hi im trying to get dimension on android device by using windowWidth, windowHeight = love.window.getDesktopDimensions() it works fine on tablet without softkeys, but the problem is phone with softkeys my game runs in fullscreen but getDesktopDimensions() function does not giving me real resolution d...
by crystal
Wed Jan 09, 2019 2:36 pm
Forum: Libraries and Tools
Topic: Best way to bitmap font?
Replies: 3
Views: 1405

Re: Best way to bitmap font?

BM Font on Windows -- can't seem to get it to save color/alpha information properly. Font renders as white blur over black background with no compositing. BM Font generates aditional file .fnt which holds all info about characters like position ,width, spacing etc.. unfortunately love2d doesnt have...
by crystal
Sun Jan 06, 2019 1:20 am
Forum: General
Topic: how to change package name (android)
Replies: 1
Views: 561

Re: how to change package name (android)

sry i forgot to mention im using bio's fork with admob module
and in his androidmanifest he already replaced GameActivity to AdActivity
any tips ?
by crystal
Fri Jan 04, 2019 10:43 pm
Forum: General
Topic: how to change package name (android)
Replies: 1
Views: 561

how to change package name (android)

is there updated tutorial of this https://bitbucket.org/MartinFelis/love- ... _Packaging

AndroidManifest.xml is now different and i cant find valid tutorial on google
by crystal
Sun Oct 01, 2017 5:18 pm
Forum: General
Topic: [Help] Collision detection isn't working as it should
Replies: 2
Views: 587

Re: [Help] Collision detection isn't working as it should

replace your "distanceBetween" function with this
https://love2d.org/wiki/DistanceBasedCollision

and change this line to

Code: Select all

if distanceBetween(z.X, z.Y, player.X , player.Y,30,30) then
hope that helps ^^
by crystal
Sun Oct 01, 2017 2:00 am
Forum: General
Topic: what is best/simple ui library
Replies: 4
Views: 1397

Re: what is best/simple ui library

Suit - missing onButtonPressed function which is very important for my game Wait... what? There's a UI lib that doesn't provide a way to subscribe to button events? ok, ok i typed that in hurry i said its a noob question and i should delete that cuz of google search although i couldn't get it to wo...
by crystal
Sat Sep 30, 2017 10:26 pm
Forum: General
Topic: what is best/simple ui library
Replies: 4
Views: 1397

what is best/simple ui library

hi, i need your opinion on this the question maybe very noob-ish but really what is the best ui library for a simple mobile game i have tried libs like Suit - missing onButtonPressed function which is very important for my game Gooi - uses too much cpu if it draws over gamescene Easy GUI System - se...