VortexDocs
  • Vortex Engine
    • Installation
      • 1. Install Python
      • 2. Install VortexEngine
      • 3. Install Additional Dependencies
    • Getting Started
      • 1. Initialize Vortex
      • 2. Create Game Objects
      • 3. Add Labels
      • 4. Add a First Person Controller
      • 5. Run the Game
    • API Reference
      • 1. Vortex Class
      • 2. Tool Module
      • 3. Data Module
    • Example
      • 1. Basic Example
      • 2. API Integration Example
    • Troubleshooting
      • 1. ModuleNotFoundError
        • 1. Verify Installation:
        • 2. Check Python Environment:
        • 3. Verify Import Statement:
      • 2. Color Not Recognized
        • 1. Check Color Input:
        • 2. Refer to color_dict:
        • 3. Update Color Usage:
        • 4. Verify Code:
    • Additional Resources
  • Vortex Breakout
Powered by GitBook
On this page
  1. Vortex Engine
  2. Getting Started

3. Add Labels

Adding text labels to your game can help display important information or messages. Here's how you can add a label:


# Add a text label
label = vortex.Label(text="Hello, Vortex!", position=(0, 2, 0))

This adds a label with the text "Hello, Vortex!" positioned at (0, 2, 0).

Previous2. Create Game ObjectsNext4. Add a First Person Controller

Last updated 9 months ago