Skip to content

OGStudio/tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EN | RU

This document is part of OGStudio education program.

The tutorials describe how to create (and share) simple game with ogs in a matter of few hours.

Tools

Our main tool is ogse (http://ogstudio.github.io/ogse), a minimalistic on-line editor:

screen-editor

On the left side:

  • button to execute the code
  • code editor

On the right side:

  • render window to depict code execution result
  • debug console to output valuable information

ogse is powered by ogs, a tool to create cross-platform 3D games. ogs uses Lua language for scripting.

Note: your web browser should have WebGL support to be able to run code samples.

Tutorials

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

Tutorial Description Estimated completion time Introduced API
01. Background color Set background color 5 minutes
  1. main
  2. main.application
  3. main.application.camera
  4. main.application.camera.clearColor
    02. Mouse Set background color on mouse button press 5 minutes
    1. main.application.mouse
    2. main.application.mouse.pressedButtons
    3. main.application.mouse.pressedButtonsChanged
    4. core
    5. core.Reporter
    6. core.Reporter:addCallback()
    03. Spheres Display spheres 10 minutes
    1. main.application.nodes
    2. main.application.nodes:createSphere()
    3. main.application.nodes:node()
    4. scene
    5. scene.Node:addChild()
    6. scene.Node.position
    7. main.application.camera.position
    8. main.application.camera.rotation
    04. Node selection Select spheres 10 minutes
    1. scene.Node:setMask()
    2. main.application.camera:nodeAtPosition()
    3. scene.Node.__name
    05. Material Display colored sphere 10 minutes
    1. main.application.materials
    2. main.application.materials:createMaterial()
    3. render.Material:setShaders()
    4. render.Material:setUniform()
    5. scene.Node:setMaterial()

    About

    The first tutorial about Lua based editor

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published