-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<Layouts><Layout layout_name="DnDWorkspace" layout_guid="ab18e0ba-5aeb-4bbe-98d8-c6c94c95ec57" toolbox_size="25%" toolbox_anchor="Last" story_size="187.5px"><Workspace zoom="1" pan="[-12.5, -600]" /></Layout></Layouts> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// @description Insert description here | ||
// You can write your code in this editor | ||
turn_accel = 5; | ||
max_turn_spd = 30; | ||
accel = 0.01; | ||
decel = 0.01; | ||
player_number = 1; | ||
AB_held=0; | ||
depth=10; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// turn clockwise | ||
if ( keyboard_check(vk_right) ) | ||
phy_angular_velocity = min(phy_angular_velocity + turn_accel, max_turn_spd); | ||
|
||
// turn counterclockwise | ||
if ( keyboard_check(vk_left) ) | ||
phy_angular_velocity = max(phy_angular_velocity - turn_accel, -max_turn_spd); | ||
|
||
// forward | ||
if ( keyboard_check(vk_up) ) { | ||
if ( phy_speed < 30 ) { | ||
phy_speed_x += lengthdir_x(accel, -phy_rotation); | ||
phy_speed_y += lengthdir_y(accel, -phy_rotation); | ||
} | ||
} | ||
// backward | ||
if ( keyboard_check(vk_down) ) { | ||
if ( phy_speed > -30 ) { | ||
phy_speed_x -= lengthdir_x(decel, -phy_rotation); | ||
phy_speed_y -= lengthdir_y(decel, -phy_rotation); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.