UE4做一个C++小游戏(3D吃豆人)
记录自己的第一个UE4小游戏
如果只需要源码可以到这里拿
https://github.com/jason-cuc/UE4-C-PacMan
如果需要工程可以加我QQ1562003673
- 用画刷自己做一个地图
- 创建豆子类继承于Actor
Collectables.h
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Components/SphereComponent.h"
#include "Collectables.generated.h"
UCLASS()
class MYPACMANCOPY_API ACollectables : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
ACollectables();
UPROPERTY(VisibleAnyWhere,Category