Tagged Questions

LÖVE is a framework for making 2D games using Lua programming language.

learn more… | top users | synonyms

2
votes
3answers
84 views

Building a C-E engine in a high level language, how can I integrate optional lower-level components that own overlapping state?

To clarify, by overlapping I do not mean overlapping between said components, but rather, let's say I have: My entity contains components, and a parent-children system. Call it a mandatory Hierarchy ...
0
votes
1answer
86 views

2D physics collision/gravity problem?

I'm using Love2D and my own physics engine to create a 2D platformer. Y collision works fine, but X collision... well, it's a bit buggy. When I move off of a small platform I've created, I fall but it ...
0
votes
1answer
109 views

Run Love2D on iphone and android

I have a game developed in lua using love 2d, and now i want to run it in ios/android. Is there any porting or way available to do that. Thanks.
1
vote
1answer
67 views

Love2d: Failed to load tileset map

I'm reading the Love2D Development book, which i think i will stop reading because is outdated and very instable, sometimes i got a lot of troubles. Backing to the question, i made a tileset map with ...
1
vote
1answer
63 views

Love2D Box2D RevoluteJoint and Anchors

and apologies in advance for this fairly random question. I'm using Love2D 0.9.1 and Box2D to create two bodies joined by a revolute joint. A simplified representation of the two bodies is a Sphere ...
3
votes
1answer
92 views

Make an object follow the mouse pointer with LÖVE2D

I've been trying to make a picture follow the mouse pointer with LÖVE2D. I want that the object follow the mouse, and not just be the mouse coordinates, I did that. So I toked the distance between ...
0
votes
2answers
171 views

Smooth moving on tile-based map, how to fix simple collisions?

I've already had some experiences about the work of 2 dimensional square-based playfields and moving a player on them. Though, when a square has multiple pixel sizes, and player moves e.g. 1 pixel per ...
2
votes
1answer
278 views

Generating transformation matrix for 2D camera with pan/zoom/rotate

Question How do you implement a camera with pan/zoom/rotation for a 2d game? Is it acceptable to multiply together a series of transformation matrixes to generate a final transformation matrix that ...
0
votes
0answers
42 views

Checking if two lines are crossing [duplicate]

How can I check if two lines (created with function love.graphics.line) are crossing themselves? I may use this ability to create procedural maps via graphs.
1
vote
2answers
152 views

How can I get the force of a collision in Love2D?

Is it possible to get the force of a collision between two objects in Love2D/Box2D? If so, how?
0
votes
1answer
131 views

How to spawn an object on collision in box2d + love2d?

I'm trying spawn collidable debris from a ship when it explodes in love2d/box2d, however, World:isLocked() is true when collision callbacks are called: This will return true inside the callbacks ...
3
votes
1answer
229 views

Make some black pixels transparent in Love2D

Is it possible to put a black opaque rectangle over my game screen and then change transparency on some pixels? For example I have black rectangle on screen represented by 1 1111111111111111111111 ...
1
vote
1answer
128 views

Starter love2d physics program not working

I am starting out with my first love2d (using LöVE 0.8) physics program. I am just creating some ground/floor, a car body and attaching two wheels with revolute joints and setting the motors a-go. ...
1
vote
1answer
453 views

Love2D : How can I keep up with lots of small sprites' collision data?

So I'm using a SpriteBatch to keep up with lots of small pieces for a falling-piece puzzle game. I have an array of Quads (for different color blocks), and they are randomly added to the ...
0
votes
1answer
293 views

Love2D : Problem rotating image in a SpriteBatch

I'm working on a falling blocks type of game with triangular pieces. I'm using a SpriteBatch to accumulate and remember the pieces and their locations. The problem is that when I rotate a scaled ...
4
votes
1answer
317 views

Make image follow path

I made an animated main menu introducing my game. In the menu there is snow and fog to create a more alive feel to it. Now I want to add a hawk that randomly spawns and flies across the screen in the ...
2
votes
1answer
152 views

Getting an images rgb value at click

I'm not sure if this is at all possible, but maybe it will spark up an interesting conversation. (Sidenote: working on a small game in Löve). I'm making an archery shooting kind of game, and I was ...
3
votes
3answers
398 views

Automatically triggering standard spaceship controls to stop its motion

I have been working on a 2D top-down space strategy/shooting game. Right now it is only in the prototyping stage (I have gotten basic movement) but now I am trying to write a function that will stop ...
2
votes
1answer
155 views

Is it possible to have the main callback functions in different files with love2d?

Is it possible to have love.load(), love.draw() and love.update() in different files? and if so how would I go about doing that?
1
vote
1answer
370 views

How should I share variables between instances/classes?

I'm making a game using LOVE, so everything is programmed in Lua. I've been experimenting with using classes and object orientation recently. I've found out that a nice system to use is having most of ...
2
votes
2answers
1k views

How to use batch rendering with an entity component system?

I have an entity component system and a 2D rendering engine. Because I have a lot of repeating sprites (the entities are non-animated, the background is tile based) I would really like to use batch ...
7
votes
6answers
1k views

Game state management (Game, Menu, Titlescreen, etc)

Basically, in every single game I've made so far, I always have a variable like "current_state", which can be "game", "titlescreen", "gameoverscreen", etc. And then on my Update function I have a ...
1
vote
1answer
245 views

Where in code to for collision? In object class? Mainline code?

Making a simple game in Love 2D framework where if I click on an object then it disappears. Do I check to see if I've clicked the enemy inside a function in the enemy object? Or just in my main.lua? ...
5
votes
1answer
309 views

How do I change a LÖVE2D game executable's icon?

I merged my game.love file and the love.exe with the command copy /b love.exe+app.love game.exe. But the resulting executable has the default LÖVE2D icon. Is there a way to change that icon to ...
4
votes
3answers
1k views

How can i run my .LÖVE game directly from the lua interpreter?

I've just started with LOVE and LUA , i'm interested in LOVE because i want to play around with something different from my dayjob(i'm a webdeveloper) and since it uses LUA and is interpreted , i ...
2
votes
1answer
744 views

Box2D + Love2D (Lua) - Assertion fail with polygon meshes

When I try to create a triangle collider for my game it sometimes leads to an assertion fail. I use the physics engine that comes with love2d (Box2D). That's the error message that appears when the ...
2
votes
2answers
282 views

Alerting enemies to my presence when I make a sound in a Wolfenstein/DOOM style game engine

I am working on a raycast-based 3D game and things are going well, but I am now currently working on the AI of an enemy. I want to make it like how DOOM did it but don't know how to handle how and ...
1
vote
0answers
147 views

How would the GPL apply to these generated source files? [closed]

I am currently using Love2D as my game engine of choice and have come across the situation where I have had to retype out similar code over and over. In particular, if I want to add a new color to a ...
7
votes
4answers
8k views

Which language and tools should I choose for creating 2D games? [closed]

Recently I have returned to my childhood hobby (programming games) and found it quite enjoyable. I've been tinkering with PyGame (for Python) for a few months, made a couple of projects for ...
1
vote
1answer
947 views

Make Love2D load resource from inside the .love file

I've just made my first (very simple, ugly) game in Love2D. The game works fine when run directly off my hard drive. However, when I package it up as a .love file, I get the following message: ...
10
votes
3answers
10k views

Good Tutorial For Lua and LÖVE

I want to make a very simple 2D game, and have been reading a lot of good things about LÖVE, so I want to try it out. However I can't seem to find any good tutorials. The ones on the LÖVE page are ...
11
votes
8answers
17k views

Love2D engine for Lua; What about 3D? [closed]

Lua has been really awesome to learn, it's so simple. I really enjoy scripting languages, and I had an equally enjoyable time learning Python. The Love engine, http://love2d.org/, is really awesome, ...