Oxygen Basic

Programming => Problems & Solutions => Topic started by: Frankolinox on March 04, 2014, 03:53:59 AM

Title: Ufo controls
Post by: Frankolinox on March 04, 2014, 03:53:59 AM
lalala :)
Title: Re: Ufo controls
Post by: Charles Pegge on March 04, 2014, 10:06:35 AM
Hi Frank,

I've made many changes and additions to the inc files - (Dialogs has been renamed ControlPanels), so you will need the full download to get the source code. Just click on the wizard above.

The end result, I hope, will be much simpler scene-building, and a wider range of ready-made items.
Title: Re: Ufo controls
Post by: Charles Pegge on March 07, 2014, 10:29:53 AM

Hi Frank,

If you want to use the space-bar to fire the LASER, use key[32].

Float colors go from 0.0 to 1.0, so this one is a green translucent laser, (firing along the z axis)

Code: [Select]
if key[32]
  glLineWidth 4.0
  glBegin GL_LINES
  glColor4f 0.0 ,1.0, 0.0, 0.50
  glVertex3f 0.0, 0.0,  0.0
  glVertex3f  0.0, 0.0, -8.0
  glEnd
end if
  '