TheAfroOfDoom / omega-flowey-minecraft-remastered

MIT License
3 stars 1 forks source link

✨ πŸ‘» add `soul-event-5` (gun) mvp #133

Closed TheAfroOfDoom closed 2 months ago

TheAfroOfDoom commented 2 months ago

Summary

This PR adds the sixth soul event (soul-event-5).

The majority of the soul event infrastructure that all soul events will use was done in https://github.com/TheAfroOfDoom/omega-flowey-minecraft-remastered/pull/86. See that for more details.

For this soul event, a gun spawns in the center of the arena. Three crosshairs generate at random angles in a radius around the player, then the gun rotates towards each crosshair and shoots a bullet at it, in the order the crosshairs appeared.

For the 24th crosshair, the gun shoots an ACT button instead of a bullet. The player can grab this to activate the SAVED state / "call for help".

Future work


Notable commit(s)

2639c38 (#133)

The mathf library has lots of useful constants, but not every constant we need. This commit adds a new objective that we'll store new constants in going forward: math.const.


Reproducing in-game

teleport @s 0 33 14
function _:soul/5

Preview

model

soul-5-gun
image image
soul-5-crosshair soul-5-crosshair -- heart variant
image image
soul-5-bullet soul-5-flower
image image

animations

act-button -- soul_5 soul-5-gun -- rotating and shooting
act-button-soul-5-animation gun shooting angled

soul event

in-game -- new in-game -- new, saved
preview pre saved preview post saved
in-game -- old in-game -- old, saved
old-map-pre-saved old-map-post-saved
undertale undertale, saved
undertale-pre-saved undertale-post-saved

videos with sound

in-game -- old in-game -- new undertale
https://youtu.be/2IprmKr31pU?t=359 https://youtu.be/PebGwauvkJM https://youtu.be/RJ4kumxv_1k?t=422

Supplemental changes