+-

+- Member Info

Welcome, Guest.
Please login or register.
 
 
 

Login with your social network

Forgot your password?

+- Recent Posts

Re: King rates songs by King (2.0)
7 minutes ago

Re: King rates songs by RKS
28 March 2024, 22:16:48

Re: King rates songs by Charlie
28 March 2024, 22:07:56

Re: King (2.0)'s Games Log by King (2.0)
28 March 2024, 16:42:10

Re: King rates songs by King (2.0)
27 March 2024, 22:21:16

Re: King rates songs by RKS
27 March 2024, 22:09:58

Re: King rates songs by Charlie
27 March 2024, 18:56:19

Re: King (2.0)'s Games Log by King (2.0)
27 March 2024, 15:28:01

Re: King rates songs by King (2.0)
27 March 2024, 15:02:39

Re: King rates songs by Charlie
26 March 2024, 13:49:53

Re: King 2.0's Well Thread by King (2.0)
26 March 2024, 12:37:12

Re: Kenseiten (planet #1632) by Charlie
26 March 2024, 11:40:28

Re: Kenseiten (planet #1632) by King (2.0)
26 March 2024, 11:25:14

Re: Kenseiten (planet #1632) by Charlie
25 March 2024, 21:46:23

Re: King 2.0's Well Thread by Charlie
25 March 2024, 15:16:23

Author Topic: Project K  (Read 647 times)

0 Members and 1 Guest are viewing this topic.

Offline AuroraDash

  • Lunar Tierce Knight
  • Heroic Member
  • ****
  • Posts: 293
  • Health: 1050
  • Gender: Male
  • Ascendant Yiffmonster
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: Project K
« on: 21 October 2021, 08:54:21 »
I've been implementing the mechanics behind spikes and various other death-zones.


There exist both generic spike objects that are always fatal and directional spike objects that are only fatal if touched with a non-positive velocity in the direction the spikes are facing.



I revamped the corner correction mechanic so that you cannot be corrected into spikes. I also made upwards corner correction more lenient -- previously, in contrast to other directions, upwards corner correction required one to be moving slowly upwards or not at all -- the vertical component of velocity needed to be between -1.5 and 0. Now, it just needs to be greater than -1.5, but with the added condition that one cannot be corner corrected upwards too soon after leaving the ground. The reason for this is that otherwise, it becomes possible to walk off a platform and then immediately walk back onto it which is kinda janky and uncomfortable.


I was worried that, even without explicitly being corner corrected, it would still be possible to get snapped onto a platform you shouldn't be if you just happened to be within the right 2-pixel margin above a block. However, taking a closer look at my code, I don't think that's mathematically possible unless one's vertical speed is slow anyway.


That caused a bizarre bug where you'd sometimes get stuck in the ground for no reason, but I fixed that as well.


There will need to be a third version of the autotiler specifically for handling spike tiles, but I haven't made that yet.
« Last Edit: 21 October 2021, 08:54:55 by AuroraDash »
Entryway / Moss Garden / Elevator / Magic School / Ice Prison / Splendid Tower / Technology Tower / Sky Platform / Hidden Attic / Genocide City

Poison's Lair / Shade Hollow / Backwoods / The Remnant / Underpath / Sorrow Peak / Energy Centre / Fire Hole / North Edge

 

Related Topics

  Subject / Started by Replies Last post
38 Replies
579 Views
Last post 30 May 2021, 12:19:05
by RKS