Search found 5 matches

by scrolly
Wed Jun 11, 2014 9:28 pm
Forum: General
Topic: Dumb Question - main.lua runs function defs?
Replies: 4
Views: 3435

Re: Dumb Question - main.lua runs function defs?

function love.run() while true do ... if love.update then love.update(dt) end -- will pass 0 if love.timer is disabled ... if love.window and love.graphics and love.window.isCreated() then if love.draw then love.draw() end Doesn't checking for love.update and love.draw every loop create a (small) p...
by scrolly
Fri May 16, 2014 11:29 pm
Forum: General
Topic: Moonshine - A lightweight Lua VM for the browser
Replies: 16
Views: 10632

Re: Moonshine - A lightweight Lua VM for the browser

This is very true. WebGL will be necessary to fully implement Love's graphics API. Unfortunately it doesn't work on mobile so what I'm currently working on is using WebGL with the 2D canvas as a fallback, while using Love's GLES branch as an example. It's looking like a lot of work, though, so I'm ...
by scrolly
Thu Feb 27, 2014 8:37 am
Forum: General
Topic: smooth scrolling 2D game: possible?
Replies: 8
Views: 5447

Re: smooth scrolling 2D game: possible?

-spritebunch: maybe even easier, but only for tile based maps As I understand it, Pyglet takes this approach, it has a Sprite class that is impressive and uses batching. But I think the issue was, the main loop being python, you would get these ticks that varied wildly, so movement would seem jitte...
by scrolly
Thu Feb 27, 2014 7:48 am
Forum: General
Topic: smooth scrolling 2D game: possible?
Replies: 8
Views: 5447

Re: smooth scrolling 2D game: possible?

Yes, this is possible in LÖVE. LÖVE uses OpenGL, which makes the graphics fast. Programming in C++ would only make the game logic faster, but not the graphics. Pyglet uses OpenGL too, and it could not do smooth scrolling. It would jitter randomly. I didn't fully understand the explanation as to why...
by scrolly
Thu Feb 27, 2014 6:24 am
Forum: General
Topic: smooth scrolling 2D game: possible?
Replies: 8
Views: 5447

smooth scrolling 2D game: possible?

Hello! Would LOVE be appropriate (fast enough) for writing a high resolution (1920x1080), smooth scrolling 2D game? By scrolling, I am talking about Castlevania / Super Metriod / Mario style, where the game is always scrolling in some direction as the player moves. Being able to do Parallax scrollin...