Skip to the content.

Subject-Library

Useful Codes For GDScript

Static Badge GitHub License GitHub commit activity GitHub Release GitHub commits since latest release GitHub contributors GitHub Created At GitHub last commit GitHub Release Date GitHub code search count GitHub top language GitHub branch check runs GitHub Downloads (all assets, all releases) GitHub Sponsors GitHub Issues or Pull Requests GitHub Issues or Pull Requests GitHub Issues or Pull Requests GitHub Issues or Pull Requests Website GitHub Discussions GitHub code size in bytes GitHub repo size GitHub forks GitHub Repo stars GitHub watchers

The fastest answer to the question “What is SLib?”

SLib is a versatile library whose functions are used in any project, SLib improves code quality several times, increases its readability, prevents errors, and thus makes your project better and faster than before! The following code is just one of the things that SLib does:

With SLib:

# This one line of code creates a backup of the player's data file with an optional
# extension next to it, it has the ability to check all types of errors and manage them,
# prevent syntax errors, repeating lines and code length.
SLib.backup_file("user://main_data.json", TYPE_DICT)

Without SLib:

# These 10 lines of code do the same thing as one line above, with the difference that
# the file extension and path must be specified in several places each time. 
# and creates variables that are no longer usable!
var file_access := FileAccess.open("user://main_data.json", FileAccess.READ)
var json_string := file_access.get_line()
file_access.close()
var json := JSON.new()
json.parse(json_string)
var data = json.data
var backup_json_string := JSON.stringify(data)
var backup_file_access := FileAccess.open("user://main_data.json".get_basename() + "-Backup." +"user://main_data.json".get_extension(), FileAccess.WRITE)
backup_file_access.store_var(backup_json_string)
backup_file_access.close()

Overview

SLib is a Godot library designed to simplify and enhance your development experience. It provides a set of ready-to-use, standard codes that eliminate the need to write repetitive and lengthy scripts. SLib is lightweight, easy to install, and helps make your code more readable and maintainable.

Fast Getting Started & Defalut Getting Started

Click on the desired topic:

Fast Getting Started

Let’s Install!

Why use?

How does SLib help you?

Key Features

Why is SLib a powerful and useful library?

Versions

Browse available versions

Change Logs

View the project development process

Supported Versions

In which version of Godot can I use SLib?

How To Install

Install SLib on your project

Automation

Convert simple texts into complex codes

How To Use

Upgrade your code with SLib

Detailed capabilities

Learn the details of SLib’s capabilities

Bug fix guid

How to correct errors?

Community and Support

Join the SLib community and get help from each other

Documentation

Documentation and user guide

Contribute

This is an open source project, we grow together!

Thanks

Project participation process and contributors