Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPESS PARALLAX #3734

Closed
wants to merge 9 commits into from
Closed

Conversation

monster860
Copy link
Contributor

https://gfycat.com/ThoughtfulDenseAnophelesmosquito
^^ Gfycat

Nuff said.

Shuttle transitions are not affected though.

🆑 monster860
rscadd: Parallax effect on space
fix: Space area is no longer fragmented
rscdel: Unfortunately, no more twinkly stars on parallax mode.
fix: Side effect, following people in space pods as ghost shouldn't be broken anymore
/:cl:

@monster860 monster860 changed the title SEPSS PARALLAX SPESS PARALLAX Feb 28, 2016
@FlattestGuitar
Copy link
Contributor

Yes! 👍 👍 👍 👍
💯 / 💯

@Dumbdumn5
Copy link

👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍...

@monster860
Copy link
Contributor Author

God damn typos, I typo'ed my commit message.

@TheeErikos
Copy link

I like it, but could you get it to move ever so slightly if it doesn't already, hard to tell. 👍 x 1000 x 👾

@monster860
Copy link
Contributor Author

I could get it to move ever so slightly, but I think there'd be some.... issues with that.

@monster860 monster860 closed this Feb 28, 2016
@monster860 monster860 reopened this Feb 28, 2016
@monster860
Copy link
Contributor Author

Shit, wrong button.

@d34d10cc
Copy link
Contributor

d34d10cc commented Feb 28, 2016 via email

@monster860
Copy link
Contributor Author

I made space a layer that moves with the screen, instead of with the tiles. The challenge here was figuring out how to make it not draw in areas where you can't see. (http://imgur.com/MGT9tsa)

I managed that by making space tiles completely white, and having their layer be below normal turfs, and below the space layer.

The space layer is set to BLEND_MULTIPLY.

@d34d10cc
Copy link
Contributor

d34d10cc commented Feb 28, 2016 via email

@monster860
Copy link
Contributor Author

Fuck, don't merge, the layer doesn't spawn for ghosts.

@Gummin
Copy link

Gummin commented Feb 28, 2016

👍👍👍 Spooky 💀

@ghost
Copy link

ghost commented Feb 28, 2016

holy hell 👍 it's like i'm on just the right amount of drugs

@41junkard
Copy link

Hmm, looks very cool!

Only problem I've thought about is spacewalking. How would it look, would you notice you're moving or not?

@monster860
Copy link
Contributor Author

You would not notice you're moving. However, to be fair, spacewalks are already super easy.

@@ -17,7 +17,9 @@
. = ..()

if(!istype(src, /turf/space/transit))
icon_state = "[((x + y) ^ ~(x * y) + z) % 25]"
//icon_state = "[((x + y) ^ ~(x * y) + z) % 25]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't leave commented out code lying around.

@monster860
Copy link
Contributor Author

I just had the brilliant idea of setting client.color to
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
for clients with parallax on and making every atom except space have NO_CLIENT_COLOR on the appearance flags. As far as I can tell, appearance_flags and client.color is not used anywhere in Paradise so far.

What do you think?

@d34d10cc
Copy link
Contributor

d34d10cc commented Mar 1, 2016 via email

@monster860
Copy link
Contributor Author

Detectives glasses?

@tigercat2000
Copy link
Contributor

@monster860 It's used in the detective noir glasses, and NO_CLIENT_COLOR affects every version of color matricies. Not an option.

@FlattestGuitar
Copy link
Contributor

This PR

Now coders have to race.

@monster860
Copy link
Contributor Author

This was merged 4 days ago.

Well, that explains why it didn't show up in my copy of the code, it's nearly a month old.

Fucking byond
If only we were allowed to write our own shaders for this thing.

@monster860
Copy link
Contributor Author

Time to merge all the space areas.

So yeah, that should fix it. But I've said that a billion times already in this thread.

…of /image objects is decreased by a factor of 10.
@monster860
Copy link
Contributor Author

Awwwwright...... I think this should be merge-quality.

for(var/obj/screen/spessbg/bgobj in mymob.client.spessbg)
bgobj.screen_loc = "CENTER-7:[bgobj.offset_x-posobj.x],CENTER-7:[bgobj.offset_y-posobj.y]"

/*///hook_handler/parallax/proc/OnMobAreaChange(var/list/args)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding in commented out code...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, I completely forgot about that. That was a failed attempt at fixing something.

@monster860
Copy link
Contributor Author

Fixed above issues, but since I did the mob/move stuff, I might as well test it before pushing it. So am testing now.

@monster860
Copy link
Contributor Author

Line notes fixed. Because of the whole /mob/Move thing, ghosts following people in spacepods is fixed as a side effect.

@@ -88,6 +88,9 @@
if(loc == newloc) //Remove this check and people can accelerate. Not opening that can of worms just yet.
newtonian_move(last_move)

for(var/mob/M in contents)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will immediately dump mobs out of a container if it moves..

@Fox-McCloud Fox-McCloud added the Do Not Merge This PR must not be merged or closed label Mar 2, 2016
@Fox-McCloud
Copy link
Member

I'm placing a "Do Not Merge". The reason being is that BYOND 510 changes a lot of how client screen handling is handled. In addition to this, there's some major performance benefits to utilizing it, particularly with our Process Scheduler. This PR is likely to cause majorrrr conflict problems with the new way that client screens are handled, so, until 510 gets merge to master and goes live, this PR will have to wait.

@monster860
Copy link
Contributor Author

Hm. I'm gonna try merging the spess branch into a local branch of byond510 and see how it goes. So far, the only merge conflicts were from git being a pussy.

@tigercat2000
Copy link
Contributor

@monster860 big things aren't merge conflicts, big things are "entire system not working because of how 510 handles full-screen huds"

@monster860
Copy link
Contributor Author

Yeah, I'm testing it. Fucking compile times though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Do Not Merge This PR must not be merged or closed Feature This PR is a new addition to the game SQL Change This PR modifies the game database. This PR must go through the host.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet