이 글은 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.