https://github.com/ynot01/ntp-godot-go
Godot 4 - simple NTP extension
https://github.com/ynot01/ntp-godot-go
addon gdextension go godot godot4 ntp time
Last synced: 2 months ago
JSON representation
Godot 4 - simple NTP extension
- Host: GitHub
- URL: https://github.com/ynot01/ntp-godot-go
- Owner: ynot01
- License: apache-2.0
- Created: 2025-02-25T06:32:15.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-23T12:43:07.000Z (3 months ago)
- Last Synced: 2025-03-23T13:34:09.482Z (3 months ago)
- Topics: addon, gdextension, go, godot, godot4, ntp, time
- Language: Shell
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/ynot01/ntp-godot-go/actions/workflows/go.yml)
[](https://github.com/ynot01/ntp-godot-go/actions/workflows/release.yml)# NTP in Godot
A small GDExtension (4.3+) for interfacing with NTP servers
## Installation
1. [Download latest release](https://github.com/ynot01/ntp-godot-go/releases/latest/download/addons.zip)
2. Extract the addons folder to your Godot project's root folder| Support | AMD64 | ARM64 | x86 (32-bit) |
| :---: | :---: | :---: | :---: |
| Windows | ✅ | ✅ | ❌ |
| Linux | ✅ | ✅ | ❌ |
| MacOS | ❌ | ❌ | ❌ |## Usage
`NTP.now()` will return the current UTC time in milliseconds as reported by the NTP server
## Building
Run `./Build.ps1` or `./Build.sh`
Dependencies will be downloaded automatically
Copy the resultant `./addons/` folder to your Godot project
## Testing
Install [gd](https://github.com/grow-graphics/gd) via `go install graphics.gd/cmd/gd@master`
Run `gd build` then `gd test`
The project in `./graphics/` will be used to test the extension
## Technologies
- [Go](https://go.dev/dl)
- [beevik/ntp](https://github.com/beevik/ntp)
- [Godot](https://godotengine.org/download)
- [grow-graphics/gd](https://github.com/grow-graphics/gd)