Search found 16 matches

by 1u4
Sat Sep 13, 2014 5:25 am
Forum: Support and Development
Topic: using dt in external functions
Replies: 2
Views: 3652

using dt in external functions

Hi, In player.lua, I have function player_move() if love.keyboard.isDown("left") then player.x = player.x - (player.speed * dt) end if love.keyboard.isDown("right") then player.x = player.x + (player.speed * dt) end end In main.lua, I have function love.update(dt) player_move() e...
by 1u4
Sat Jun 09, 2012 6:43 am
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1791
Views: 1489129

Re: What's everyone working on? (tigsource inspired)

I'll just leave this here. It's the beginning of a game called triangle racers (the triangle you control). Uses the left, right, up, down kb arrows to animate the triangle to different positions -- which in turn produces a different steering experience and speed (speed not implemented yet). Basic ru...
by 1u4
Sat May 26, 2012 1:03 pm
Forum: Support and Development
Topic: Problem writing a screenshot.
Replies: 2
Views: 2759

Problem writing a screenshot.

Hi, I'm having trouble writing with the newScreenshot() function. function love.load() love.filesystem.setIdentity("screenshot") end function love.draw() took = true screenshot = love.graphics.newScreenshot() if took then took = false imageData = screenshot:encode( "png" ) love.f...
by 1u4
Mon May 21, 2012 11:26 am
Forum: Support and Development
Topic: Löve to Video file
Replies: 9
Views: 14670

Re: Löve to Video file

also because looking at the apps in Linux, it may be tricky to just capture the window area and I think I would still manually have to add sound. It would be nice to automate the whole process ;) Just use Kazam. It allows you to record a portion of your screen, and it can also record any pulseaudio...
by 1u4
Mon May 21, 2012 9:58 am
Forum: Support and Development
Topic: Löve to Video file
Replies: 9
Views: 14670

Re: Löve to Video file

Given that you are going to use external tools anyway, why don't you use a regular screen capturing software, like those used for creating screencasts? ...because I want to know how it works :) ...but also because looking at the apps in Linux, it may be tricky to just capture the window area and I ...
by 1u4
Mon May 21, 2012 6:56 am
Forum: Support and Development
Topic: Löve to Video file
Replies: 9
Views: 14670

Re: Löve to Video file

Just realised I can execute linux commands through love. I'm seeing if I can take that snapshot you suggested and pipe it to ffmpeg -- since ffmpeg can create a video from images.
by 1u4
Sat May 19, 2012 8:49 am
Forum: Support and Development
Topic: Unexpected behaviour when time is >= 10
Replies: 4
Views: 3248

Re: Unexpected behaviour when time is >= 10

Thank folks. I did that fix, made a few improvements and attached a copy with a working example -- if you are interested. It's still far from complete though.
by 1u4
Fri May 18, 2012 1:09 pm
Forum: Support and Development
Topic: Löve to Video file
Replies: 9
Views: 14670

Löve to Video file

Is there a way löve can record a user session (like a game play) to a video file -- Basically a record mode -- like how screen cast software does?

I'm currently looking into how to do a screen cap of a löve sessin with mplayer or ffmpeg, but just thought you might have a better idea.

Thanks.
by 1u4
Fri May 18, 2012 6:14 am
Forum: Support and Development
Topic: Unexpected behaviour when time is >= 10
Replies: 4
Views: 3248

Unexpected behaviour when time is >= 10

My code works fine, until the number in [start <number>] (in text = ) is 10 or more. In the example below, it displays the first string, "string 1", then at 5 seconds displays the string, "string 3" instead of "string 2". If you change the last start number in "tex...
by 1u4
Mon May 07, 2012 6:18 am
Forum: Libraries and Tools
Topic: New Love2d Beginner Video Tutorials
Replies: 2
Views: 3520

Re: New Love2d Beginner Video Tutorials

Your tuts are pretty funny. Thanks for making them.