From 0935589394116931336ce1e879538c3df3a356ac Mon Sep 17 00:00:00 2001 From: Frank Force Date: Wed, 31 Jul 2024 16:17:13 -0500 Subject: [PATCH] Update reference.md --- reference.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/reference.md b/reference.md index c852cac7..2be97dce 100644 --- a/reference.md +++ b/reference.md @@ -1,14 +1,17 @@ # LittleJS Engine Quick Reference Sheet -## This simple reference sheet contains all LittleJS engine essentials. -- [LittleJS Engine on GitHub](https://github.com/KilledByAPixel/LittleJS) - Official LittleJS website with more info +## This simple reference sheet contains all LittleJS essentials. +- [LittleJS on GitHub](https://github.com/KilledByAPixel/LittleJS) - Official LittleJS website with more info - [LittleJS Documentation](https://killedbyapixel.github.io/LittleJS/docs) - LittleJS documentation browser - [Particle Deigner](https://killedbyapixel.github.io/LittleJS/examples/particles) - Editor for LittleJS Particle Systems - [Sound Effect Designer](https://killedbyapixel.github.io/ZzFX) - Tool for creating ZzFX sound effects - [Starter Project](https://killedbyapixel.github.io/LittleJS/examples/starter) - Simple LittleJS demo to start with -```javascript +## LittleJS Setup + +To start LittleJS, you need to create a few functions and pass them to engineInit. +```javascript // Start up LittleJS engine with your callback functions engineInit(init, update, updatePost, render, renderPost, imageSources=['tiles.png']) @@ -17,7 +20,6 @@ engineObjectsDestroy() // Trigger a callback for each object within a given area engineObjectsCallback(pos, size, callbackFunction, objects=engineObjects) - ``` ## LittleJS Utilities Classes and Functions