Submissions by qubodup tagged love2d

The goal of this minigame was making the easiest possible game demo that has movement and collision detection for teaching purposes. Here's the source with German language commentary:

function love.load() -- hier werden zu Beginn einmalig Befehle ausgeführt
  sx,sy = 700,300 -- stehen für Spieler X- und Y-Koordinate
  cx,cy = 50,300 -- stehen für Computer X- und Y-Koordinaten
end
function love.draw() -- hier werden Bilder und Formen gezeichnet
  love.graphics.circle("fill", sx, sy, 50) -- Großen Kreis (Spieler) zeichnen
  love.graphics.circle("fill", cx, cy, 25) -- Kleinen Kreis (Computer) zeichnen
end
function love.update() -- hier werden Veränderungen berechnet
  if love.mouse.isDown("l") then -- falls Mausknopf/Touchscreen gedrückt/berührt
    if love.mouse.getY() > sy then -- wenn Maus/Finger höher als Spieler ist...
      sy = sy + 10 -- Spielerbewegung nach unten
    else -- ... in allen anderen Fällen
      sy = sy - 10 -- Spielerbewegung nach oben
    end
  end  
  cx = cx + 5 -- Bewegung des Computers nach rechts
  if cx > 800 then -- Beim Berühren des Rechten Randes
    cx = 0 -- wird der Computer nach links versetzt
    cy = math.random(1,600) -- wird die Höhe des Computers zufällig berechnet
  end 
  -- Wenn Spieler und Computer einander nahe sind
  if math.abs(sx - cx) < 50 and math.abs(sy - cy) < 50 then
    cx = 0
    cy = math.random(1,600)
  end
end

I figure some of you could use this to learn some German! :D

Needs LÖVE to run


minimal.love759 bytes
19 downloads

On Saturday I made this game in <7 hours at Berlin Mini Jam and on Sunday I fixed scaling on Android and made it a bit easier. On Desktop you'll need LÖVE to play. Music used from my music streak entry.


PSA: don't let your cat explode!

aFatCat.apk4mb
4 downloads
aFatCat.love548kb
2 downloads

Something about a heart. It's an arcade tower defense survivor made in LÖVE, which you'll need to play.

Making this, I learned a little bit about quads and rotation and got reminded how non-straightforward managing lists of removable entities is.

HerzCannon.love2mb
4 downloads