Soea511 commited on
Commit
545b0d0
·
verified ·
1 Parent(s): 4dff67a

Upload data/train.jsonl with huggingface_hub

Browse files
Files changed (1) hide show
  1. data/train.jsonl +40 -0
data/train.jsonl ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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()"}
2
+ {"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"}
3
+ {"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()"}
4
+ {"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()"}
5
+ {"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()"}
6
+ {"instruction": "كود شريط صحة (Progress Bar) يتحدث بنعومة", "output": "func _process(delta):\n health_bar.value = lerp(health_bar.value, target_health, 0.1)"}
7
+ {"instruction": "حفظ ملف اللعبة بصيغة JSON", "output": "func save_game():\n var f = FileAccess.open('user://save.json', FileAccess.WRITE)\n f.store_string(JSON.stringify({'score': 100}))"}
8
+ {"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)"}
9
+ {"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()"}
10
+ {"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"}
11
+ {"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()"}
12
+ {"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()"}
13
+ {"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()"}
14
+ {"instruction": "كود شريط صحة (Progress Bar) يتحدث بنعومة", "output": "func _process(delta):\n health_bar.value = lerp(health_bar.value, target_health, 0.1)"}
15
+ {"instruction": "حفظ ملف اللعبة بصيغة JSON", "output": "func save_game():\n var f = FileAccess.open('user://save.json', FileAccess.WRITE)\n f.store_string(JSON.stringify({'score': 100}))"}
16
+ {"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)"}
17
+ {"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()"}
18
+ {"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"}
19
+ {"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()"}
20
+ {"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()"}
21
+ {"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()"}
22
+ {"instruction": "كود شريط صحة (Progress Bar) يتحدث بنعومة", "output": "func _process(delta):\n health_bar.value = lerp(health_bar.value, target_health, 0.1)"}
23
+ {"instruction": "حفظ ملف اللعبة بصيغة JSON", "output": "func save_game():\n var f = FileAccess.open('user://save.json', FileAccess.WRITE)\n f.store_string(JSON.stringify({'score': 100}))"}
24
+ {"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)"}
25
+ {"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()"}
26
+ {"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"}
27
+ {"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()"}
28
+ {"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()"}
29
+ {"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()"}
30
+ {"instruction": "كود شريط صحة (Progress Bar) يتحدث بنعومة", "output": "func _process(delta):\n health_bar.value = lerp(health_bar.value, target_health, 0.1)"}
31
+ {"instruction": "حفظ ملف اللعبة بصيغة JSON", "output": "func save_game():\n var f = FileAccess.open('user://save.json', FileAccess.WRITE)\n f.store_string(JSON.stringify({'score': 100}))"}
32
+ {"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)"}
33
+ {"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()"}
34
+ {"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"}
35
+ {"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()"}
36
+ {"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()"}
37
+ {"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()"}
38
+ {"instruction": "كود شريط صحة (Progress Bar) يتحدث بنعومة", "output": "func _process(delta):\n health_bar.value = lerp(health_bar.value, target_health, 0.1)"}
39
+ {"instruction": "حفظ ملف اللعبة بصيغة JSON", "output": "func save_game():\n var f = FileAccess.open('user://save.json', FileAccess.WRITE)\n f.store_string(JSON.stringify({'score': 100}))"}
40
+ {"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)"}