1. हम क्या बना रहे हैं
Godot के लिए मिलने वाले ज़्यादातर match-3 tutorials Godot 3 के लिए लिखे गए थे और yield, update() और हर piece के लिए एक scene इस्तेमाल करते हैं। यह tutorial Godot 4.6 के लिए GDScript 2.0 में लिखे एक पूरे, काम करने वाले match-3 को समझाता है, जो एक ही Node2D पर एक ही script में रहता है। नीचे का हर अंश असली फ़ाइल (scripts/match3.gd) से copy किया गया है; web के लिए सिर्फ़ indentation बदला गया है।
इस गेम, Pop Match!, में ये हैं:
- छह piece types वाला 8×8 board, जिसे
_draw()से draw किया गया है — कोई image asset नहीं; - click-to-select और drag-to-swap input;
- invalid swaps जो कोई move ख़र्च किए बिना वापस खिसक जाते हैं;
- horizontal और vertical match detection, gravity और refill;
- combo multiplier के साथ cascades;
- पाँच सेकंड idle रहने पर hint, और कोई move न बचने पर automatic reshuffle;
- हर गेम में 25 moves, score, best score और game-over screen।
वह मुख्य विचार जो इन सबको सरल रखता है: game state सादे arrays हैं, और animation एक अलग per-cell pixel offset है। Logic arrays को तुरंत बदल देता है; फिर offsets अगले frames में घटकर शून्य हो जाते हैं, और यही आपको movement के रूप में दिखता है।
2. Project Setup
- एक नया Godot 4.6 प्रोजेक्ट बनाएँ। मूल प्रोजेक्ट Compatibility renderer और 1280×720 viewport (Project Settings → Display → Window) इस्तेमाल करता है, क्योंकि HUD positions उसी size के लिए hard-coded हैं।
Mainनाम के एक अकेलेNode2Droot के साथ एक scene बनाएँ, उसेres://scenes/main.tscnके रूप में save करें और main scene के रूप में सेट करें।- एक नई script,
res://scripts/match3.gd, attach करें जोextends Node2Dकरती हो।
यही पूरा scene tree है। Script की शुरुआत board को परिभाषित करने वाले constants से करें:
const COLS := 8
const ROWS := 8
const CELL := 80.0
const ORIGIN := Vector2(64, 40)
const TYPES := 6
const START_MOVES := 25
const MOVE_SPEED := 900.0
const COLORS := [Color("ff4d6d"), Color("ff9f1c"), Color("ffd60a"), Color("2ec4b6"), Color("3a86ff"), Color("b5179e")]
const NONE := Vector2i(-1, -1)
CELL pixels में cell का size है और ORIGIN स्क्रीन पर board का ऊपरी-बायाँ कोना है। NONE एक sentinel Vector2i है, जिसका अर्थ है “कोई cell selected नहीं”।
3. Grid Data Model
Board चार समानांतर 2D arrays से बना है, जिनका index [y][x] है (पहले row):
var grid: Array = []
var offs: Array = []
var scl: Array = []
var popping: Array = []
var selected := NONE
gridpiece type रखता है,0–5, या खाली cell के लिए-1।offsहर cell के लिए एकVector2pixel offset रखता है। Piece अपने cell center और इस offset को जोड़कर draw होता है।sclहर cell का draw scale है, जो selection pulse, pop-out और landing पर छोटे से “boing” के लिए इस्तेमाल होता है।poppingउन cells को mark करता है जो match के बाद सिकुड़कर ग़ायब हो रहे हैं।
जब new_game() board भरता है, तो उसे शुरुआत में ही matches नहीं बनाने चाहिए। वह row दर row भरता है और जब तक कोई piece अपने बाईं ओर के दो cells या ऊपर के दो cells के साथ तीन की कतार पूरी करता हो, तब तक उसे फिर से roll करता है। फिर वह पक्का करता है कि कम से कम एक move मौजूद है:
for y in ROWS:
for x in COLS:
var tp := randi() % TYPES
while (x >= 2 and grid[y][x - 1] == tp and grid[y][x - 2] == tp) \
or (y >= 2 and grid[y - 1][x] == tp and grid[y - 2][x] == tp):
tp = randi() % TYPES
grid[y][x] = tp
if not has_moves():
new_game()
return
इसी function में पहले हर cell का offset Vector2(0, -CELL * (ROWS + 1) - y * 10) से शुरू होता है, इसलिए गेम शुरू होने पर पूरा board ऊपर से नीचे गिरता है — एक मुफ़्त intro animation।
कुछ छोटे helpers cells और pixels के बीच conversion करते हैं:
func cell_center(c: Vector2i) -> Vector2:
return ORIGIN + (Vector2(c) + Vector2(0.5, 0.5)) * CELL
func pos_to_cell(p: Vector2) -> Vector2i:
var v := (p - ORIGIN) / CELL
return Vector2i(floori(v.x), floori(v.y))
func in_board(c: Vector2i) -> bool:
return c.x >= 0 and c.y >= 0 and c.x < COLS and c.y < ROWS
func is_adjacent(a: Vector2i, b: Vector2i) -> bool:
return absi(a.x - b.x) + absi(a.y - b.y) == 1
is_adjacent Manhattan distance इस्तेमाल करता है: horizontally या vertically ठीक एक कदम, कभी diagonally नहीं। ध्यान दें कि int() के बजाय floori() है: board के ठीक बाईं ओर click करने पर -0.3 मिलता है, जिसे floori -1 (board के बाहर) बना देता है, जबकि int() उसे truncate करके 0 कर देता।
4. _draw() से Board बनाना
हर piece के लिए एक node के बजाय, Node2D._draw() हर frame पूरे board को paint करता है। _process() के अंत में script queue_redraw() call करती है, जो Godot को _draw() फिर से चलाने को कहता है। Piece loop छोटा है:
for y in ROWS:
for x in COLS:
var tp: int = grid[y][x]
if tp == -1:
continue
var c := Vector2i(x, y)
var p: Vector2 = cell_center(c) + offs[y][x] + shk
var alpha := clampf((p.y - (ORIGIN.y - CELL * 0.4)) / (CELL * 0.6), 0.0, 1.0)
var s: float = scl[y][x]
var wob := 0.0
if c == selected:
s *= 1.0 + 0.08 * sin(t * 10.0)
elif hint.has(c):
wob = sin(t * 14.0) * 0.18
draw_piece(p, tp, s, alpha, wob)
दो बातें किसी भी match-3 में copy करने लायक हैं। पहली, alpha किसी piece को board के ऊपरी किनारे को पार करते समय fade in करता है, ताकि ऊपर से गिरते नए pieces HUD या background के ऊपर अचानक न दिखें। दूसरी, shk एक random screen-shake vector है जो board की हर चीज़ में जोड़ा जाता है।
draw_piece() shape_pts() से एक outline बनाता है (type के अनुसार circle, squircle, star, soft triangle, diamond या flower), फिर draw_set_transform() इस्तेमाल करता है ताकि shape को origin के आसपास draw करके भी move, scale और wobble किया जा सके:
draw_set_transform(p, wobble, Vector2(s, s))
var pts := shape_pts(tp, r)
var shadow := PackedVector2Array()
for q in pts:
shadow.append(q + Vector2(0, 5))
draw_colored_polygon(shadow, Color(0, 0, 0, 0.25 * alpha))
draw_colored_polygon(pts, Color(col, alpha))
var outline := pts.duplicate()
outline.append(pts[0])
draw_polyline(outline, Color(col.darkened(0.4), alpha), 3.5, true)
Function का बाक़ी हिस्सा चमकदार dots और पलक झपकाती आँखों वाला चेहरा जोड़ता है, फिर draw_set_transform(Vector2.ZERO) से transform reset करता है। Board का background और tiles code में बनाए गए StyleBoxFlat resources इस्तेमाल करते हैं, जिन्हें draw_style_box() से draw किया जाता है। अगर आप sprites इस्तेमाल करना चाहें, तो draw_piece() की body को draw_texture() call से बदल दें — game logic का कोई हिस्सा इस पर निर्भर नहीं करता कि pieces कैसे दिखते हैं।
5. Input: Swap के लिए Click और Drag
Input _unhandled_input() से होकर जाता है। एक press या तो कोई cell select करता है, उसे deselect करता है, या — अगर कोई पड़ोसी पहले से selected है — दोनों को swap करता है:
if e is InputEventMouseButton and e.button_index == MOUSE_BUTTON_LEFT:
if not e.pressed:
dragging = false
return
if game_over:
if over_time > 0.6:
new_game()
return
if busy:
return
idle_time = 0
hint = []
var c := pos_to_cell(e.position)
if not in_board(c):
selected = NONE
return
if selected != NONE and is_adjacent(selected, c):
var a := selected
selected = NONE
try_swap(a, c)
elif selected == c:
selected = NONE
else:
selected = c
scl[c.y][c.x] = 1.2
dragging = true
drag_start = e.position
Select करने से drag भी शुरू होता है। जब तक button दबा रहे, mouse cell के 45% से आगे जाए तो प्रमुख axis चुनी जाती है और उसी दिशा में swap होता है:
elif e is InputEventMouseMotion and dragging and not busy and selected != NONE:
var d: Vector2 = e.position - drag_start
if d.length() > CELL * 0.45:
var dir := Vector2i(int(signf(d.x)), 0) if absf(d.x) > absf(d.y) else Vector2i(0, int(signf(d.y)))
var target := selected + dir
var a := selected
dragging = false
selected = NONE
if in_board(target):
try_swap(a, target)
busy flag यहाँ सबसे महत्वपूर्ण line है: जब pieces हिल रहे हों या कोई cascade resolve हो रहा हो, तो input ignore किया जाता है। इसके बिना एक तेज़ player gravity step के बीच में swap करके board को बिगाड़ सकता है।
6. Swapping, Animation और Swap Back
Swap ख़ुद data को तुरंत बदल देता है, फिर offsets सेट करता है ताकि हर piece वहीं draw हो जहाँ से वह आया था:
func do_swap(a: Vector2i, b: Vector2i) -> void:
var tmp = grid[a.y][a.x]
grid[a.y][a.x] = grid[b.y][b.x]
grid[b.y][b.x] = tmp
offs[a.y][a.x] = cell_center(b) - cell_center(a)
offs[b.y][b.x] = cell_center(a) - cell_center(b)
func settle() -> void:
while true:
await get_tree().process_frame
var moving := false
for y in ROWS:
for x in COLS:
if offs[y][x].length_squared() > 0.01:
moving = true
if not moving:
return
हर frame _process() हर offset को MOVE_SPEED pixels प्रति सेकंड की रफ़्तार से शून्य की ओर ले जाता है, इसलिए pieces फिसलते हुए अपनी जगह पर आते हैं। settle() एक coroutine है: वह तब तक एक-एक frame इंतज़ार करता है जब तक कोई offset बाक़ी न रहे, जिससे game logic tweens या signals से जूझने के बजाय बस await settle() कर सकता है।
for y in ROWS:
for x in COLS:
var was: Vector2 = offs[y][x]
if was != Vector2.ZERO:
offs[y][x] = was.move_toward(Vector2.ZERO, MOVE_SPEED * delta)
if offs[y][x] == Vector2.ZERO and was.y < 0:
scl[y][x] = 1.18 # landing boing
if popping[y][x]:
scl[y][x] = move_toward(scl[y][x], 0.0, delta * 5.0)
else:
scl[y][x] = lerpf(scl[y][x], 1.0, minf(1.0, delta * 10.0))
अब turn logic। try_swap() swap करता है, इंतज़ार करता है, और matches जाँचता है। कोई match नहीं? फिर से swap करें (जो pieces को animate करके वापस ले जाता है) और move ख़र्च किए बिना return करें:
func try_swap(a: Vector2i, b: Vector2i) -> void:
busy = true
do_swap(a, b)
await settle()
var m := find_matches()
if m.is_empty():
do_swap(a, b)
await settle()
busy = false
return
moves -= 1
combo = 0
await resolve(m)
if not has_moves():
await reshuffle()
busy = false
idle_time = 0
if moves <= 0:
game_over = true
over_time = 0
best = maxi(best, score)
ऊपर से नीचे पढ़ें तो वह function पूरी turn है: swap, validate, हर cascade resolve करना, अटकने पर reshuffle, फिर game over की जाँच। यही readability await आपको देता है।
7. Matches ढूँढना
find_matches() हर row में एक ही type के runs scan करता है, फिर हर column में, और तीन या ज़्यादा के run के हर cell को record करता है। Vector2i keys वाली Dictionary एक set की तरह काम करती है, इसलिए जो cell horizontal और vertical दोनों runs में आता है (L या T shape), उसे सिर्फ़ एक बार गिना जाता है:
func find_matches() -> Array:
var marked := {}
for y in ROWS:
var x := 0
while x < COLS:
var tp = grid[y][x]
var e := x
while e + 1 < COLS and grid[y][e + 1] == tp:
e += 1
if tp != -1 and e - x >= 2:
for i in range(x, e + 1):
marked[Vector2i(i, y)] = true
x = e + 1
for x in COLS:
var y := 0
while y < ROWS:
var tp = grid[y][x]
var e := y
while e + 1 < ROWS and grid[e + 1][x] == tp:
e += 1
if tp != -1 and e - y >= 2:
for i in range(y, e + 1):
marked[Vector2i(x, i)] = true
y = e + 1
return marked.keys()
Run scan linear है: e तब तक बढ़ता है जब तक type दोहराता रहे, और बाहरी loop x = e + 1 से सीधे run के पार कूद जाता है। tp != -1 जाँच खाली cells के runs को match गिने जाने से रोकती है। चार या पाँच का run बस ज़्यादा cells mark करता है; यह version उनके लिए कोई special pieces नहीं देता, जो जोड़ने के लिए अगला स्वाभाविक feature है।
8. Clearing, Gravity, Refill और Cascades
resolve() तब तक loop करता है जब तक board पर matches हों। हर pass एक cascade “wave” है, और हर wave के साथ combo counter बढ़ता है:
func resolve(m: Array) -> void:
while not m.is_empty():
combo += 1
var gained: int = m.size() * 10 * combo
score += gained
var center := Vector2.ZERO
for c in m:
popping[c.y][c.x] = true
center += cell_center(c)
spawn_particles(cell_center(c), COLORS[grid[c.y][c.x]])
center /= m.size()
center.y = maxf(center.y, ORIGIN.y + CELL * 1.2)
var txt := "+%d" % gained
if combo > 1:
txt += " COMBO x%d!" % combo
popups.append({"p": center, "text": txt, "life": 1.0})
shake = 4.0 + 3.0 * combo
await get_tree().create_timer(0.2).timeout
for c in m:
grid[c.y][c.x] = -1
popping[c.y][c.x] = false
scl[c.y][c.x] = 1.0
apply_gravity()
await settle()
m = find_matches()
Scoring है cells × 10 × combo। आपकी move पर एक साधारण three-match 30 का होता है; अगर फिर गिरते pieces एक और three-match बनाते हैं, तो वह wave 60 की होती है, अगली 90 की, और इसी तरह आगे। try_swap() हर move से पहले combo को 0 पर reset करता है, इसलिए multiplier सिर्फ़ chain reactions गिनता है। 0.2 सेकंड का timer cells को सच में खाली करने से पहले pop animation को चलने का समय देता है।
Gravity column दर column एक “write” pointer के साथ काम करती है, जो नीचे से शुरू होता है। हर ग़ैर-खाली cell write position पर नीचे copy होता है, और ऊपर बचे cells को नए random pieces मिलते हैं:
func apply_gravity() -> void:
for x in COLS:
var write := ROWS - 1
for y in range(ROWS - 1, -1, -1):
if grid[y][x] != -1:
if y != write:
grid[write][x] = grid[y][x]
grid[y][x] = -1
offs[write][x] = offs[y][x] + Vector2(0, (y - write) * CELL)
offs[y][x] = Vector2.ZERO
write -= 1
var missing := write + 1
for y in range(write, -1, -1):
grid[y][x] = randi() % TYPES
offs[y][x] = Vector2(0, -missing * CELL)
scl[y][x] = 1.0
यही offset trick animation चलाती है। जो piece तीन rows नीचे गया, उसे -3 * CELL का offset मिलता है, इसलिए वह अब भी अपनी पुरानी जगह पर draw होता है और वहाँ से गिरता है। Refill हुए pieces अपने slot से missing cells ऊपर से शुरू होते हैं, इसलिए तीन gaps वाला column board के ऊपर से तीन नए pieces गिराता है, जहाँ _draw() का alpha fade उन्हें अंदर आने तक छिपाए रखता है। क्योंकि gravity matching वाले ही loop में है, cascades के लिए कोई अतिरिक्त code नहीं चाहिए: settle() के बाद find_matches() फिर चलता है और board स्थिर होने तक loop जारी रहता है।
9. Hints और Reshuffle
Valid move ढूँढने के लिए गेम बस हर swap आज़माता है। हर cell के लिए वह data-only swap से दाएँ और नीचे वाले पड़ोसी के साथ swap करता है, match जाँचता है, और वापस swap करता है:
func find_hint() -> Array:
for y in ROWS:
for x in COLS:
var a := Vector2i(x, y)
for d in [Vector2i(1, 0), Vector2i(0, 1)]:
var b: Vector2i = a + d
if not in_board(b):
continue
_swap_raw(a, b)
var ok := not find_matches().is_empty()
_swap_raw(a, b)
if ok:
return [a, b]
return []
func has_moves() -> bool:
return not find_hint().is_empty()
_swap_raw() visual offsets के बिना सिर्फ़ grid values swap करता है। 8×8 board पर यह 112 swap checks हैं, हर एक 64 cells का scan, जो ज़रूरत पड़ने पर कभी भी चलाने के लिए काफ़ी सस्ता है। सिर्फ़ दाएँ और नीचे जाँचना हर जोड़ी को कवर करता है, क्योंकि A को B से swap करना B को A से swap करने जैसा ही है।
Hint तब दिखता है जब player पाँच सेकंड से idle हो। _process() idle time गिनता है और नतीजे को hint में cache करता है, जिसे _draw() दोनों pieces पर wobble में बदल देता है:
if game_over:
over_time += delta
elif not busy:
idle_time += delta
if idle_time > 5.0 and hint.is_empty():
hint = find_hint()
अगर किसी move के बाद board पर कोई valid swap न बचे, तो try_swap() reshuffle() call करता है। यह सभी piece types इकट्ठा करता है, उन्हें shuffle करता है, और तब तक दोहराता है जब तक board पर कोई तैयार match न हो लेकिन कम से कम एक move ज़रूर हो:
func reshuffle() -> void:
popups.append({"p": ORIGIN + Vector2(COLS, ROWS) * CELL * 0.5, "text": "SHUFFLE!", "life": 1.2})
var vals := []
for y in ROWS:
for x in COLS:
vals.append(grid[y][x])
while true:
vals.shuffle()
for i in vals.size():
grid[floori(i / float(COLS))][i % COLS] = vals[i]
if find_matches().is_empty() and has_moves():
break
for y in ROWS:
for x in COLS:
scl[y][x] = 0.1
await get_tree().create_timer(0.4).timeout
नए pieces roll करने के बजाय मौजूदा pieces को shuffle करने से वह color balance बना रहता है जिसके साथ player खेल रहा था। हर scale को 0.1 पर सेट करने से पूरा board फिर से pop होकर आता है, क्योंकि _process() scale को धीरे-धीरे 1.0 की ओर ले जाता है। 64 cells पर छह types के साथ अच्छा shuffle लगभग तुरंत मिल जाता है। बहुत छोटे board या कम types के साथ loop पर एक सीमा लगा दें।
10. Moves, Score और Game Over
नियम उसी code में हैं जो आप देख चुके हैं: move सिर्फ़ match करने वाले swap पर ख़र्च होती है, score resolve() में बढ़ता है, और board settle होने के बाद जब moves शून्य पर पहुँचता है, तो try_swap() game_over सेट करता है और maxi(best, score) से best update करता है। Input handler game-over screen के पहले 0.6 सेकंड तक clicks ignore करता है, ताकि जल्दबाज़ी में किया गया आख़िरी click गेम को तुरंत restart न कर दे। उसके बाद एक click new_game() call करता है।
HUD _draw_hud() में draw होता है। एक अच्छी बात: दिखाया गया score एक अलग shown_score है, जो हर frame move_toward() से असली score की ओर गिनता हुआ बढ़ता है, और पीछा करते समय संख्या थोड़ी बड़ी हो जाती है। जब पाँच या कम moves बचते हैं, तो moves counter लाल होकर pulse करने लगता है।
चार या पाँच के runs के लिए special pieces (find_matches() में run की लंबाई जाँचें), level goals, sound effects, या best के लिए ConfigFile save — इस version में गेम बंद करने पर best score reset हो जाता है।
11. Godot 3 tutorial से आ रहे हैं?
अगर आप इसके साथ कोई पुराना match-3 tutorial भी फ़ॉलो कर रहे हैं, तो इस फ़ाइल में इस्तेमाल हुए Godot 4 समकक्ष ये हैं:
| Godot 3 | Godot 4 (यह tutorial) |
|---|---|
update() | queue_redraw() |
yield(get_tree(), "idle_frame") | await get_tree().process_frame |
yield(get_tree().create_timer(0.2), "timeout") | await get_tree().create_timer(0.2).timeout |
BUTTON_LEFT | MOUSE_BUTTON_LEFT |
Grid cells के लिए Vector2 | Vector2i |
| Lambdas नहीं: loop करके नया array बनाना | particles.filter(func(p): return p.life > 0) |
12. AI के साथ इसे बनाना
ऊपर का सब कुछ एक सामान्य, हाथ से लिखी हुई शैली की GDScript फ़ाइल है, और आप इसे ख़ुद type कर सकते हैं। लेकिन यह गेम किसी इंसान ने type नहीं किया। इसे Godot MCP Pro के ज़रिए Godot editor से जुड़े Claude Code ने इस एक prompt से बनाया:
Build में लगभग चार मिनट का AI काम लगा। क्योंकि AI, MCP के ज़रिए गेम चला सकता था, clicks simulate कर सकता था और screenshots ले सकता था, उसने अपने काम का ख़ुद play-test किया और एक ऐसा bug पकड़ा जिसकी ओर किसी ने इशारा नहीं किया था: सबसे ऊपर वाली row के matches से निकलने वाले score popups स्क्रीन के ऊपर से बाहर खिसक जाते थे। अंतिम code में आप ये सुरक्षा उपाय देख सकते हैं: popup का spawn point resolve() में clamp किया गया है (center.y = maxf(center.y, ORIGIN.y + CELL * 1.2)), और उसका ऊपर की ओर खिसकना _process() में clamp किया गया है:
for p in popups:
p.p.y = maxf(p.p.y - 60 * delta, ORIGIN.y + 30)
p.life -= delta * 0.8
आप पूरा build, बिना edit किए, YouTube पर देख सकते हैं, और prompt व विवरण Pop Match! showcase पेज पर देख सकते हैं। Godot MCP Pro एक AI assistant को 190 editor और runtime tools देता है — scenes और scripts बनाना, गेम चलाना, keys दबाना, click करना, screenshots capture करना और errors पढ़ना — ताकि वह वही edit, run, look, fix loop चला सके जो आप हाथ से करते। यह उल्टी तरफ़ से भी काम करता है: इसे अपने ख़ुद के match-3 पर लगाएँ और special pieces जोड़ने या कोई cascade गड़बड़ क्यों कर रहा है, यह पता लगाने को कहें।
13. FAQ
क्या Godot 4 में match-3 बनाने के लिए मुझे sprites या tileset चाहिए?
नहीं। इस tutorial का गेम हर piece, board और HUD को _draw() में draw_colored_polygon, draw_circle और draw_style_box से बनाता है, इसलिए प्रोजेक्ट में कोई image asset नहीं है। इसकी जगह art इस्तेमाल करने के लिए draw_piece() की body को draw_texture call से बदल दें; grid logic नहीं बदलता।
हर piece के लिए एक node के बजाय _draw() वाला एक Node2D क्यों?
64 cells के साथ board को सादे arrays में रखने से swapping, match ढूँढना, gravity और hint search सरल array operations बन जाते हैं, जिनमें कोई node बनाना, free करना या reparent करना नहीं पड़ता। Animation बस हर cell का एक offset है जो हर frame शून्य की ओर घटता है, और queue_redraw() board को फिर से paint करता है।
Board को पहले से मौजूद matches के साथ शुरू होने से कैसे रोकूँ?
Grid को बाएँ से दाएँ और ऊपर से नीचे भरें, और जब तक कोई piece अपने बाईं ओर के दो cells या ऊपर के दो cells के साथ तीन की कतार बनाता हो, तब तक उसका type फिर से roll करें। फिर जाँचें कि कम से कम एक valid move मौजूद है, और अगर नहीं है तो board फिर से generate करें।
इस code को Godot का कौन-सा version चाहिए?
इसे Godot 4.6 पर GDScript 2.0 में लिखा और चलाया गया था। यह await, queue_redraw(), Vector2i और MOUSE_BUTTON_LEFT जैसे Godot 4 APIs पर निर्भर है, इसलिए बिना बदलाव के Godot 3 पर नहीं चलेगा।
AI से अपना Godot गेम बनवाएँ और उसका Play-Test करवाएँ
Godot MCP Pro, Claude Code, Cursor, Cline और अन्य AI assistants को 190 tools के साथ Godot 4 editor से जोड़ता है: scenes बनाना, scripts लिखना, गेम चलाना, input simulate करना और जो टूटे उसे ठीक करना।
create_script
play_scene
simulate_mouse_click
get_game_screenshot
get_editor_errors
एक बार की खरीद · Lifetime updates · pricing की पूरी जानकारी देखें