Тёмный

Making a Pong Game With AI 

majorgeeks
Подписаться 52 тыс.
Просмотров 638
50% 1

I wanted to demonstrate how simple it is to create a quick game using AI without needing any coding knowledge. All you require is access to an AI program, notepad, and a bit of creativity. It's incredibly easy. In this instance, I chose to create pong, as we all know it's the greatest game ever! I included some sounds and images just to illustrate how to incorporate these kinds of elements.
This is not a finished game by any means, just a demonstration of how anyone can do it. If you're interested in seeing what I did after the video to "finish" the game, check out this page
majorgeeks.com...
Also, checkout How To Code A Space Shooter Game with AI if you want more detail.
www.majorgeeks...
The sounds were plucked for pixabay.com/so... - royalty free.

Опубликовано:

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@markae0
@markae0 2 месяца назад
9:08 Drives at 40 MPH. That saves a lot on gas consumption. Look up fuel efficiency at driving over 45MPH if you don't believe me. The power to fight the wind/air resistance increases with the cube of the velocity, after 45.
@majorgeeks
@majorgeeks 2 месяца назад
Exactly - I'm not slow, I'm environmentally friendly!
@markae0
@markae0 2 месяца назад
@@majorgeeks LOL. Thanks for the video on "How to"!
@bittertruthnavin
@bittertruthnavin 2 месяца назад
Sweet
@akaCynicall
@akaCynicall 2 месяца назад
just subscribed bc you saved my dumbass (i deleted all the microsoft visualizers bc i thought they were the graphics driver since nvidia is blocking my amd and amd is bad at explaining)
@CrashPilot1000
@CrashPilot1000 2 месяца назад
Make the next Battlefield c:\Games1\Battlefield 7\ . Surprise me with a good game. GO.
@majorgeeks
@majorgeeks 2 месяца назад
LOL -- Accepted, but it might take a couple years. AI is in no way close to that. First, I'd need to find a decent team of artist that want to work for free for the foreseeable future. Then re-learn Unity and Csharp. At least 60 or 70 pots of coffee per week --- to start. I got the movement script down though. --- so that's a thing. But, maybe a top-down shooter is more realistic --------------- using UnityEngine; public class PlayerController : MonoBehaviour { public float speed = 5.0f; public float jumpForce = 5.0f; public Camera playerCamera; public float lookSpeed = 2.0f; private CharacterController characterController; private Vector3 moveDirection; private float verticalVelocity; void Start() { characterController = GetComponent(); } void Update() { // Player Movement float moveForward = Input.GetAxis("Vertical") * speed; float moveRight = Input.GetAxis("Horizontal") * speed; moveDirection = (transform.forward * moveForward) + (transform.right * moveRight); if (characterController.isGrounded) { verticalVelocity = -1; if (Input.GetButtonDown("Jump")) { verticalVelocity = jumpForce; } } else { verticalVelocity += Physics.gravity.y * Time.deltaTime; } moveDirection.y = verticalVelocity; characterController.Move(moveDirection * Time.deltaTime); // Player Look float mouseX = Input.GetAxis("Mouse X") * lookSpeed; float mouseY = Input.GetAxis("Mouse Y") * lookSpeed; transform.Rotate(0, mouseX, 0); playerCamera.transform.Rotate(-mouseY, 0, 0); } }
@CrashPilot1000
@CrashPilot1000 2 месяца назад
@@majorgeeks That is a start...
@theboss100
@theboss100 2 месяца назад
🖕 AI ‼‼
@majorgeeks
@majorgeeks 2 месяца назад
Yeah - I'm a bit on that side of the fence for a number of societal reasons. But, it's a tool that is not going away.. may as well get familiar with it.
Далее