Amons Pub Darts WIP

Started by Amon, January 05, 2023, 20:22:21

Previous topic - Next topic

Amon

I'm working on a Pub Darts Game. So far the scoring detection is in place. Lots to do. Below is a small gif.


Matty

I saw this this morning - looks neat.

I haven't played darts in years.

Very British pub game really.

Pakz

Are you going with the energy bar throw approach or/and maybe shaking?

The board looks nice. Maybe it could use a bit of texure?   :)

Amon

Thanks all. For the aiming it's going to be a very simple system. I just want people to have fun. I don't want to over simulate the aiming system. The dartboard will be revamped giving it a bit more life, yes.

Xerra

Set it in a virtual pub with some ragtime music and a few simple AI competitors to play against for a trophy or something. That will give the game a bit of atmosphere.
M2 Pro Mac mini - 16GB 512 SSD
ACER Nitro 5 15.6" Gaming Laptop - Intel® Core™ i7, RTX 3050, 1 TB SSD
Vic 20 - 3.5k 1mhz 6502

Latest game - https://xerra.itch.io/Gridrunner
Blog: http://xerra.co.uk
Itch.IO: https://xerra.itch.io/

blinkok

angle and distance. Very clever

Amon

Thank you. It seemed infinitely easier than splitting the sprite into sections and checking each for collisions.

Qube

Quote from: Amon. on January 09, 2023, 07:28:39
Thank you. It seemed infinitely easier than splitting the sprite into sections and checking each for collisions.
That's the exact method I used in my game comp entry ;D Much easier to use a little math for this kind of thing.
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Alienhead

Physics libs and collision libs have made us lazy! Glad to see some good ole' math routines used to check stuff these days. : )

Well one.

blinkok

Quote from: Amon. on January 09, 2023, 07:28:39
Thank you. It seemed infinitely easier than splitting the sprite into sections and checking each for collisions.
I think "seeing" the math is half the problem

Xerra

What is the maths? I can't work out how it's getting the correct numbers based on the numbers on screen.

Angles doesn't seem right to me, and how is distance used?
M2 Pro Mac mini - 16GB 512 SSD
ACER Nitro 5 15.6" Gaming Laptop - Intel® Core™ i7, RTX 3050, 1 TB SSD
Vic 20 - 3.5k 1mhz 6502

Latest game - https://xerra.itch.io/Gridrunner
Blog: http://xerra.co.uk
Itch.IO: https://xerra.itch.io/

blinkok

#11
Each "segment" of the pie lies in an 18 degree range (From the center of the pie). (360 / 20 segments = 18)
The distance from the center of the board determines the multiplier, zero (if it's beyond the scoring area) or the two bulls eyes

Amon