Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uralys/fox
🦊 Tooling for Godot 4
https://github.com/uralys/fox
android cli components gdscript godot4 ios toolkit
Last synced: about 2 months ago
JSON representation
🦊 Tooling for Godot 4
- Host: GitHub
- URL: https://github.com/uralys/fox
- Owner: uralys
- License: mit
- Created: 2021-06-29T13:46:54.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T19:48:07.000Z (10 months ago)
- Last Synced: 2024-04-03T20:49:32.320Z (10 months ago)
- Topics: android, cli, components, gdscript, godot4, ios, toolkit
- Language: GDScript
- Homepage: https://www.uralys.com
- Size: 12.3 MB
- Stars: 160
- Watchers: 2
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: license
Awesome Lists containing this project
README
# Fox
[![License](https://img.shields.io/badge/License-MIT-green.svg?colorB=3cc712)](license) [![version](https://img.shields.io/github/package-json/v/uralys/fox)](https://github.com/uralys/fox/tags)
🦊 Fox provides tooling while developing with Godot Engine.
## Scenes and scripts
With Fox, you can use `Scenes`, `Resources`, scripts and static functions to build your app.
As an example, this code will move 3 nodes to the same position, with a delay of 1 second between each animation. Finally it fill print 'DONE' in the console.
```gdscript
Animate.to([potion, car, book], {
propertyPath = "position",
toValue = Vector2(0, 0),
delayBetweenElements = 1,
onFinished = func():
G.log('DONE');
})
```This other one sends a body to a REST API, handles and logs the result while showing a loader:
```gd
Router.showLoader()HTTP.Post(self, {
endpoint = "/score",
body = {playerId = "FieryFox", score = 100},
onError = func(_result, _response_code, _headers, _body):
handleScoreFailure()
Router.hideLoader()
,
onComplete = func(_result, _response_code, _headers, body):
var _body = body.get_string_from_utf8()
var newRecord = __.GetOr(false, 'newRecord', _body)
G.debug(
'✅ [b][color=green]successfully posted score[/color][/b]',
{newRecord = newRecord}
)
Router.hideLoader()
})
```## Documentation
Few documentation links (find more in the [docs](./docs)):
- [Installing](./docs/install.md) Fox to use in your Godot app
Coding:
- Using the [Router](./docs/gdscript/router.md)
- Using [Animation](./docs/gdscript/animations.md) Tween helpers
- Using `Touchable` and `Draggable` Nodes with an [interactiveArea2D](./docs/gdscript/interactive-area-2d.md) behaviour on any Node
- Using [Popups](./docs/gdscript/popups.md)
- Using [DraggableCamera](./docs/gdscript/draggable-camera.md)
- Using [Sound](./docs/gdscript/sound.md)
- static functions inspired by [Underscore](/fox/libs/underscore.gd)Exporting:
- [Installing the CLI](./docs/cli.md)
- Info about [Android](./docs/exporting/android.md) settings and building
- Info about [iOS](./docs/exporting/ios.md) settings and building## Games created with Fox