March 05, 2021, 08:12:36 PM

Author Topic: start your engines  (Read 2075 times)

Online Dabz

Re: start your engines
« Reply #15 on: January 31, 2021, 03:16:16 PM »
I'm actually looking forward to having a go of this when its eventually done! :)

Dabz
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 16Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit

Offline blinkok

Re: start your engines
« Reply #16 on: January 31, 2021, 07:55:26 PM »

Offline STEVIE G

Re: start your engines
« Reply #17 on: February 01, 2021, 07:21:16 AM »
I remember reading that Sprint 2 used a vector flow diagram for AI pathfinding, rather than waypoints. Link below.

https://hackaday.com/2016/04/28/forty-year-old-arcade-game-reveals-secrets-of-robot-path-planning/

Offline RemiD

Re: start your engines
« Reply #18 on: February 01, 2021, 09:16:41 AM »
I tried to create a racing game in the past, and for the AI, i cheated : i used waypoints recorded when the player drives (previous laps). it was convincing enough...
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

Offline Matty

Re: start your engines
« Reply #19 on: February 01, 2021, 09:26:15 AM »
That's good RemiD.

Ai only needs to fool the player it can play the game.  It doesn't actually need to be intelligent.
I eat cheese in the trees when its eight degrees

Offline blinkok

Re: start your engines
« Reply #20 on: February 01, 2021, 09:32:18 AM »
Quote
I remember reading that Sprint 2 used a vector flow diagram for AI pathfinding, rather than waypoints
That's amazing. Is that what you use?

Online iWasAdam

Re: start your engines
« Reply #21 on: February 01, 2021, 10:46:18 AM »
Quote
Ai only needs to fool the player it can play the game.  It doesn't actually need to be intelligent.
Excellent statement ;)

In design and mechanics you have "it is irrelevant 'how' you did it, just that you did it"
Elegance, speed, optimisations can be added later...

Online Steve Elliott

Re: start your engines
« Reply #22 on: February 01, 2021, 10:59:43 AM »
Quote
I remember reading that Sprint 2 used a vector flow diagram for AI pathfinding, rather than waypoints. Link below.

Thanks, I'll check it out.

Quote
Ai only needs to fool the player it can play the game.  It doesn't actually need to be intelligent.

Yep, very true.  Over engineering your code to cover every scenario is going to be slower and more complicated than it needs to be - just make it simple and efficient for this particular game.

Windows 10 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
MacOS Big Sur 64-bit, 8Gb RAM, Intel i5 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB
Linux Mint 19.3 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
Raspberry Pi 400, Pi4, BBC B, C64, ZX Spectrum

Offline STEVIE G

Re: start your engines
« Reply #23 on: February 01, 2021, 11:08:33 AM »
Quote
I remember reading that Sprint 2 used a vector flow diagram for AI pathfinding, rather than waypoints
That's amazing. Is that what you use?

Van Tourisimo has an automatic way point system, no manual placement, with speeds calculated based on bends previous and future to the section your in. It also calculated multiple racelines offset from the optimum for variety. The cars could swap between race lines at any point. Polymaniacs used pre calculated vector flow hybrid system with all sorts of weighting for obstacle avoidance.

I agree though - whatever gets the job done is best.

Online iWasAdam

Re: start your engines
« Reply #24 on: February 02, 2021, 11:27:05 AM »
the vector cloud concept is a simple way to get great results - no collision, but it's the fun factor you are wanting ;)

been tweaking (twerking?) and slightly expanded the play area, so I could have crash borders. Also been sorting out collision and avoidance systems, plus secondary waypoints:


AI cars will now try their best to navigate around each other, avoid oil, crash.

Green and grey cars crashed!

Online iWasAdam

Re: start your engines
« Reply #25 on: February 02, 2021, 12:53:02 PM »
hmmm, where next?

Online iWasAdam

Re: start your engines
« Reply #26 on: February 04, 2021, 08:30:48 AM »
Now with classic mode:


Lowered the speed of the AI cars and increased your speed, and suddenly it's got the "flap me sideways' feel. 'Must have another go and beat the shit out of it'

Online iWasAdam

Re: start your engines
« Reply #27 on: February 04, 2021, 11:54:47 AM »
and some nice pixels...

Online iWasAdam

Re: start your engines
« Reply #28 on: February 05, 2021, 07:51:32 AM »
and for something slightly different:


This is the 2600 version.
Chunkier graphics, different gameplay, etc. Cars can go over the edges and reappear on the other side. But still the basic racing game.

Suddenly you can appreciate the skill of the original programmers with 1k of memory, no high level compilers, or resources, etc.  8)



Offline Xerra

Re: start your engines
« Reply #29 on: February 05, 2021, 12:51:08 PM »
You should try doing some of this stuff with TRSE, Adam. Use some conditional compiling triggers and you could be putting these kind of games out on loads of different retro machines, not just the usual OSX/Win/Linux.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal