nngn
Loading...
Searching...
No Matches
light.lua File Reference

Variables

local camera = require "nngn.lib.camera"
 
local entity = require "nngn.lib.entity"
 
local map = require "nngn.lib.map"
 
local player = require "nngn.lib.player"
 
local texture = require "nngn.lib.texture"
 
local state
 
local entities = {}
 
 name = "light"
 
 file = "maps/light.lua"
 
 init = init
 
 heartbeat = heartbeat
 
 on_collision = function(e0, e1)
 
 reset = function()
 
local l = nngn:lighting():sun_light()
 
 tiles = {texture.NNGN, 512, 0, 0, 1024, 1024, 1, 1, {0, 0}}
 

Variable Documentation

◆ camera

local camera = require "nngn.lib.camera"

◆ entities

entities = {}

◆ entity

local entity = require "nngn.lib.entity"

◆ file

file = "maps/light.lua"

◆ heartbeat

heartbeat = heartbeat

◆ init

init = init

◆ l

local function d l = nngn:lighting():sun_light()

◆ map

local map = require "nngn.lib.map"

◆ name

name = "light"

◆ on_collision

on_collision = function(e0, e1)

◆ player

local player = require "nngn.lib.player"

◆ reset

reset = function()

◆ state

state
Initial value:
= {;
perspective = true, ambient_light = true, shadows_enabled = true}

◆ texture

local texture = require "nngn.lib.texture"

◆ tiles

tiles = {texture.NNGN, 512, 0, 0, 1024, 1024, 1, 1, {0, 0}}