Go Nuts Competition Entry - Axonite

Started by iWasAdam, September 18, 2020, 07:36:12

Previous topic - Next topic

iWasAdam

#15
because I want the point data :)

which means I've now got paths for enemies to follow:


So for any enemy position it is a simple task of deciding the path and it's orientation.
just update the path position and the enemy moves - the code becomes uber simple:

draw(sprite, path, position)

iWasAdam

#16
@Derron's catmull rom spline   :-*

The problem there is you need to define the spline and the points, etc to make it work. then you need the math to make it work. Guess what I do?


Just draw a quick approximate path
paths.Load("asset::paths.mx2vector2d")
paths.ConvertToXY( 512 )
paths.SmoothXY( 6 )

the convert scales the result
the smooth add's the points (I need) and smooths as it goes

Even the smoothing code is simple:
add a new point at the center of a line
take three points and make the inside point the middle

any point on the curve is just _x[position], _y[position]

Well I thought it was a cool solution... :'(

Derron

The curve preview (on the left) overlaps its area (indicator of wrong dimensions reported?)


bye
Ron

blinkok


iWasAdam



Derron



iWasAdam


iWasAdam

Final in-game screen showing one of the UI's. This also shows the 3:4 orientation as well  :o


Steve Elliott

Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

iWasAdam

Thanks - today was not a good day  >:(

3d had to be captured and then transported via bitmap (DON'T ASK). so the 3d is now actually 2d!

But with all that said, here's the doors:


STEVIE G

Looks excellent! What was the issue with the 3d?

iWasAdam

Monkey2 vs apple - the ongoing (i'm going) saga

Buffers not being allocated correctly - with latest Catalina update...

chalky

Looks superb!  :)

Did you create the GUI component tiles yourself?