Dear visitors and members, with the staff having moved on to other life interests and as a result of changes in people's internet usage habits, the CodeWalrus community have migrated almost entirely to Discord, IRC and WalrusIRC and is now essentially a place where to hang out, chat about gaming, programming, music, anime, and chill. As a result, even though the CW forums will remain open for posting, for faster TI, Casio or HP calculator help and news we recommend using the bilingual TI-Planet forums instead.

We encourage everyone to join our Discord server now.

* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: Gateway to Legend  (Read 4739 times)

0 Members and 1 Guest are viewing this topic.

Offline 123outerme

  • Super User
  • Join Date: Jan 2015
  • Location: In spaaace! Well, the Earth is anyhow.
  • Posts: 687
  • Post Rating Ratio: +6/-0
  • Professional Unpaid Intern
    • 123outerme
    • 113/11355
  • Gender: Male
Re: Gateway to Legend
« Reply #15 on: January 14, 2018, 03:49:03 am »


I have successfully implemented my own home-grown (yet not really unique) pathfinding algorithm! Enemies 1 and 3, or the bird and the stone giant. The 2nd enemy, the specter, can walk through collision. They (mostly) take the shortest path to the player from their starting position, and do it pretty fast too! With 2 enemies utilizing the routine, and a 3rd one moving without it, I get an uncapped FPS of about 450, which I find very impressive.The algorithm I used was just a flash-fill that takes data from the eventmap and plots a path through without colliding with walls, although I may extend that to not collide with other things such as portals, spikes, etc.

I'm really proud of it, as in 8 hours I went from not knowing anything about pathfinding to implementing my own into my game. I'm glad I could get it to work and the euphoria after realizing it worked was gold.
  • Calculators owned: TI-84+CSE, TI-nspire Clickpad, TI-84+SE

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games