Jump to content

Forest fire: Difference between revisions

155 bytes removed ,  4 years ago
m
m (Fix Perl6 -> Raku links and comments)
Line 5,712:
 
=={{header|Phix}}==
{{libheader|Phix/pGUI}}
<lang Phix>-- demo\rosetta\Forest_fire.exw
-- demo\rosetta\Forest_fire.exw
--
include pGUI.e
 
Line 5,772 ⟶ 5,770:
cddbuffer = cdCreateCanvas(CD_DBUFFER, cdcanvas)
return IUP_DEFAULT
end function
 
function key_cb(Ihandle /*ih*/, atom c)
if c=K_ESC then return IUP_CLOSE end if
return IUP_CONTINUE
end function
 
Line 5,794 ⟶ 5,787:
IupSetAttribute(dlg, "TITLE", TITLE)
IupSetAttribute(dlg, "MAXSIZE", "800x400") -- (too slow any bigger)
IupCloseOnEscape(dlg)
IupSetCallback(dlg, "K_ANY", Icallback("key_cb"))
IupSetCallback(canvas, "ACTION", Icallback("redraw_cb"))
 
7,830

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.