An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

[![Build & Test](https://github.com/ynot01/ntp-godot-go/actions/workflows/go.yml/badge.svg)](https://github.com/ynot01/ntp-godot-go/actions/workflows/go.yml)
[![Release](https://github.com/ynot01/ntp-godot-go/actions/workflows/release.yml/badge.svg)](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)