Search found 69 matches

by CrackedP0t
Fri Jun 26, 2015 6:07 pm
Forum: Games and Creations
Topic: The Great Experiment: At the debrises of the former world.
Replies: 10
Views: 2705

Re: party turn-based crpg in M&m-like setting (fullhd images

If you make it fullscreen, then you can just capture the desktop: https://trac.ffmpeg.org/wiki/Capture/Desktop
by CrackedP0t
Fri Jun 26, 2015 5:58 pm
Forum: Support and Development
Topic: Is there a way to increase a value when I run my game?
Replies: 2
Views: 344

Re: Is there a way to increase a value when I run my game?

Each variable in your game will be reset each time you launch it, so you'll have to keep track in a file. Something like this: function love.load() timesRun = love.filesystem.read("track.txt") or 0 timesRun = timesRun + 1 love.filesystem.write("track.txt", timesRun) end function love.draw() love.gra...
by CrackedP0t
Fri Jun 26, 2015 5:50 pm
Forum: Support and Development
Topic: [SOLVED] Multiple polygons not being drawn to a canvas
Replies: 10
Views: 1015

Re: Multiple polygons not being drawn to a canvas

Nixola wrote:Set the color to white before drawing the canvas.
Yep, that worked. Thanks!
by CrackedP0t
Thu Jun 25, 2015 4:46 pm
Forum: Support and Development
Topic: [SOLVED] Multiple polygons not being drawn to a canvas
Replies: 10
Views: 1015

Re: Multiple polygons not being drawn to a canvas

bartbes wrote:They.. kind of are? They're all just solid polygons exactly overlapping. What would you want to have happen?
They're not, though. If you comment out the blue polygon, you'll see the green one to the right. Also, if you draw them to the normal screen rather than a canvas, they draw properly.
by CrackedP0t
Wed Jun 24, 2015 9:47 pm
Forum: Support and Development
Topic: [SOLVED] Multiple polygons not being drawn to a canvas
Replies: 10
Views: 1015

Re: Multiple polygons not being drawn to a canvas

bartbes wrote:They're all drawn, they're just drawn on top of each other.
How can I make them all visible?
by CrackedP0t
Wed Jun 24, 2015 9:02 pm
Forum: Support and Development
Topic: [SOLVED] Multiple polygons not being drawn to a canvas
Replies: 10
Views: 1015

[SOLVED] Multiple polygons not being drawn to a canvas

With this LÖVE file, only the last polygon is drawn. Why is that, and what can I do to draw all of them to the same canvas? main.lua for your convenience: function love.load() canvas = love.graphics.newCanvas(100, 100 * math.sin(1/3 * math.pi)) end function love.draw() love.graphics.setCanvas(canvas...
by CrackedP0t
Tue Jun 16, 2015 4:16 am
Forum: Libraries and Tools
Topic: Polar Equations Grapher
Replies: 2
Views: 707

Re: Polar Equations Grapher

Interesting formulas:

A circle:

Code: Select all

5
A spiral:

Code: Select all

t
A star:

Code: Select all

5 + sin(5 * t)
A moving star:

Code: Select all

5 + sin(5 * t + time)
The default:

Code: Select all

4 / sin(t / pi) + 4 / cos(t / pi)
The default, but moving and trippy:

Code: Select all

4 / sin(t / pi + time) + 4 / cos(t / pi)
by CrackedP0t
Tue Jun 16, 2015 3:46 am
Forum: Libraries and Tools
Topic: Polar Equations Grapher
Replies: 2
Views: 707

Polar Equations Grapher

A while back, in my math class we were studying polar equations. Our TI-84s were absurdly slow, so I made something in LÖVE to graph them better. https://imgur.com/dQRf1Dq.png The equation goes in the top left corner. It has all the Lua math functions as globals, as well as t, which is theta (the in...
by CrackedP0t
Mon Jun 01, 2015 4:51 pm
Forum: General
Topic: Protip for non-windows users
Replies: 0
Views: 368

Protip for non-windows users

If someone uploads a .exe that's made with LÖVE, just change the extension from .exe to .love and open it with LÖVE like normal. Ignore all the .dlls that come with it.
by CrackedP0t
Sun May 31, 2015 12:48 am
Forum: Libraries and Tools
Topic: [TOOL] LÖVERocks - A package manager manager
Replies: 32
Views: 8257

Re: [TOOL] LÖVERocks - A package manager manager

Whoa. This looks really useful. I'll definitely remember this for my next project.
(Also: to library makers, you should put your libraries on LuaRocks! It would make them way easier to install and use.)