Unity3d learning diary C# script writing optimization and full-automatic enemy script implementation

requirement analysis Scripts need to be written to control the enemy's behavior, including patrol, shooting, pursuit and escape Solution ideas Considering that the behavior of the robot is affected by a decision tree, a finite state automata is written to form a decision tree, and the behavior of the robot is limited and controlled by condit ...

Posted by jamesl on Tue, 30 Nov 2021 07:14:21 +0100

You can't beat others in Gobang? Then use this to practice. The production is very simple.

  preface   Chinese people talk about "Qin, chess, calligraphy and painting". It can be seen that playing chess, which requires wisdom, is very important in the daily life of the ancients. When it comes to chess, we are familiar with go, chess, military flag, checkers and so on. Of course, there is Gobang. Today's focus ...

Posted by chooseodie on Mon, 29 Nov 2021 07:38:02 +0100

A line of Java code to exchange equipment in the game

Absrtact: since JDK 1.5, the exchange class provided under the JUC package can be used to exchange information between two threads. This article is shared from Huawei cloud community< One line of Java code enables two players to exchange equipment [concurrent programming] >, author: JavaLib of Chen PI. 1 what is exchange Since JDK 1.5 ...

Posted by Niccaman on Fri, 19 Nov 2021 06:26:23 +0100

Make a plane war game with python

There are many kinds of aircraft wars, but those are not familiar enough. Today, let's have a wechat aircraft war of the same type. 1, Software and modules used 1. Software Python pycharm 2. Module pygame sys os random Import module import pygame import sys import os import random Path address of material file source_dir = os.path.join ...

Posted by asdf on Wed, 17 Nov 2021 15:06:20 +0100

[game development] TimelinePlayable customization_ Bullet screen game essay

When making the barrage game, Playable's customized TimeLine is used. Bear's last full understanding note: https://blog.csdn.net/qq_34013247/article/details/120472131 This tutorial is a supplement to the previous one (thank you for your private letter, let's become better together 💪). Get PlayableDirector component: We talked about the ...

Posted by Runilo on Thu, 28 Oct 2021 16:17:27 +0200

Make a simple python game with pygame --- life game

Make a simple python game with pygame - life game Game of Life Game of life is a computer program designed by Professor John Horton Conway of Cambridge University. This computer program is named "life game" because the images it simulates and displays look like the birth and reproduction process of life. At the same time, life game ...

Posted by jaylee on Mon, 11 Oct 2021 21:23:16 +0200

Implementation of Unity3D TriPlanar three plane mapping Shader

TriPlanar is a texture mapping technology without uv. There seems to be no standard translation in China. It is temporarily called TriPlanar mapping. So why doesn't the model have uv.. This is very simple. Some may be that the simple modeler forgot to do it, such as you go online and offline. However, the most important use of TriPlanar is rela ...

Posted by Paulus Magnus on Tue, 05 Oct 2021 04:58:15 +0200