NetPad
  • General
    • Introduction
    • Technical Overview
  • Manual
    • Terminology
      • Server (Game), Client (Controller)
      • Controller - Input, Proxy
      • Constants
      • Webserver
    • Components
      • NetPadServer
      • NetPadClient
      • NetPadBehaviour
      • Input
        • NetPadJoystick
        • NetPadGyroscope
        • NetPadDPad
          • DPadButton
        • NetPadAccelerometer
        • NetPadTouch
        • NetPadCamera
        • NetPadButton
      • LayoutListener
      • NetPadDiscoveryServer
      • NetPadDiscoveryClient
    • Other
      • Attributes
      • Build Pipeline
      • NetPad Settings
      • NetPad Constants
    • Tutorials
      • Getting Started
        • Project Setup
        • Game Setup
          • Preperation
          • Ball
          • Ball Spawner
          • Scene Setup
        • Controller Setup
          • Background - Player Properties
          • Scene Setup
        • Build
Powered by GitBook
On this page
  1. Manual
  2. Tutorials
  3. Getting Started
  4. Game Setup

Preperation

PreviousGame SetupNextBall

Last updated 2 years ago

Some initial preparation is required.

  • To create a NetPadConstantGenerator, navigate to the "Common/Scripts" folder, right-click and then select "Create/NetPad/NetPadConstantGenerator."

  • Set the 'Namespace' field to "RollABall.Common".

  • Add a new property by entering the name "playerColor" and selecting the 'Color' type from the dropdown menu.

  • Click the 'Generate' button to initiate the code generation process, which will create a constant and extension methods for enhanced usability with player properties.