Author Topic: Ufo controls  (Read 1883 times)

0 Members and 1 Guest are viewing this topic.

Frankolinox

  • Guest
Ufo controls
« on: March 04, 2014, 03:53:59 AM »
lalala :)
« Last Edit: October 01, 2014, 08:39:47 AM by Frankolinox »

Charles Pegge

  • Guest
Re: Ufo controls
« Reply #1 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.

Charles Pegge

  • Guest
Re: Ufo controls
« Reply #2 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
  '