• Stars
    star
    273
  • Rank 137,875 (Top 3 %)
  • Language
    Lua
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A browser-based debug console for LÖVE

lovebird

A browser-based debug console for the LÖVE framework.

screenshot from 2014-06-28 14 52 34

Usage

Drop the lovebird.lua file into an existing project and place the following line at the top of your love.update() function:

require("lovebird").update()

The console can then be accessed by opening the following URL in a web browser:

http://127.0.0.1:8000

If you want to access lovebird from another computer then 127.0.0.1 should be replaced with the IP address of the computer which LÖVE is running on; the IP address of the other computer should be added to the lovebird.whitelist table.

Additional Functionality

To make use of additional functionality, the module can be assigned to a variable when it is required:

lovebird = require "lovebird"

Any configuration variables should be set before lovebird.update() is called.

lovebird.port

The port which lovebird listens for connections on. By default this is 8000

lovebird.whitelist

A table of hosts which lovebird will accept connections from. Any connection made from a host which is not on the whitelist is logged and closed immediately. If lovebird.whitelist is set to nil then all connections are accepted. The default is { "127.0.0.1" }. To allow all computers on the local network access to lovebird, "192.168.*.*" can be added to this table.

lovebird.wrapprint

Whether lovebird should wrap the print() function or not. If this is true then all the calls to print will also be output to lovebird's console. This is true by default.

lovebird.echoinput

Whether lovebird should display inputted commands in the console's output buffer; true by default.

lovebird.maxlines

The maximum number of lines lovebird should store in its console's output buffer. By default this is 200.

lovebird.updateinterval

The interval in seconds that the page's information is updated; this is 0.5 by default.

lovebird.allowhtml

Whether prints should allow HTML. If this is true then any HTML which is printed will be rendered as HTML; if it false then all HTML is rendered as text. This is false by default.

lovebird.print(...)

Prints its arguments to lovebird's console. If lovebird.wrapprint is set to true this function is automatically called when print() is called.

lovebird.clear()

Clears the contents of the console, returning it to an empty state.

More Repositories

1

lite

A lightweight text editor written in Lua
Lua
7,194
star
2

microui

A tiny immediate-mode UI library
C
2,906
star
3

log.c

A simple logging library implemented in C99
C
2,250
star
4

json.lua

A lightweight JSON library for Lua
Lua
1,639
star
5

dyad

Asynchronous networking for C
C
1,425
star
6

fe

A tiny, embeddable language implemented in ANSI C
C
1,234
star
7

lume

Lua functions geared towards gamedev
Lua
869
star
8

classic

Tiny class module for Lua
Lua
748
star
9

lovedos

A framework for making 2D DOS games in Lua
C
649
star
10

map

A type-safe hash map implementation for C
C
540
star
11

vec

A type-safe dynamic array implementation for C
C
418
star
12

microtar

A lightweight tar library written in ANSI C
C
388
star
13

lite-plugins

Plugins for the lite text editor
Lua
338
star
14

flux

A fast, lightweight tweening library for Lua
Lua
336
star
15

ini

A tiny ANSI C library for loading .ini config files
C
297
star
16

log.lua

A tiny logging module for Lua
Lua
280
star
17

lurker

Auto-swaps changed Lua files in a running LÖVE project
Lua
252
star
18

aq

A lightweight framework for creating audio toys
C
235
star
19

kit

A tiny library for making small games with big pixels
C
213
star
20

uuid4

A tiny C library for generating uuid4 strings
C
197
star
21

sandbird

A tiny embeddable HTTP server written in C89
C
161
star
22

sfd

A small C library for opening a file dialog
C
160
star
23

juno

Framework for making 2D games with chunky pixels in Lua
C
159
star
24

cmixer

Portable ANSI C audio mixer for games
C
158
star
25

aria

A tiny, embeddable lisp-shaped language implemented in C89
C
157
star
26

tick

Lua module for delaying function calls
Lua
108
star
27

autobatch

Small LÖVE module to automate the use of SpriteBatches
Lua
103
star
28

dmt

Dynamic memory tracker for C
C
97
star
29

lite-colors

Colors themes for the lite text editor
Lua
95
star
30

cembed

A small utility for embedding files in a C header
C
87
star
31

doq

A small tool for creating single-file html documents
C
77
star
32

lovebpm

A LÖVE library for syncing events to the BPM of an audio track
Lua
73
star
33

coil

A tiny cooperative threading module for Lua
Lua
69
star
34

shash

A simple, lightweight spatial hash for Lua
Lua
60
star
35

console

A console plugin for the lite text editor
Lua
57
star
36

atlas

A small utility for generating a texture atlas
C
39
star
37

rxi.github.io

HTML
17
star
38

gifwriter

A Nim library for writing animated GIFs
C
17
star
39

cmixer_sdl2-nim

Tiny Nim library for using cmixer with sdl2
Nim
3
star
40

cmixer-nim

Nim wrapper for cmixer, A lightweight audio mixer for games
C
3
star
41

crate

2
star