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
PROGRAM example_map_get_pixel; PRIVATE file1; figure[3]; BEGIN set_mode(m320x200); file1=load_fpg("graficos/help"); put_screen(file1, 7); mouse.file=file1; mouse.graph=200; text_size = 50; write(0, 0, 0, 0, "FIGURE RGB:"); write(0, 0, 12, 0, "FIGURE R:"); write(0, 0, 24, 0, "FIGURE G:"); write(0, 0, 36, 0, "FIGURE B:"); write_int(0, 86, 0, 0, offset figure[0]); write_int(0, 86, 12, 0, offset figure[1]); write_int(0, 86, 24, 0, offset figure[2]); write_int(0, 86, 36, 0, offset figure[3]); LOOP // We take the colour of the bitmap's pixel figure[0] = map_get_pixel(file1, 8, mouse.x, mouse.y); figure[1] = map_get_pixel(file1, 8, mouse.x, mouse.y, "r"); // Gets only the value of the red channel figure[2] = map_get_pixel(file1, 8, mouse.x, mouse.y, "g"); // Gets only the value of the green channel figure[3] = map_get_pixel(file1, 8, mouse.x, mouse.y, "b"); // Gets only the value of the blue channel FRAME; END END
+
Tamaño Código:
Compilar Código
Compilando...