Visitante
Ingresar
Registrarse
Underc0de - Hacking y seguridad informática
Menu
Inicio
Website
Blog
Buscar
Calendario
Ingresar
Registrarse
Underc0de - Hacking y seguridad informática
»
Programación General
»
C / C++
»
Códigos Fuentes
Juego [C]
Imprimir
Páginas: [
1
]
Ir Abajo
« anterior
próximo »
Juego [C]
0 Respuestas
1885 Vistas
0 Usuarios y 1 Visitante están viendo este tema.
OSI
Underc0der
Mensajes: 7
Actividad:
0%
Reputación 0
Juego [C]
en: Junio 23, 2010, 10:30:10 am
Mirando manuales y practicando salio esto ;
Código: C
// Grets : p0fk - ksha - yoya - S[e]C - Antrax - champloo - OzX - [t]err0r - Cervantes_xD
#include <stdio.h>
#include <GL/glut.h>
#include <stdlib.h>
double
p0fk
=
0.5
;
double
ksha
=
0.5
;
void
trolear
(
)
{
glClear
(
GL_COLOR_BUFFER_BIT
)
;
glMatrixMode
(
GL_MODELVIEW
)
;
glPushMatrix
(
)
;
glColor3d
(
0
,
1
,
1
)
;
p0fk
+=
0.3
;
glTranslated
(
0.5
,
0.10
,
1
)
;
glRotated
(
p0fk
,
2
,
2
,
2
)
;
glutWireTeapot
(
0.30
)
;
glPopMatrix
(
)
;
glPushMatrix
(
)
;
glColor3d
(
0
,
0
,
2
)
;
ksha
+=
0.6
;
glTranslated
(
-
0.5
,
0.10
,
1
)
;
glRotated
(
ksha
,
4
,
4
,
4
)
;
glutWireCone
(
0.2
,
20
,
20
,
0.21
)
;
glPopMatrix
(
)
;
glutSwapBuffers
(
)
;
}
void
des
(
)
{
glutPostRedisplay
(
)
;
// repintar
}
void
salir
(
unsigned
char
teclado
)
{
if
(
teclado
==
27
)
{
exit
(
EXIT_SUCCESS
)
;
print
(
"<img src="
https
:
//underc0de.org/foro/Smileys/default/wink.gif" alt=";)" title="Guiñar" class="smiley" /> \n");
}
if
(
teclado
==
98
)
{
ksha
+=
0.7
;
glTranslated
(
-
0.5
,
0.10
,
1
)
;
glRotated
(
ksha
,
4
,
4
,
1
)
;
glutWireTorus
(
0.3
,
20
,
20
,
0.21
)
;
glPopMatrix
(
)
;
glutSwapBuffers
(
)
;
}
if
(
teclado
==
97
)
{
p0fk
+=
0.6
;
glTranslated
(
+
0.5
,
0.10
,
1
)
;
glRotated
(
p0fk
,
3
,
3
,
1
)
;
glutWireTeapot
(
0.20
)
;
glPopMatrix
(
)
;
glutSwapBuffers
(
)
;
}
}
int
main
(
int
argc
,
char
*
argv
[
]
)
{
glutInit
(
&
argc
,
argv
)
;
glutInitDisplayMode
(
GLUT_DOUBLE
|
GLUT_RGB
)
;
glutInitWindowSize
(
700
,
200
)
;
glutInitWindowPosition
(
500
,
500
)
;
glutCreateWindow
(
"KSHA Y P0FK SON PROTAGONISTAS DEL PROGRAMA"
)
;
glClearColor
(
0
,
0
,
0
,
0
)
;
glutDisplayFunc
(
trolear
)
;
glutIdleFunc
(
des
)
;
glutKeyboardFunc
(
salir
)
;
glutFullScreen
(
)
;
glutMainLoop
(
)
;
return
0
;
}
«
Última modificación: Febrero 08, 2014, 06:12:31 pm por Expermicid
»
En línea
Imprimir
Páginas: [
1
]
Ir Arriba
« anterior
próximo »
Similar topics (1)
Juego [C] V2
Iniciado por
OSI
Respuestas: 0
Vistas: 1918
Junio 25, 2010, 10:23:32 am
por
OSI
Sponsors
Zerpens
Kali-Linux
Club Hacker
ANTRAX-LABS
Ingresar
×
Bienvenido(a),
Visitante
. Por favor,
ingresa
o
regístrate
. ¿Perdiste tu
email de activación
?
1 Hora
1 Día
1 Semana
1 Mes
Siempre
Ingresar con nombre de usuario, contraseña y duración de la sesión