Page 11 - Orbit fb
        P. 11
     Orbit –  – מדריך פיתוח משחקU IN GAME
                            – אוביקט ריחוף4 צעד
    האוביקט ירחף במרחק יחסית קבוע סביב הפלנטה כאשר לוחצים על
                                                                    space מקש
       דרוש ארוע לחיצה על מקש רווח ופעולת הרצת קוד עם התוכן:רמז
                                                                           :הבא
circle_speed = 3
circle_radius = 200
dir_now = point_direction(obj_planet.x,obj_planet.y,x,y)
dir_new = (dir_now + circle_speed + 360)
x = lengthdir_x(circle_radius,dir_new) + obj_planet.x
y = lengthdir_y(circle_radius,dir_new) + obj_planet.y
                                       - 11 -





