Blog: 2025-03-02: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
* an accompanying lua irc client |
* an accompanying lua irc client |
||
* a wiki that uses markdown |
* a wiki that uses markdown |
||
My first little love "game" |
|||
<pre> |
|||
gdt = 0 |
|||
gmousepressed = false |
|||
function love.mousereleased() |
|||
gmousepressed = false |
|||
end |
|||
function love.mousepressed(x, y, button, istouch) |
|||
gmousepressed = true |
|||
end |
|||
function love.update(dt) |
|||
gdt = dt |
|||
-- love.graphics.print("Hello world! " .. dt, 400, 300) |
|||
end |
|||
function love.draw() |
|||
love.graphics.print("Hello world! " .. gdt, 400, 300) |
|||
if gmousepressed then |
|||
love.graphics.print("Mouse!") |
|||
end |
|||
end |
|||
</pre> |
Latest revision as of 22:38, 2 March 2025
Here's a link https://readonly.link/books/https://books.readonly.link/scalable-c/book.json/-/ch01.md
scalable c, by the author of zeromq. Makes me think about Antirez a bit, esp the part about using c over c++.
Some more project ideas
- a löve2d game to test kids on their mouse and keyboard skills
- an irc server written in lua using lua-ev for events
- an accompanying lua irc client
- a wiki that uses markdown
My first little love "game"
gdt = 0 gmousepressed = false function love.mousereleased() gmousepressed = false end function love.mousepressed(x, y, button, istouch) gmousepressed = true end function love.update(dt) gdt = dt -- love.graphics.print("Hello world! " .. dt, 400, 300) end function love.draw() love.graphics.print("Hello world! " .. gdt, 400, 300) if gmousepressed then love.graphics.print("Mouse!") end end