Search found 1186 matches
- Mon Dec 28, 2020 1:33 pm
- Forum: Support and Development
- Topic: Function that switch a boolean value
- Replies: 6
- Views: 5432
Re: Function that switch a boolean value
Another way: return the new value and set it to the test value test = true function love.draw() if test then love.graphics.print("Test true") else love.graphics.print("Test false") end end function love.mousepressed( x, y, button, istouch, presses ) if button==1 then test = switc...
- Mon Dec 28, 2020 1:28 pm
- Forum: Support and Development
- Topic: Function that switch a boolean value
- Replies: 6
- Views: 5432
Re: Function that switch a boolean value
Code: Select all
function love.mousepressed( x, y, button, istouch, presses )
if button==1 then
test = not test -- turns false to true and true to false
end
end
- Sat Dec 26, 2020 2:39 pm
- Forum: Support and Development
- Topic: Windows global scale
- Replies: 4
- Views: 5740
Windows global scale
Hi all! I have problem. I have windows 10 and I have 150% scale for 4K monitor. https://www.dedoimedo.com/images/computers_years/2014_2/ideapad-changed-dpi.png How to set the Löve window scale back to 100%? For example I've made the window 800x600, but the screenshot will be taken with 1200x900. How...
- Wed Dec 23, 2020 3:34 pm
- Forum: Games and Creations
- Topic: Small Ray Tracing (or RayCasting)
- Replies: 8
- Views: 13904
Re: Small ray tracing
Tested and fixed version from https://love2d.org/forums/viewtopic.php ... 92#p237207
- Tue Dec 22, 2020 9:38 pm
- Forum: Games and Creations
- Topic: POCA - A puzzle game
- Replies: 2
- Views: 4295
- Mon Dec 21, 2020 1:59 pm
- Forum: Games and Creations
- Topic: Isometric Tile based game (just a basic demo)
- Replies: 3
- Views: 5540
Re: Isometric Tile based game (just a basic demo)
Looks nice!
Is it possible to change the angle to 45°30°? It gives you exactly ~26.57° (tan(0.5)).
Is it possible to change the angle to 45°30°? It gives you exactly ~26.57° (tan(0.5)).
- Sat Dec 19, 2020 6:43 pm
- Forum: Games and Creations
- Topic: High UPS run.lua script
- Replies: 5
- Views: 5615
- Wed Dec 16, 2020 10:38 pm
- Forum: Games and Creations
- Topic: Spirograph
- Replies: 2
- Views: 5361
Spirograph
My try to make some spirograph, 3 vectors.
- Sat Dec 12, 2020 8:11 pm
- Forum: Games and Creations
- Topic: [WIP] N-Ring, 2D racing or cars
- Replies: 4
- Views: 45335
Re: [WIP] N-Ring, 2D racing or cars
I've added rays from this project:
Raycasting: https://love2d.org/forums/viewtopic.php?f=14&t=89815
Raycasting: https://love2d.org/forums/viewtopic.php?f=14&t=89815
- Thu Dec 10, 2020 3:50 pm
- Forum: Games and Creations
- Topic: High UPS run.lua script
- Replies: 5
- Views: 5615
High UPS run.lua script
Hi all!
I've tried to make high UPS Löve run.lua script.
The updates per second will be about 200000; frames per second about 60.
You can move slider to change the UPS, also use arrow keys to move the agent. Lines move one-by-one pixel every updating, but yellow moves every new lap.
I've tried to make high UPS Löve run.lua script.
The updates per second will be about 200000; frames per second about 60.
You can move slider to change the UPS, also use arrow keys to move the agent. Lines move one-by-one pixel every updating, but yellow moves every new lap.