Ooops
September 17, 2021, 04:18:57

Author Topic: Go Nuts Competition Entry - Axonite  (Read 5302 times)

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2440
Re: Go Nuts Competition Entry - Axonite
« Reply #15 on: September 21, 2020, 08:12:45 »
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)
« Last Edit: September 21, 2020, 08:33:02 by iWasAdam »

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2440
Re: Go Nuts Competition Entry - Axonite
« Reply #16 on: September 21, 2020, 08:49:06 »
@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
Code: [Select]
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... :'(
« Last Edit: September 21, 2020, 08:52:32 by iWasAdam »

Offline Derron

  • Hero Member
  • *****
  • Posts: 3651
Re: Go Nuts Competition Entry - Axonite
« Reply #17 on: September 21, 2020, 08:52:54 »
The curve preview (on the left) overlaps its area (indicator of wrong dimensions reported?)


bye
Ron

Offline blinkok

  • Sr. Member
  • ****
  • Posts: 375
Re: Go Nuts Competition Entry - Axonite
« Reply #18 on: September 21, 2020, 09:58:38 »
What proggy is that?

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2440
Re: Go Nuts Competition Entry - Axonite
« Reply #19 on: September 21, 2020, 10:45:48 »
custom one I wrote for my editor

Offline blinkok

  • Sr. Member
  • ****
  • Posts: 375
« Last Edit: September 23, 2020, 21:27:06 by blinkok »

Offline Derron

  • Hero Member
  • *****
  • Posts: 3651
Re: Go Nuts Competition Entry - Axonite
« Reply #21 on: September 21, 2020, 11:57:27 »
Like the "mother bug" :)


bye
Ron

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2440
Re: Go Nuts Competition Entry - Axonite
« Reply #22 on: September 21, 2020, 12:09:22 »
nice :)

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2440
Re: Go Nuts Competition Entry - Axonite
« Reply #23 on: September 22, 2020, 08:57:57 »
well today is all about UI's...

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2440
Re: Go Nuts Competition Entry - Axonite
« Reply #24 on: September 22, 2020, 12:55:26 »
Final in-game screen showing one of the UI's. This also shows the 3:4 orientation as well  :o


Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 3224
  • elgol
Re: Go Nuts Competition Entry - Axonite
« Reply #25 on: September 22, 2020, 13:37:02 »
Looks very sleek.  8)
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 3, pi 4, pi 400, BBC B, C64, ZX Spectrum

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2440
Re: Go Nuts Competition Entry - Axonite
« Reply #26 on: September 23, 2020, 12:24:58 »
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:


Offline STEVIE G

  • Hero Member
  • *****
  • Posts: 604
Re: Go Nuts Competition Entry - Axonite
« Reply #27 on: September 23, 2020, 12:36:28 »
Looks excellent! What was the issue with the 3d?

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2440
Re: Go Nuts Competition Entry - Axonite
« Reply #28 on: September 23, 2020, 13:41:16 »
Monkey2 vs apple - the ongoing (i’m going) saga

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

Offline chalky

  • Jr. Member
  • **
  • Posts: 87
Re: Go Nuts Competition Entry - Axonite
« Reply #29 on: September 23, 2020, 18:22:25 »
Looks superb!  :)

Did you create the GUI component tiles yourself?

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal