Commit graph

7093 commits

Author SHA1 Message Date
Sryder
379ef52c25 Correct no next waypoint warning message. 2019-06-09 20:37:47 +01:00
Sryder
e9786fa956 Waypoint pathfinding exists!
Includes some small refactoring of older functions - single return is a bit safer and easier to debug.
Still needs doing are: Finish Line Waypoint, Shortcut waypoints, disabled waypoints.
The actual A* method itself is a bit of a monster, but I can't figure out how to refactor it too much more.
2019-06-09 19:49:21 +01:00
Sryder
128d970bad Turn CONS_Printf to CONS_Alert in waypoint initialisation. 2019-06-09 19:37:24 +01:00
Sryder
773ddd98a8 Add function for freeing binary heap. 2019-06-09 19:36:36 +01:00
Sryder
b1fa5f6d34 Correct compiler issues. 2019-06-08 22:59:13 +01:00
Sryder
3a25bb38fe Add callback to heapitem to alert data when the heap index is changed.
Add K_BHeapContains to give an easy way to find if the heap contains data.
2019-06-08 22:55:02 +01:00
Sryder
31d76596c0 Binary Heap Implementation
Currently untested.
2019-06-08 21:46:23 +01:00
TehRealSalt
6f66ef20bf Merge branch 'master' into new-items 2019-06-03 19:09:46 -04:00
Sryder
c38be00196 Calculate euclidean distances between each waypoint on map load.
Change some Debug prints to Alert prints for easier debugging for mappers.
2019-06-02 21:44:07 +01:00
Sryder
622c2eac07 Merge branch 'master' of git@git.magicalgirl.moe:KartKrew/Kart.git into waypoints
# Conflicts:
#	src/k_kart.c
2019-06-02 18:15:30 +01:00
Sryder
96f92f8183 Merge branch 'master' of git@git.magicalgirl.moe:KartKrew/Kart.git into rings_slopechange
# Conflicts:
#	src/k_kart.c
2019-05-31 22:29:32 +01:00
TehRealSalt
24feb81671 Improve shadow code yet again by testing highest value of slopes
This makes it follow the sprites a bit better on slopes. Also split into a sub-function so that Banana doesn't need the duplicated code anymore.

The accuracy can be further improved on by doing the calculation 3 extra times for every surface, for each corner of the hitbox -- it wouldn't be THAT much more expensive, but it would only make subtle differences on sector boundaries that we usually zoom past anyway, so I figured it wasn't worth it. (It'll be easy enough to do so if we decide that we want the uber-accuracy)
2019-05-31 01:08:04 -04:00
TehRealSalt
f3f0b5edda Fix FOF shadows again 2019-05-30 03:07:31 -04:00
TehRealSalt
9a24f65cb8 Merge branch 'master' into model-gradients 2019-05-30 02:00:06 -04:00
Sal
2ce77fdce9 Merge branch 'rings' into 'master'
Rings

See merge request KartKrew/Kart!128
2019-05-30 01:58:34 -04:00
TehRealSalt
3967a5d409 Reduce angle offset back down again 2019-05-30 01:46:25 -04:00
TehRealSalt
ccdcb1dbd4 Minor change 2019-05-29 23:31:33 -04:00
TehRealSalt
dfe197b380 Double ring rotate speed, base it off current angle, slightly offset it 2019-05-29 23:21:58 -04:00
TehRealSalt
8ca96168b9 enable patch file 2019-05-29 23:19:52 -04:00
TehRealSalt
cba86ee6ea Unused i 2019-05-29 22:55:59 -04:00
TehRealSalt
d7374d33d6 missed a parathesis 2019-05-29 22:53:31 -04:00
TehRealSalt
4e24831e33 Reduce kartspeed increase to draftpower 2019-05-29 22:38:08 -04:00
TehRealSalt
4f13f8b98e Change version num to v2, disable 1.0.x demo compatiblity 2019-05-29 22:29:06 -04:00
TehRealSalt
31534fe96b Merge branch 'master' into versus-record 2019-05-29 22:23:17 -04:00
TehRealSalt
189c2d06fd Merge branch 'rings' into new-items 2019-05-29 22:17:51 -04:00
TehRealSalt
e8edfb03fb Merge branch 'master' into rings 2019-05-29 22:15:05 -04:00
TehRealSalt
f0ff7e7b05 Merge branch 'master' into model-gradients 2019-05-29 22:10:45 -04:00
TehRealSalt
0bfe8249d4 Fix Garden having a few steel blues from improper conversion
This has been bothering me for a while
2019-05-29 21:53:21 -04:00
TehRealSalt
792b41c406 Merge branch 'v1' into master 2019-05-29 21:50:14 -04:00
wolfs
ab88884351 Merge branch 'v1-errors' into 'master'
V1 errors

See merge request KartKrew/Kart-Public!140
2019-05-28 22:13:19 -04:00
James R
2b79547512 Fix XCode compiler errors
I'm faily certain this also fixes broken logic (g_game.c).
2019-05-28 19:04:27 -07:00
James R
88ba895d18 Fix GCC 8 Travis error 2019-05-28 19:00:24 -07:00
James R
d8967112c6 Fix compiler errors
The truncation handling in this one spot is okay, but the compiler isn't smart
enough for it. I'm leaving it as a warning because I'd like to make a dedicated
function for handling snprintf truncation in the future.
2019-05-28 15:11:37 -07:00
James R
9ec9c639dd Revert "Revert "Fix Post Processing in 64-bit Software 3P/4P""
This reverts commit 392f357b1a.
2019-05-28 15:09:29 -07:00
James R
c0e7c17cce Merge remote-tracking branch 'origin/v1' into v1 2019-05-28 14:24:52 -07:00
TehRealSalt
c6a0a41d1a Model tilts
- Add modeltilt variable, for more manual control of the model tilting. By default this just copies standingslope, but doesn't get cleared in the air.
- Shadows & trailing bananas now tilt to match the ground they are on.
- Rocket Sneakers & afterimages now tilt to match the player's current orientation.
2019-05-28 17:21:22 -04:00
TehRealSalt
cedbed20b3 Draft speed increases with kartspeed 2019-05-28 12:48:54 -04:00
wolfs
6b568e4f43 Merge branch 'v1-lua-stuff' into 'v1'
V1 lua stuff

See merge request KartKrew/Kart!155
2019-05-28 07:59:45 -04:00
wolfy852
1a038ad463 Don't guard the return 2019-05-28 06:56:35 -05:00
wolfy852
96b5a1df43 Update patch.kart hash
THIS SHOULD BE THE LAST TIME I SWEAR
2019-05-28 06:33:38 -05:00
wolfs
4acec35221 Merge branch 'fix-postprocessing' into 'v1'
Fix Post Processing in 64-bit Software 3P/4P

See merge request KartKrew/Kart!156
2019-05-28 06:35:33 -04:00
Sryder
01a0fb1c8f Fix Heatwave Post-processing Effect in 3P/4P 2019-05-27 22:59:58 +01:00
James R
392f357b1a Revert "Fix Post Processing in 64-bit Software 3P/4P"
This reverts commit 1a9b21c195.
2019-05-27 14:20:12 -07:00
James R
88d5e9b7d2 wip 2019-05-27 14:20:07 -07:00
Sryder
1a9b21c195 Fix Post Processing in 64-bit Software 3P/4P
Vid_BlitLinearScreen didn't make sure that it was actually meant to be copying the entire screen rows before doing it properly.
2019-05-27 22:03:17 +01:00
TehRealSalt
127935edc2 New papersprite sparkle effect 2019-05-27 00:03:02 -04:00
TehRealSalt
c90bdc1c37 Longer flash period, but quicker deflate 2019-05-26 21:54:35 -04:00
TehRealSalt
068db36368 Bubble blowup has a brief mercy period before it shoots 2019-05-26 21:14:26 -04:00
wolfs
93a91e222d Merge branch 'spinout-angle' into 'v1'
Spinout angle change when boosting

See merge request KartKrew/Kart!153
2019-05-26 20:10:56 -04:00
wolfs
7420795f1f Merge branch 'fix-brakes' into 'v1'
Make brakes stronger

See merge request KartKrew/Kart!154
2019-05-26 20:10:46 -04:00