
631 Views
201 Executions
Flight script
Universal Script 📌
t0tyii71First script
10 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Allows flight in almost ANY game
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
procedure Flight_Sim is
type Vector3 is record
X : Float := 0.0;
Y : Float := 0.0;
Z : Float := 0.0;
end record;
function "+" (A, B : Vector3) return Vector3 is
begin
return (A.X + B.X, A.Y + B.Y, A.Z + B.Z);
end;
function "*" (A : Vector3; S : Float) return Vector3 is
begin
return (A.X * S, A.Y * S, A.Z * S);
end;
Position : Vector3 := (0.0, 0.0, 0.0);
Velocity : Vector3 := (0.0, 0.0, 0.0);
Flying : Boolean := False;
Speed : Float := 60.0;
Input : Character;
begin
Put_Line("=== Ada Flight Simulation ===");
Put_Line("F = toggle flight, WASD = move, Space = up, C = down, Q = quit");
loop
Put("Input: ");
Get(Input);
if Input = 'F' or else Input = 'f' then
Flying := not Flying;
if Flying then
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







