Skip to content

AstricUnion/Libs

Repository files navigation

Our libs

There is some libs:

  • astrobase.lua - base for all bots, can make main bot mechanic in few lines
  • ftimers.lua - timers with fractions, very useful for animations (thanks to hamache: https://github.com/ham-ache/l2d-timerlib)
  • guns.lua - guns, projectiles for bots
  • holos.lua - very easy hologram creator
  • light.lua - Server-side light.create
  • sounds.lua - Server-side preload and play sounds within bass.loadUrl (REQUIRES NOBLOCK SOUNDS)
  • tweens.lua - Tweens for animations (like in Godot, Unity, etc)
  • ui.lua - UI library for Astro HUD, but you may find something interesting in it

Include it in your bot or other chip:

--@include https://raw.githubusercontent.com/AstricUnion/Libs/refs/heads/main/astrobase.lua as astrobase
require("astrobase")


--@include https://raw.githubusercontent.com/AstricUnion/Libs/refs/heads/main/ftimers.lua as ftimers
---@class FTimer
local FTimer = require("ftimers")


--@include https://raw.githubusercontent.com/AstricUnion/Libs/refs/heads/main/guns.lua as guns
require("guns")


--@include https://raw.githubusercontent.com/AstricUnion/Libs/refs/heads/main/hitbox.lua as hitbox
require("hitbox")


--@include https://raw.githubusercontent.com/AstricUnion/Libs/refs/heads/main/holos.lua as holos
local holos = require("holos")
---@class Holo
local Holo = holos.Holo
local Rig = holos.Rig
local SubHolo = holos.SubHolo
---@class Trail
local Trail = holos.Trail
---@class Clip
local Clip = holos.Clip


--@include https://raw.githubusercontent.com/AstricUnion/Libs/refs/heads/main/light.lua as light
require("light")


--@include https://raw.githubusercontent.com/AstricUnion/Libs/refs/heads/main/sounds.lua as sounds
require("sounds")


--@include https://raw.githubusercontent.com/AstricUnion/Libs/refs/heads/main/tweens.lua as tweens
require("tweens")


--@include https://raw.githubusercontent.com/AstricUnion/Libs/refs/heads/main/ui.lua as ui
require("ui")

TODO

  • Merge movement and astrobase in one lib
  • Make guns Blaster and BlasterProjectile a inheritance class
  • Make more UI elements
  • Make 3D UI
  • Refactor FTimers
  • Refactor AstroBase
  • Normal documentation
  • Normal examples

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages