Godot Nature of Code  1.2.0
Nature of Code implemented in Godot Engine
Public Member Functions | Protected Attributes | List of all members
Examples.Chapter3.C3Exercise5 Class Reference

Exercise 3.5 - Asteroids. More...

Inheritance diagram for Examples.Chapter3.C3Exercise5:
Examples.IExample Examples.Chapter4.C4Exercise4

Public Member Functions

string GetSummary ()
 Output a summary text More...
 

Protected Attributes

VirtualControls controls
 Virtual controls More...
 
Spaceship spaceship
 Spaceship More...
 

Detailed Description

Exercise 3.5 - Asteroids.

Drive spaceship using arrow keys or VirtualControls.

Definition at line 11 of file C3Exercise5.cs.

Member Function Documentation

◆ GetSummary()

string Examples.Chapter3.C3Exercise5.GetSummary ( )
inline

Output a summary text

Returns
Summary text

Implements Examples.IExample.

Definition at line 13 of file C3Exercise5.cs.

14  {
15  return "Exercise 3.5:\n"
16  + "Asteroids\n\n"
17  + "On desktop, use left and right arrow keys to turn, then up arrow key to thrust.\n"
18  + "On mobile, you can use the virtual controls.";
19  }

Member Data Documentation

◆ controls

VirtualControls Examples.Chapter3.C3Exercise5.controls
protected

Virtual controls

Definition at line 69 of file C3Exercise5.cs.

◆ spaceship

Spaceship Examples.Chapter3.C3Exercise5.spaceship
protected

Spaceship

Definition at line 72 of file C3Exercise5.cs.


The documentation for this class was generated from the following file: