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
// Ejemplo de Div GO: Games Online // Php + Html5 + Canvas + Javascript // by J. Manuel Habas program ejemplo_touch; global touch1 = ''; touch2 = ''; touch3 = ''; touch4 = ''; drw1, drw2, drw3, drw4; begin set_title("Div GO: Ejemplo Touch"); set_mode(640, 400); set_fps(60, 0); text_size = 50; write_int(0, 0, 0, 0, &touch[0].is_active); write_int(0, 0, 20, 0, &touch[1].is_active); write_int(0, 0, 40, 0, &touch[2].is_active); write_int(0, 0, 60, 0, &touch[3].is_active); write_int(0, 40, 0, 0, &touch1); write_int(0, 40, 20, 0, &touch2); write_int(0, 40, 40, 0, &touch3); write_int(0, 40, 60, 0, &touch4); stroke_size = 5; drw1 = draw(4, 0, 0, 0, 0, 0, 0, 0); drw2 = draw(4, 0, 0, 0, 0, 0, 0, 0); drw3 = draw(4, 0, 0, 0, 0, 0, 0, 0); drw4 = draw(4, 0, 0, 0, 0, 0, 0, 0); loop touch1 = 't: ' + touch[0].timer + ' | x: ' + touch[0].x + ' | y: ' + touch[0].y; touch2 = 't: ' + touch[1].timer + ' | x: ' + touch[1].x + ' | y: ' + touch[1].y; touch3 = 't: ' + touch[2].timer + ' | x: ' + touch[2].x + ' | y: ' + touch[2].y; touch4 = 't: ' + touch[3].timer + ' | x: ' + touch[3].x + ' | y: ' + touch[3].y; if (touch[0].is_active) move_draw(drw1, rgb(255, 0, 0), 15, touch[0].x - 20, touch[0].y - 20, 40, 40); else move_draw(drw1, 0, 0, 0, 0, 0, 0); end if (touch[1].is_active) move_draw(drw2, rgb(255, 255, 0), 15, touch[1].x - 20, touch[1].y - 20, 40, 40); else move_draw(drw2, 0, 0, 0, 0, 0, 0); end if (touch[2].is_active) move_draw(drw3, rgb(0, 255, 0), 15, touch[2].x - 20, touch[2].y - 20, 40, 40); else move_draw(drw3, 0, 0, 0, 0, 0, 0); end if (touch[3].is_active) move_draw(drw4, rgb(0, 0, 255), 15, touch[3].x - 20, touch[3].y - 20, 40, 40); else move_draw(drw4, 0, 0, 0, 0, 0, 0); end frame; end end
+
Tamaño Código:
Compilar Código
Compilando...