Blog: 2025-03-02

From razwiki
Jump to navigation Jump to search

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