π§ Level 3: The Creation Engine β Powering Up the Factory (Solidity Quest)
μ΄ κΈμ Solidityλ₯Ό νμ©νμ¬ μ’λΉ μμ± κΈ°λ₯μ ꡬννλ λ°©λ²μ μ€λͺ ν©λλ€.
μ΄ κΈμμλ Level 2μμ ꡬμΆν μ μ₯μλ₯Ό λ°νμΌλ‘ μ’λΉ μμ± λ²νΌ(ν¨μ)μ ꡬννλ λ°©λ²μ μκ°ν©λλ€. Solidityμμ '_createZombie' ν¨μλ₯Ό μ μνκ³ , μ΄λ¦κ³Ό DNA μ½λλ₯Ό μ λ ₯ λ°μ μλ‘μ΄ μ’λΉλ₯Ό μμ±νλ κ³Όμ μ λ€λ£Ήλλ€. λν, μμ±λ λ°μ΄ν°λ₯Ό λ°°μ΄μ μ μ₯νλ λ°©λ²λ μ€λͺ νλ©°, μ΄λ‘μ¨ κ²μμ μμ§μμ λ§λ€μ΄λ΄λ κΈ°λ°μ λ§λ ¨ν©λλ€.
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.