DDA瞎g2写的,对不对也不知道,Bresenham是老师的代码from PIL import Image
import random
import time
def DDA(img,x0,y0,x1,y1,color):
dx=x1-x0
dy=y1-y0
if x0!=x1:
m=dy/dx
if x1==x0:
for...
10月1日npc对话参考https://blog.csdn.net/weixin_43673589/article/details/106559650对象层级将Canvas设为世界空间以绑定在npc身上给npc添加脚本using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Uni...
爱心型血条准备一张红色爱心及灰色爱心的图片给hearts添加布局hg为灰色爱心,hr为红色爱心为hearts添加代码hearts.csusing System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class hearts : MonoBeh...