Game ideas & features

Your next feature

News

Show published news in your game.

Godot
Illustration of News
Your visible result

A published test news item is visible in the game.

Publish a news post2:18
Open video separately ↗

Prepare the same project

  1. Choose the same project in the dashboard as in your game configuration.

    News →
  2. Create or reuse these test entries in the dashboard form. These are example values, not current project data.

    Title
    en: Quickstart news
    Message
    en: Hello from horizOn
    Publication status
    published
    Release date and time
    2026-01-01T00:00:00Z
  3. Save, reload and verify the entries before running the example. Preserve unrelated definitions.

Build this feature

You can preview the guide. Running it requires an active project key. Prepare project

SDK installed and project configuration imported.

Save the GDScript, attach it to a node in the main scene and run it. Check Output.

GDScript
res://scripts/news.gd
horizOn callSetup
1# Attach this script to a node in your main scene.
2extends Node
3​
4​
5func _ready() -> void:
6 # Setup: initialize and connect.
7 var connected = await Horizon.connect_to_server()
8 if not connected:
9 print("Failed to connect to horizOn server")
10 return
11​
12 # horizOn: load the latest news.
13 # Load the latest news, filtered by language
14 var articles = await Horizon.news.loadNews(10, "en")
15 for article in articles:
16 print("%s: %s" % [article.title, article.message])
Open the complete SDK sample ↗

Test your new feature.

A published test news item is visible in the game.

Choose the same project in the dashboard as in your game configuration.

Endpoints
  • GET/news
All endpoints in the API reference
Our suggestion for your next step

Give every round a high score.

Save the score after a round and show who's ahead. Keep using your connection and player session.