JoyStick Movement

game blog w13-2

 

Summary 

 Centent ใน week ที่ 13-2 มีดังนี้ 
 - Unity multiplayer tutorial  
 - Mobile input joystick movement

Unity multiplayer tutorial 

Netcode คืออะไร เป็น Package ที่มีไว้สำหรับการสร้างเกมแบบ multiplayer ผ่าน network ที่สร้างมาสำหรับ Unity อ่านเพิ่มเติม About Netcode for GameObjects

เพิ่ม Netcode ใน project manager


เพิ่ม NetworkManager เข้าไปใน Hierarchy และเพิ่ม component Network Manager เข้าไป



เปลี่ยน Protocol Type เป็น unity Transport


เพิ่ม Network Object ให้กับตัว Pacman และ เพิ่ม prefab paceman เข้าไปใน Networkmanager

สำหรับการทดสอบระบบ multiplayer นั้นเราจำเป็นที่จะต้องเปิด Server หนึ่งหน้าจอ และอีกจอเป็น Client ที่จะ join เข้ามา เราจึงทดลองสร้าง NetworkCommandLine เพื่อให้ทดลองการเปิด Server Host Client ผ่านการพิมพ์คำสั่งบน command line ไว้สำหรับทดลอง spawn prefab ใน map



ทดลองเขียน command line เพื่อเปิด server และ client

ผลลัพธ์ที่ได้

Mobile joystick movement 

สามารถอ่าน blog joystick ได้ในอีกส่วนที่ทางเรากลุ่ม 1 ได้จัดทำไว้ที่ Joystick Movement


ปัญหาที่ผมเจอ : ตอนนี้ สามารถให้ผูเล่นเปิด host และ client ได้แล้วแต่ว่า ผู้เล่นทั้งคู่ใน map เวลาขยับนั้นยังไม่ตรงกัน เช่น player1 ขยับไปซ้ายแล้ว แต่ในหน้าจอ player2 ยังเห็น player1 อยู่เฉยๆ








game blog w13-1

Summary 

 Centent ใน week ที่ 13-1 มีดังนี้ 
 - วิธีการติดตั้งและใช้งาน Plastic SCM
 - พื้นฐานของการทำ Animated Sprite

Plastic SCM

Plastic SCM คือ Version Control System อันนึง มีไว้สำหรับบันทึกเวอร์ชั่นต่าง ๆ ของการพัฒนาแอพลิเคชันของเรา เสมือนเป็น back up เพื่อให้เราสามารถย้อนเวอร์ชันไปเวอร์ชันเก่า ๆ ได้ นอกจากนี้ยังสามารถนำมาใช้สำหรับการพัฒนาเกมแบบเป็นทีมได้ เพราะสามารถที่จะ commit code หรือสิ่งเราทำไปให้คนในทีมได้ง่ายขึ้น
โดย Plastic SCM นั้นเป็น Version Control System ที่มีมาให้แล้วใน Unity Editor เราจึงเลือกใช้ Plastic SCM สามารถอ่านเพิ่มเติมได้ที่นี่


จากนั้นก็ทำการ Login or sign up และเมื่อ login เสร็จก็ให้ทการ create workspace



Commit โปรเจ็คของเราเข้าไปที่ PlasticSCM

เราสามารถเพิ่มคนที่จะทำงานร่วมกันกับโปรเจ็คของเราได้


พื้นฐานการทำ Animated Sprite และ Movement เบื้องต้น

ใน Object Pacman เพิ่ม Component Animated Sprite ที่จำเปลี่ยน animated ด้วยการเปลี่ยน sprite renderer ให้ขยับปาก

สร้าง attribute Sprite เก็บ ที่ใช้เก็บ sprite ที่เราต้องการให้ loop ทำ animated โดยเราจะกดหนดให้ index เป็น 4 เพื่อเก็บ element 4ตัวของ sprite pacman เอามา loop




สร้าง method ที่เมื่อมีการเรียกใช้  จะทำการ เปลี่ยน spriteRenderer เป็น sprite element index ที่
(AnimationFrame) โดยเพิ่มจาก 0 ++ ไปจนถึง 4 และ reset เป็น 0




ผลลัพน์ที่ได้ก็คือ :

















Twilight Resurgence Privacy policy

Privacy Policy

Mercuone built the Twilight Resurgence : The Castle app as a Free app. This SERVICE is provided by Mercuone at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at Twilight Resurgence : The Castle unless otherwise defined in this Privacy Policy.

Information Collection and Use

For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information, including but not limited to Athibdee , mercuryze145@gmail.com. The information that I request will be retained on your device and is not collected by me in any way.

The app does use third-party services that may collect information used to identify you.

Link to the privacy policy of third-party service providers used by the app

Log Data

I want to inform you that whenever you use my Service, in a case of an error in the app I collect data and information (through third-party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing my Service, the time and date of your use of the Service, and other statistics.

Cookies

Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device's internal memory.

This Service does not use these “cookies” explicitly. However, the app may use third-party code and libraries that use “cookies” to collect information and improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service.

Service Providers

I may employ third-party companies and individuals due to the following reasons:

  • To facilitate our Service;
  • To provide the Service on our behalf;
  • To perform Service-related services; or
  • To assist us in analyzing how our Service is used.

I want to inform users of this Service that these third parties have access to their Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.

Security

I value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and I cannot guarantee its absolute security.

Links to Other Sites

This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by me. Therefore, I strongly advise you to review the Privacy Policy of these websites. I have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.

Children’s Privacy

These Services do not address anyone under the age of 13. I do not knowingly collect personally identifiable information from children under 13 years of age. In the case I discover that a child under 13 has provided me with personal information, I immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact me so that I will be able to do the necessary actions.

Changes to This Privacy Policy

I may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. I will notify you of any changes by posting the new Privacy Policy on this page.

This policy is effective as of 2023-03-19

Contact Us

If you have any questions or suggestions about my Privacy Policy, do not hesitate to contact me at mercuryze145@gmail.com.

This privacy policy page was created at privacypolicytemplate.net and modified/generated by App Privacy Policy Generator

Deploy Game to App Store

 เข้ามาที่ Developer Apple

https://developer.apple.com/


กดไปที่ Enroll today

เมื่อกรอกเสร็จแล้วจะไปที่หน้าจ่ายตัง 3590 Baht มีระยะเวลา 1 ปี เนื่องจากเราไม่มีงบพอที่จะจ่าย 3590 บาทได้จึงเปลี่ยนแค่ไป Deploy ใน Android แทน






game blog w16-1

  Summary   Centent ใน week ที่ 16-1 มีดังนี้   - Human player turn to ghost when died    - Ghost bot (path finding with project A*)   Human...