Search found 5 matches
- Fri Feb 07, 2020 2:30 pm
- Forum: Games and Creations
- Topic: How to scale like this and keep my love.mousepressed to work.HELP
- Replies: 4
- Views: 6180
Re: How to scale like this and keep my love.mousepressed to work.HELP
function love.mousepressed(x,y,button) --getting the scale factor local sx = window_width /scalex local sy = window_height / scaley --corrected translation according to scale local dsx = dx * sx local dsy = dy * sy --new image boundaries local iw = image_width * sx local ih = image_height * sy if x...
- Fri Feb 07, 2020 12:03 pm
- Forum: Games and Creations
- Topic: How to scale like this and keep my love.mousepressed to work.HELP
- Replies: 4
- Views: 6180
Re: How to scale like this and keep my love.mousepressed to work.HELP
When doing a scaling operation your coordinates and dimensions of the input image scale as well. In your case the point in rectangle calculation is wrong, because you scaled dx, dy and the image dimensions by using love.graphics.scale. In order to obtain the correct values you would need to scale dx...
- Tue Feb 04, 2020 8:00 am
- Forum: Games and Creations
- Topic: Fool - A frictionless pool game
- Replies: 0
- Views: 6196
Fool - A frictionless pool game
A game of pool, but without the pesky friction of the table. Uses Löve2D 11.3 Controls Left/Right - Change the shot angle Up/Down - Change the ball speed Ctrl + Left/Right - Faster angle change Shift + Left/Right - Angle fine tuning Return - Shoot the ball (Select in menus) Esc - Go Back (Menus only)
- Tue Oct 08, 2019 8:38 am
- Forum: Games and Creations
- Topic: Croque - A practise tool for drawings
- Replies: 2
- Views: 7721
Re: Croque - A practise tool for drawings
Just a quick update on croque. It's dead. I noticed that, especially for digital art, a "pin window to top" function is really needed. So I rewrote the whole thing in Kotlin to be of better use. I think it's still helpful for referencing, though.
Code and binary are available at Github
Code and binary are available at Github
- Tue May 28, 2019 10:33 am
- Forum: Games and Creations
- Topic: Croque - A practise tool for drawings
- Replies: 2
- Views: 7721
Croque - A practise tool for drawings
A croquis is a quick and sketchy drawing of a live model. That is what wikipedia says. It helps in getting basic lines and forms right. Usually there is a time limit in which you are supposed to finish your drawing. Since live models are a bit hard to come by I thought: "Yeah why not draw from ...