Upload data/environment_ai.jsonl with huggingface_hub
Browse files
data/environment_ai.jsonl
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"instruction": "نظام دورة ليل ونهار مع تغيير الإضاءة", "output": "extends CanvasModulate\nfunc _process(delta):\n var time = Time.get_time_dict_from_system()\n color = Color(0.1, 0.1, 0.3) if time.hour > 18 or time.hour < 6 else Color(1, 1, 1)"}
|
| 2 |
+
{"instruction": "كود عدو يهرب من اللاعب إذا اقترب", "output": "func _physics_process(delta):\n var dist = global_position.distance_to(player.global_position)\n if dist < 200:\n var dir = (global_position - player.global_position).normalized()\n velocity = dir * speed\n move_and_slide()"}
|
| 3 |
+
{"instruction": "نظام باب لا يفتح إلا بمفتاح محدد", "output": "func interact():\n if inventory.has('boss_key'):\n anim.play('open')\n else:\n ui.show_message('تحتاج لمفتاح الزعيم!')"}
|
| 4 |
+
{"instruction": "كود جعل الصناديق أو الجدران قابلة للكسر", "output": "func take_damage(amount):\n hp -= amount\n if hp <= 0:\n spawn_particles()\n queue_free()"}
|
| 5 |
+
{"instruction": "منطقة تغير جاذبية اللاعب (مثلاً في الفضاء)", "output": "func _on_body_entered(body):\n if body is Player:\n body.gravity_scale = 0.5\nfunc _on_body_exited(body):\n body.gravity_scale = 1.0"}
|