File size: 755 Bytes
e241264
 
 
 
 
1
2
3
4
5
6
{"instruction": "نظام جاذبية كوكبي (Gravity Point)", "output": "var force = (global_position - body.global_position).normalized() * gravity_strength"}
{"instruction": "كود ذكاء اصطناعي للهروب من المتفجرات", "output": "if area.is_in_group('danger'): run_away()"}
{"instruction": "نظام تسلق الجدران (Wall Climb)", "output": "if is_on_wall() and Input.is_action_pressed('up'): velocity.y = -speed"}
{"instruction": "كود ركوب السيارات (Vehicle Enter)", "output": "player.reparent(car_seat); player.enabled = false; car.driving = true"}
{"instruction": "نظام إضاءة مشاعل (Torches) متذبذب", "output": "light.energy = 1.0 + sin(Time.get_ticks_msec() * 0.01) * 0.2"}