[A game based on unity] "ZERO: Tianyuan"

Introduction

"Introduction to Computing and Artificial Intelligence" final assignment project
Project name "ZERO: Tianyuan"
Type: Game

image

Produced by Mi Huyou James Clerk Maxwell's Equations Studio

image

Background of the story:
Tang Keke, a graduate student of Fran University, woke up from the dormitory one day and found that he had overslept, but the whole building was dead silent. At this time, a phone call came...

Tang Keke is a graduate student at Fran University, specializing in bioinformatics. He is currently in charge of artificial intelligence and pattern recognition in his tutor's laboratory. Of course, because the tutor's topic is a confidential project, there are few participants. Natural language processing is done by him alone, and
he often jokes that he is the best computer learner in the virology research group of Fran University.
The tutor's project cooperates with the school's supercomputing center, so that he can also enter the fortified center and see the most advanced supercomputer "Tianhe" at that time. Of course, he also has the opportunity to approach the top computer based on powerful computing
power Artificial intelligence - "Tianyuan (ZERO)".

image

Fran University: A comprehensive university in Xingsha City, covering everything from archaeology to biology, as well as the strongest supercomputing center in the country, and the famous "Tianhe".
Of course, what is more interesting is the artificial intelligence named "Tianyuan". There are rumors that "Tianyuan" performed "very well" in the Turing test.
After defeating the famous artificial intelligence AlphaGO, "Tianyuan" pronounced the death sentence of deep learning, turning everyone's attention from convolutional neural network alchemy to the intersection of life sciences and artificial intelligence.
In the 21st century, the era of life sciences has arrived.

The Department of Archeology transferred the newly discovered Ordovician fossils to the Supercomputing Center, hoping that gene sequencing can analyze the virus "Ordovician" found in it.
Of course, this is a public statement.
It is also said that there is a maze-like complex and huge biological laboratory underground in the supercomputing center,
and the "ancestral virus" Ortapis is the deepest secret of this underground base.
Later, this person was detained for ten days for spreading rumors.

"'Ancestor' is a very rare virus. It is unbelievable. It seems to be a creation of nature. It is exquisite. It has an effect beyond known science in the reverse engineering of cell division. It is like a miracle. Maybe it is God's gift to mankind. The gift.”
——The famous American biologist Wesker praised it in "Nature".
It is said that every research on "Ordopis" can be easily published in "N" & "S",
so for a while domestic and foreign biochemical and environmental materials scholars flocked to the University of Flanders, hoping to obtain fossil samples.
But soon, the research on fossils was listed as a top-secret project, and the samples were also transferred to the equally prestigious supercomputing center.

Gameplay: Manipulate characters to move on the map and explore the secrets hidden under the seemingly peaceful campus.

image
image
image

Function realization: unity game engine, python, AE, PR, Ubuntu
Core gameplay: text decryption, plot exploration
Auxiliary gameplay: pygame is used as the decryption of the protagonist when he breaks through the underground world, replacing boring password puzzles in the form of games.
Project address:
Algernon98/pygame-in-HNU: python project in HuNan University (github.com)
Image processing: The image material is pixelated using python code. As a map material, it has been packaged and can directly call the program.
Face recognition: openCV is a face recognition resource library. The code can call the camera to recognize faces in the Linux environment. It can be embedded in the game and used as the entry verification of the "Tianyuan" boss room, which can increase the sense of immersion.

image

Decryption function: Using the MINST data set, according to the background of the story, the protagonist who is a hacker can crack the system access control of the underground base.
We choose handwritten digit recognition in well-known machine learning data sets such as IRIS iris data set and Boston housing price data set.
With its deep learning title of "Hello World", it echoes the dual meaning of "Tian Yuan" philosophy and chess.

image

For details, see the blog:
[Python Machine Learning Basic Tutorial] (3)
image

the code

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class playercontroller : MonoBehaviour
{
    
    

    public Rigidbody2D rb;
    public float speed ;
    public float jumpforce;
    public Animator anim;
    public LayerMask ground;
    public Collider2D coll;

    // Start is called before the first frame update
    void Start()
    {
    
    
        
    }

    // Update is called once per frame
    void Update()
    {
    
    
        Movement();
        SwitchAnim();
    }

    void Movement()
    {
    
    
        float horizontalmove;
        horizontalmove=Input.GetAxis("Horizontal");
        float facedirction=Input.GetAxisRaw("Horizontal");
        if (horizontalmove !=0)
        {
    
    
            rb.velocity = new Vector2(horizontalmove*speed,rb.velocity.y);
            anim.SetFloat("running",Mathf.Abs(facedirction));
        }
        if (facedirction !=0)
        {
    
    
            transform.localScale=new Vector3(facedirction,1,1);
        }

        if(Input.GetButtonDown("Jump"))
        {
    
    
            rb.velocity=new Vector2(rb.velocity.x,jumpforce);
            anim.SetBool("jumping",true);
        }

    }

    void SwitchAnim()
    {
    
    
        anim.SetBool("idle",false);
        if(anim.GetBool("jumping"))
        {
    
    
            if(rb.velocity.y<0)
            {
    
    
                anim.SetBool("jumping",false);
                anim.SetBool("falling",true);
            }
        }else if(coll.IsTouchingLayers(ground))
        {
    
    
            anim.SetBool("falling",false);
            anim.SetBool("idle",true);
        }
    }
}

Drama PV

https://www.bilibili.com/video/BV1jB4y1X7za/?spm_id_from=333.999.0.0&vd_source=11bfc591eb1189ab7412b09ee29e1dcd
Hunan University's big assignment "ZERO: Tianyuan" plot PV

Real machine demonstration

https://www.bilibili.com/video/BV1uv4y1w7Vr/?spm_id_from=333.999.0.0&vd_source=11bfc591eb1189ab7412b09ee29e1dcd
Hunan University final assignment "ZERO: Tianyuan" demo real machine demonstration

Guess you like

Origin blog.csdn.net/Algernon98/article/details/127568580