From 04528ef56ce8cb2aafc4f962246b74985c9b0b4f Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Fri, 23 Jun 2017 11:05:15 -0400 Subject: [PATCH] Changed some things Updated parts of the readme examples to reflect the changes in the code --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6d4a698..cc9a077 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ View Changes: https://github.com/rayaman/multi#changes Usage:
```lua ---Basic usage +--Basic usage Alarms: Have been moved to the core of the library require("multi") would work as well require("multi.all") -- gets the entire library alarm=multi:newAlarm(3) -- in seconds can go to .001 uses the built in os.clock() alarm:OnRing(function(a) @@ -61,7 +61,7 @@ Throughout these examples I am going to do some strange things in order to show # LOOPS ```lua --- Loops +-- Loops: Have been moved to the core of the library require("multi") would work as well require("multi.all") -- gets the entire library count=0 loop=multi:newLoop(function(self,dt) -- dt is delta time and self is a reference to itself @@ -305,6 +305,7 @@ Note: This will make more sense when you run it for your self
# UPDATER ```lua +-- Updaters: Have been moved to the core of the library require("multi") would work as well require("multi.all") updater=multi:newUpdater(5) -- really simple, think of a look with the skip feature of a step updater:OnUpdate(function(self)