Skip to content

Just some burds, jumpin' around in their own little world.

License

Notifications You must be signed in to change notification settings

thesephist/burds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

burds! 🐦

burds! is a weekend hack inspired by this fabulous tweet. It's a little web experiment with tiny animated birds jumping around their tiny little world. If you like this project, you may also like Tiny Humans.

burds! is written entirely in Oak, my toy programming language that conveniently compiles to JavaScript. Everything except the title text is rendered using 2D Canvas APIs.

Screenshot of burds

Development

burds! is a static, single-page app. It lives in index.html. Development is done using the oak CLI, which you can get from oaklang.org.

To autoformat the source file:

oak fmt app.js.oak --fix

To recompile the JavaScript bundle from Oak sources:

oak build --entry app.js.oak -o bundle.js --web

Usually it's convenient to automatically do this on every save of app.js.oak (with entr):

ls *.oak | entr -cr oak build --entry app.js.oak -o bundle.js --web

Note: As of the first release of this repository, the latest versioned Oak release is missing some standard library APIs (math.{sqrt, hypot, scale, bearing, orient}), so for now, you may have to build Oak from source (which is in Go) to make changes to this project. Brave souls can look more into that in the Oak repository.