Godot-Native-AI-Brain / data /train.jsonl
Soea511's picture
Upload data/train.jsonl with huggingface_hub
545b0d0 verified
{"instruction": "حركة لاعب 2D احترافية مع تسارع وتباطؤ", "output": "extends CharacterBody2D\n@export var speed = 300\n@export var accel = 20\nfunc _physics_process(delta):\n var dir = Input.get_vector('left','right','up','down')\n velocity = velocity.move_toward(dir * speed, accel)\n move_and_slide()"}
{"instruction": "كود قفز مزدوج (Double Jump)", "output": "var jumps = 2\nfunc _physics_process(delta):\n if is_on_floor(): jumps = 2\n if Input.is_action_just_pressed('jump') and jumps > 0:\n velocity.y = -400\n jumps -= 1"}
{"instruction": "نظام إطلاق رصاصة في اتجاه الماوس", "output": "func shoot():\n var b = bullet_scene.instantiate()\n get_tree().root.add_child(b)\n b.global_position = global_position\n b.rotation = (get_global_mouse_position() - global_position).angle()"}
{"instruction": "نظام تلقي ضرر (Health System)", "output": "signal health_depleted\nvar hp = 100:\n set(v):\n hp = clamp(v, 0, 100)\n if hp <= 0: health_depleted.emit()"}
{"instruction": "عدو يتبع اللاعب باستخدام NavigationAgent2D", "output": "func _physics_process(delta):\n nav_agent.target_position = player.global_position\n var next_path_pos = nav_agent.get_next_path_position()\n velocity = global_position.direction_to(next_path_pos) * speed\n move_and_slide()"}
{"instruction": "كود شريط صحة (Progress Bar) يتحدث بنعومة", "output": "func _process(delta):\n health_bar.value = lerp(health_bar.value, target_health, 0.1)"}
{"instruction": "حفظ ملف اللعبة بصيغة JSON", "output": "func save_game():\n var f = FileAccess.open('user://save.json', FileAccess.WRITE)\n f.store_string(JSON.stringify({'score': 100}))"}
{"instruction": "هز الكاميرا (Screen Shake) عند الانفجار", "output": "func shake(intensity):\n var tween = create_tween()\n tween.tween_property(camera, 'offset', Vector2(intensity, intensity), 0.1)\n tween.chain().tween_property(camera, 'offset', Vector2.ZERO, 0.1)"}
{"instruction": "حركة لاعب 2D احترافية مع تسارع وتباطؤ", "output": "extends CharacterBody2D\n@export var speed = 300\n@export var accel = 20\nfunc _physics_process(delta):\n var dir = Input.get_vector('left','right','up','down')\n velocity = velocity.move_toward(dir * speed, accel)\n move_and_slide()"}
{"instruction": "كود قفز مزدوج (Double Jump)", "output": "var jumps = 2\nfunc _physics_process(delta):\n if is_on_floor(): jumps = 2\n if Input.is_action_just_pressed('jump') and jumps > 0:\n velocity.y = -400\n jumps -= 1"}
{"instruction": "نظام إطلاق رصاصة في اتجاه الماوس", "output": "func shoot():\n var b = bullet_scene.instantiate()\n get_tree().root.add_child(b)\n b.global_position = global_position\n b.rotation = (get_global_mouse_position() - global_position).angle()"}
{"instruction": "نظام تلقي ضرر (Health System)", "output": "signal health_depleted\nvar hp = 100:\n set(v):\n hp = clamp(v, 0, 100)\n if hp <= 0: health_depleted.emit()"}
{"instruction": "عدو يتبع اللاعب باستخدام NavigationAgent2D", "output": "func _physics_process(delta):\n nav_agent.target_position = player.global_position\n var next_path_pos = nav_agent.get_next_path_position()\n velocity = global_position.direction_to(next_path_pos) * speed\n move_and_slide()"}
{"instruction": "كود شريط صحة (Progress Bar) يتحدث بنعومة", "output": "func _process(delta):\n health_bar.value = lerp(health_bar.value, target_health, 0.1)"}
{"instruction": "حفظ ملف اللعبة بصيغة JSON", "output": "func save_game():\n var f = FileAccess.open('user://save.json', FileAccess.WRITE)\n f.store_string(JSON.stringify({'score': 100}))"}
{"instruction": "هز الكاميرا (Screen Shake) عند الانفجار", "output": "func shake(intensity):\n var tween = create_tween()\n tween.tween_property(camera, 'offset', Vector2(intensity, intensity), 0.1)\n tween.chain().tween_property(camera, 'offset', Vector2.ZERO, 0.1)"}
{"instruction": "حركة لاعب 2D احترافية مع تسارع وتباطؤ", "output": "extends CharacterBody2D\n@export var speed = 300\n@export var accel = 20\nfunc _physics_process(delta):\n var dir = Input.get_vector('left','right','up','down')\n velocity = velocity.move_toward(dir * speed, accel)\n move_and_slide()"}
{"instruction": "كود قفز مزدوج (Double Jump)", "output": "var jumps = 2\nfunc _physics_process(delta):\n if is_on_floor(): jumps = 2\n if Input.is_action_just_pressed('jump') and jumps > 0:\n velocity.y = -400\n jumps -= 1"}
{"instruction": "نظام إطلاق رصاصة في اتجاه الماوس", "output": "func shoot():\n var b = bullet_scene.instantiate()\n get_tree().root.add_child(b)\n b.global_position = global_position\n b.rotation = (get_global_mouse_position() - global_position).angle()"}
{"instruction": "نظام تلقي ضرر (Health System)", "output": "signal health_depleted\nvar hp = 100:\n set(v):\n hp = clamp(v, 0, 100)\n if hp <= 0: health_depleted.emit()"}
{"instruction": "عدو يتبع اللاعب باستخدام NavigationAgent2D", "output": "func _physics_process(delta):\n nav_agent.target_position = player.global_position\n var next_path_pos = nav_agent.get_next_path_position()\n velocity = global_position.direction_to(next_path_pos) * speed\n move_and_slide()"}
{"instruction": "كود شريط صحة (Progress Bar) يتحدث بنعومة", "output": "func _process(delta):\n health_bar.value = lerp(health_bar.value, target_health, 0.1)"}
{"instruction": "حفظ ملف اللعبة بصيغة JSON", "output": "func save_game():\n var f = FileAccess.open('user://save.json', FileAccess.WRITE)\n f.store_string(JSON.stringify({'score': 100}))"}
{"instruction": "هز الكاميرا (Screen Shake) عند الانفجار", "output": "func shake(intensity):\n var tween = create_tween()\n tween.tween_property(camera, 'offset', Vector2(intensity, intensity), 0.1)\n tween.chain().tween_property(camera, 'offset', Vector2.ZERO, 0.1)"}
{"instruction": "حركة لاعب 2D احترافية مع تسارع وتباطؤ", "output": "extends CharacterBody2D\n@export var speed = 300\n@export var accel = 20\nfunc _physics_process(delta):\n var dir = Input.get_vector('left','right','up','down')\n velocity = velocity.move_toward(dir * speed, accel)\n move_and_slide()"}
{"instruction": "كود قفز مزدوج (Double Jump)", "output": "var jumps = 2\nfunc _physics_process(delta):\n if is_on_floor(): jumps = 2\n if Input.is_action_just_pressed('jump') and jumps > 0:\n velocity.y = -400\n jumps -= 1"}
{"instruction": "نظام إطلاق رصاصة في اتجاه الماوس", "output": "func shoot():\n var b = bullet_scene.instantiate()\n get_tree().root.add_child(b)\n b.global_position = global_position\n b.rotation = (get_global_mouse_position() - global_position).angle()"}
{"instruction": "نظام تلقي ضرر (Health System)", "output": "signal health_depleted\nvar hp = 100:\n set(v):\n hp = clamp(v, 0, 100)\n if hp <= 0: health_depleted.emit()"}
{"instruction": "عدو يتبع اللاعب باستخدام NavigationAgent2D", "output": "func _physics_process(delta):\n nav_agent.target_position = player.global_position\n var next_path_pos = nav_agent.get_next_path_position()\n velocity = global_position.direction_to(next_path_pos) * speed\n move_and_slide()"}
{"instruction": "كود شريط صحة (Progress Bar) يتحدث بنعومة", "output": "func _process(delta):\n health_bar.value = lerp(health_bar.value, target_health, 0.1)"}
{"instruction": "حفظ ملف اللعبة بصيغة JSON", "output": "func save_game():\n var f = FileAccess.open('user://save.json', FileAccess.WRITE)\n f.store_string(JSON.stringify({'score': 100}))"}
{"instruction": "هز الكاميرا (Screen Shake) عند الانفجار", "output": "func shake(intensity):\n var tween = create_tween()\n tween.tween_property(camera, 'offset', Vector2(intensity, intensity), 0.1)\n tween.chain().tween_property(camera, 'offset', Vector2.ZERO, 0.1)"}
{"instruction": "حركة لاعب 2D احترافية مع تسارع وتباطؤ", "output": "extends CharacterBody2D\n@export var speed = 300\n@export var accel = 20\nfunc _physics_process(delta):\n var dir = Input.get_vector('left','right','up','down')\n velocity = velocity.move_toward(dir * speed, accel)\n move_and_slide()"}
{"instruction": "كود قفز مزدوج (Double Jump)", "output": "var jumps = 2\nfunc _physics_process(delta):\n if is_on_floor(): jumps = 2\n if Input.is_action_just_pressed('jump') and jumps > 0:\n velocity.y = -400\n jumps -= 1"}
{"instruction": "نظام إطلاق رصاصة في اتجاه الماوس", "output": "func shoot():\n var b = bullet_scene.instantiate()\n get_tree().root.add_child(b)\n b.global_position = global_position\n b.rotation = (get_global_mouse_position() - global_position).angle()"}
{"instruction": "نظام تلقي ضرر (Health System)", "output": "signal health_depleted\nvar hp = 100:\n set(v):\n hp = clamp(v, 0, 100)\n if hp <= 0: health_depleted.emit()"}
{"instruction": "عدو يتبع اللاعب باستخدام NavigationAgent2D", "output": "func _physics_process(delta):\n nav_agent.target_position = player.global_position\n var next_path_pos = nav_agent.get_next_path_position()\n velocity = global_position.direction_to(next_path_pos) * speed\n move_and_slide()"}
{"instruction": "كود شريط صحة (Progress Bar) يتحدث بنعومة", "output": "func _process(delta):\n health_bar.value = lerp(health_bar.value, target_health, 0.1)"}
{"instruction": "حفظ ملف اللعبة بصيغة JSON", "output": "func save_game():\n var f = FileAccess.open('user://save.json', FileAccess.WRITE)\n f.store_string(JSON.stringify({'score': 100}))"}
{"instruction": "هز الكاميرا (Screen Shake) عند الانفجار", "output": "func shake(intensity):\n var tween = create_tween()\n tween.tween_property(camera, 'offset', Vector2(intensity, intensity), 0.1)\n tween.chain().tween_property(camera, 'offset', Vector2.ZERO, 0.1)"}