Boids/Phix: Difference between revisions
m
Oops, missed one.
(Boids/Phix) |
m (Oops, missed one.) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1:
Only uses about 2.5% cpu with 60 boids at 25 FPS. Split into two source files, for no particular reason.
{{libheader|Phix/pGUI}}
<syntaxhighlight lang="phix">--
-- demo\pGUI\boids3d.exw
--
-- Originally by by Matt Lewis
-- Ported from arwen to pGUI, Pete Lomax June 2017
--
include pGUI.e
Line 349 ⟶ 347:
IupVbox({boids_label,boids_txt},"NORMALIZESIZE=HORIZONTAL"),
IupVbox({shadow_check,restart},"NORMALIZESIZE=HORIZONTAL")})
{} = IupDestroy(IupNormalizer({speed_label,shadow_check},"NORMALIZE=VERTICAL"))
dialog = IupDialog(IupVbox({canvas,hbox}, "MARGIN=5x5, GAP=5"),"MINSIZE=455x170")
IupSetAttribute(dialog,"TITLE",TITLE);
Line 364 ⟶ 362:
IupClose()
end procedure
main()</
<syntaxhighlight lang="phix">--
-- demo\pGUI\boids3d.e
-- ===================
Line 653 ⟶ 651:
end for
boidsn = boidsnp1
end procedure</
|