BACKENDΒ·μ€‘μš”λ„ 6Β·2026. 05. 17.Β·Dev.to

🧟 Level 3: The Creation Engine β€” Powering Up the Factory (Solidity Quest)

── KO ──────────────────

이 글은 Solidityλ₯Ό ν™œμš©ν•˜μ—¬ μ’€λΉ„ 생성 κΈ°λŠ₯을 κ΅¬ν˜„ν•˜λŠ” 방법을 μ„€λͺ…ν•©λ‹ˆλ‹€.

이 κΈ€μ—μ„œλŠ” Level 2μ—μ„œ κ΅¬μΆ•ν•œ μ €μž₯μ†Œλ₯Ό λ°”νƒ•μœΌλ‘œ μ’€λΉ„ 생성 λ²„νŠΌ(ν•¨μˆ˜)을 κ΅¬ν˜„ν•˜λŠ” 방법을 μ†Œκ°œν•©λ‹ˆλ‹€. Solidityμ—μ„œ '_createZombie' ν•¨μˆ˜λ₯Ό μ •μ˜ν•˜κ³ , 이름과 DNA μ½”λ“œλ₯Ό μž…λ ₯ λ°›μ•„ μƒˆλ‘œμš΄ μ’€λΉ„λ₯Ό μƒμ„±ν•˜λŠ” 과정을 λ‹€λ£Ήλ‹ˆλ‹€. λ˜ν•œ, μƒμ„±λœ 데이터λ₯Ό 배열에 μ €μž₯ν•˜λŠ” 방법도 μ„€λͺ…ν•˜λ©°, 이둜써 κ²Œμž„μ˜ μ›€μ§μž„μ„ λ§Œλ“€μ–΄λ‚΄λŠ” κΈ°λ°˜μ„ λ§ˆλ ¨ν•©λ‹ˆλ‹€.


── EN ──────────────────

This article explains how to implement a zombie creation function using Solidity.

The article introduces the implementation of a creation button (function) for zombies based on the storage built in Level 2. It defines the '_createZombie' function in Solidity, which takes a name and DNA code as inputs to create a new zombie. Additionally, it covers how to store the created data in an array, laying the foundation for game dynamics.

원문 보기 β†’λͺ©λ‘μœΌλ‘œ