Skip to content

OGStudio-Education/1-introduction-egorv2

Repository files navigation

EN | RU

1. Introduction

This document is part of OGStudio education program. The document is designed to be used as an assignment for you to complete. See OGStudio education program for details.

This is an introductory course to game development with ogstudio.

Lessons

Note: the course is in development, so the list of lessons is not yet final.

Lesson Description Estimated completion time
1.1. Distribute Distribute web version of the simplest ogstudio game with GitHub Pages 5 minutes
1.2. Screen color Set screen color with Lua script 15 minutes
1.3. Local development Change screen color locally, without GitHub Pages 10 minutes
1.4. Mouse Toggle screen color on mouse clicks (finger taps) 10 minutes

API

Lessons use the following API:

  • main namespace hosts application instance
  • main.application instance hosts subsystems like camera
  • main.application.camera instance is a viewport into application's scene
  • main.application.camera.clearColor property is a clearing color (effectively background color) of the camera
    • accepts array of color components in RGB format
      main.application.camera.clearColor = {1, 0, 0}
    • returns array of color components in RGB format
      local color = main.application.camera.clearColor
      print("background color:", color[1], color[2], color[3])

About

1-introduction-egorv2 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages