documentación
novedades
guía de usuario
listado de funciones
variables y constantes
componentes web
licencia
comunidad
juegos desarrollados
foro de discusión
seguir en facebook
seguir en twitter
ejemplos
primitivas y textos:
draw
write
interacción procesos:
signal
colision
advance
planos:
scroll
mode7
scene3d
reproducción audio / video:
sonidos
video
modplay
efectos:
proceso
región
scroll
juegos:
Super Paf!
Plataformas
Dr. Malvado
Pacoman
Steroid
Pitfall
Exploss
Zelda
Sokoban
Fostiator
Oh Mummy!!
Sonic SMS
Galax
Puzzle
Bricks Breaker
Helio Ball
tutoriales:
0
1
2
3
4
5
6
7
menú
documentación:
novedades
guía de usuario
listado de funciones
variables y constantes
licencia
comunidad:
juegos desarrollados
foro de discusión
seguir en facebook
seguir en twitter
ejemplos:
write
scroll
scene3d
colision
modplay
región
Super Paf!
Dr. Malvado
Pitfall
Sokoban
tutoriales:
0
1
2
3
4
5
descargas
HTML5 Game engine
Entorno de desarrollo de juegos online en HTML5
Haz clic para obtener el control del teclado
Programar a tamaño normal
Programar a tamaño completo
Recuperar PRG
Abrir archivo PRG
Guardar PRG
Buscar
Reemplazar
// Div GO : Games Online > Example // Php + Html5 + Canvas + Javascript + Three.js lib // by J. Manuel Habas program example_texture_in_object3d; global tex, obj; begin tex = load_fpg("graficos/texturas"); set_mode(480, 300); set_fps(60, 0); text_color = #ccc; text_size = 50; write(0, 5, 10, 3, "CURSORS: to rotate the camera"); write(0, 5, 25, 3, "ENTER: generates object with new texture"); write(0, 5, 40, 3, "ESC: remove the texture to the object"); //initialized scene3D without this the functions object3d() and light3D() do not work start_scene3d(0, 0, 0, 0); //number, file, graph, region scene3d.camera = id; scene3d.visible = false; y = 200; angle_y = -10000; ctype = c_scene3d; //type, wireframe, color, alpha, border, x, y, z obj = object3d(1, 1, cc_white, 100, 6, 0, 50, 0); //id, file, graph texture_in_object3d(obj, tex, 4); loop if (key(_left)) angle -= 1000; end if (key(_right)) angle += 1000; end if (key(_enter)) delete_object3d(obj); obj = object3d(rand(1, 4), 1, rgb(rand(20, 255), rand(20, 255), rand(20, 255)), 100, 6, 0, 50, 0); texture_in_object3d(obj, tex, rand(1, 5)); end if (key(_esc)) clear_texture(obj); end frame; end end
+
Tamaño Código:
Compilar Código
Compilando...