Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Bare minimum to turn on/off a light in the game
jorgeas80 Offline
Junior Member

Posts: 21
Threads: 7
Joined: Jan 2014
Reputation: 0
#2
RE: Bare minimum to turn on/off a light in the game

Update: found Light class and children (Light2D, Light3D, Light3DSpot, Light3DPoint) in HPL1Engine code. Looks more promising.

Anyway, I'd like to know how many kinds of light exist in the game, to know if I should turn on my lamp with all of them, and how to turn it on. Examples:
  • A gun shot: quick white light
  • User turns on lantern: permanent white light (until the user turns it off)
  • User turns on glowstick: same logic, but with green light
  • User get close to a light (a torch, a lampost...): permanent light with an intensity (about the color, it depends on the kind of light. Example: a fire is red, a lamppost is white)
  • User get closer to that light: increase intensity on my lamp's light

Is there any place where I can find a list of all the lights in the game? And about the idea of include my code inside the Light class and/or its children: is it right?
(This post was last modified: 02-13-2014, 08:38 PM by jorgeas80.)
02-13-2014, 08:37 PM
Website Find


Messages In This Thread
RE: Bare minimum to turn on/off a light in the game - by jorgeas80 - 02-13-2014, 08:37 PM



Users browsing this thread: 1 Guest(s)