Yurci
Member
|
Newbie Question
Hey.
I put in WE ocean, but how to draw it " in code" ?
The quieter you become, the more you are able to hear.
|
|
01-26-2010 11:48 PM |
|
Chris
Member
|
RE: Newbie Question
In InitGame:
Code:
Water.images(Images("water/0.gfx"),Images("water/0.n.gfx"),Images("water/reflection.gfx"));
Water.draw=true;
Water.wave_scale=1.8;
in Update:
Code:
Water.update(Vec2(0.01));
|
|
01-27-2010 12:38 AM |
|
Yurci
Member
|
RE: Newbie Question
Okey, i try this, and i stop at the level of water - to hight. In Water.h aren't any parameter level or something.
The quieter you become, the more you are able to hear.
(This post was last modified: 01-27-2010 02:24 PM by Yurci.)
|
|
01-27-2010 02:16 PM |
|
Harry
Member
|
RE: Newbie Question
Use Water.plane.
In Rendering/Water tutorial:
Code:
// here you can optionally set different water surface plane
if(Kb.b(KB_UP ))Water.plane+=Vec(0,1,0)*Tm.d(); // move water surface plane upwards
if(Kb.b(KB_DOWN))Water.plane-=Vec(0,1,0)*Tm.d(); // move water surface plane downwards
(This post was last modified: 01-27-2010 03:13 PM by Harry.)
|
|
01-27-2010 03:12 PM |
|