All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Register

Login


All New Register Login

All gists matching topic love2d

Recently created
Least recently created
Recently updated
Least recently updated
capitalex's Avatar

capitalex / Typing Game?

0 likes
0 forks
1 files
Last active 4 hours ago
Some kind of typing game in LÖVE
game love2d
1 score = 0
2 timer = 30
3 letter = string.char(math.random(97, 122))
4 font = love.graphics.newFont(48)
5 gameover = false
6 love.graphics.setFont(font)
7
8 function love.update(dt)
9 timer = timer - dt
10 if timer <= 0 then
capitalex's Avatar

capitalex / Lights Out

0 likes
0 forks
1 files
Last active 4 hours ago
A small lights out game written for LOVE. It doesn't check win states tho.
game love2d
1 local size = 100
2 local offsetH, offsetW = love.graphics.getHeight() / 2 - 250, love.graphics.getWidth() / 2 - 250
3
4 local grid = {
5 {false, false, false, false, false},
6 {false, false, false, false, false},
7 {false, false, false, false, false},
8 {false, false, false, false, false},
9 {false, false, false, false, false},
10 }
Newer Older

Powered by Opengist ⋅ Load: 31ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文