Add initial prototype.

This commit is contained in:
Rod Kay
2022-07-31 17:34:54 +10:00
commit 54a53b2ac0
1421 changed files with 358874 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
with
gel.Window.setup,
gel.Applet.gui_world,
gel.Forge,
gel.World,
gel.Camera,
Physics;
pragma Unreferenced (gel.Window.setup);
procedure launch_Pong_Tute
--
-- Basic pong game.
--
is
use gel.Applet,
gel.Applet.gui_world;
--- Applet
--
the_Applet : gel.Applet.gui_world.view
:= gel.Forge.new_gui_Applet (Named => "Pong Tutorial",
window_Width => 800,
window_Height => 600,
space_Kind => physics.Box2d);
--- Controls
--
Cycle : Natural := 0;
begin
the_Applet.Camera.Site_is ([0.0, 0.0, 20.0]);
--- Main loop.
--
while the_Applet.is_open
loop
Cycle := Cycle + 1;
the_Applet.World.evolve; -- Advance the world.
the_Applet.freshen; -- Handle any new events and update the screen.
end loop;
free (the_Applet);
end launch_Pong_Tute;

View File

@@ -0,0 +1,17 @@
with
"gel",
"lace_shared";
project pong_Tute
is
for Object_Dir use "build";
for Exec_Dir use ".";
for Main use ("launch_pong_tute.adb");
for Languages use ("Ada");
package Ide renames Lace_shared.Ide;
package Builder renames Lace_shared.Builder;
package Compiler renames Lace_shared.Compiler;
package Binder renames Lace_shared.Binder;
end pong_Tute;

View File

@@ -0,0 +1,3 @@
Tute 1 ~ Create a basic applet & window.