Commit Graph

11 Commits

Author SHA1 Message Date
Robustin
4a4c2a498c Big finalized update 2017-04-30 16:30:35 -04:00
Robustin
06c3116c2d Still debugging 2017-04-28 19:41:57 -04:00
Remie Richards
9dc819f151 Skewium: It'll fuck you up. (#23742)
* Skewium: It'll fuck you up.
Adds some matrix helpers for dealing with skews
Adds Skewium, it's like rotatium, but for skews instead of rotation, it's horrible

* switches back to boxstation from runtimestation
2017-02-07 16:36:07 -06:00
MrPerson
3bd240663c Improved color matrix helpers
Better comments explaining the purpose of everything
Better name scheme: color_matrix_foo() instead of just color_foo()
Contrast was completely wrong. Total derpage, formula is now right
A few examples of interesting and useful matrices. And by "a few" I mean 3, but whatever
Addition and multiplication
Single-axis rotations
color_matrix2color_hex and color_hex2color_matrix in case anybody wants to convert back and forth for whatever reason
All values within the matrix are rounded to the thousandths place to cut down on floating point error and 1.000000001 type values
2016-09-15 03:38:51 -07:00
MrPerson
3ec39d369b Some basic color matrix helpers
Contrast, saturation, brightness, and rotation. Still need to do multiplication, addition, and negation, but this is a start.

Here's the testing snippet I used to play around with these: http://pastebin.com/BgBtmhMN
2016-01-24 23:27:45 -06:00
Remie Richards
673afecc8e get_turf_pixel() is now more accurate:
* returns a turf closer to the center in even multiples of world.icon_size (64,128, etc.)
* Handles irregular (non-world.icon_size sized objects) better
* Now handles Matrix X/Y shifts
2015-12-18 20:41:26 +00:00
Remie Richards
163c84344b Orbit improvements:
* Orbit is now less reliant on Animate(), for most ghosts this means 36 calls to Animate, vs the previous INFINITE, for those of you with potato computers, this should ease the pain and crashing.
* Orbits can now be something different to circles!
* Ghosts Byond Members can now choose between orbits! (Circle, Triangle, Square, Hexagon)
2015-12-18 16:12:42 +00:00
Cheridan
43f9e78493 Casing rotation
Spent casings ejected from firearms will spin as they 'tumble' towards the ground.
Improved sprites for shotgun shells
Improved sprite for bullet projectile.
2014-06-07 01:23:49 -05:00
Cheridan
2d547d4d82 Refactors space dust
Meteors spin

renames meateors
2014-04-23 15:01:19 -05:00
Mloc-Hibernia
8af8a43d6f Initial pass to convert LF to CRLF
Signed-off-by: Mloc-Hibernia <colmohici@gmail.com>
2014-03-24 08:53:40 +00:00
MrPerson
0483800e24 update_icons() uses animate() and transforms to actually turn the sprite rather than needing them pre-turned. Mobs that lie down do so with an animation rather than appearing on their side. You can lie down facing THE LEFT OH SHIT.
Cloakers still don't work well. The fix is probably just finding a proc that runs on equip/uequip/when bagged/when dropped. Fuck that. Ninjas work. Things that are cloaked fade to the cloaked alpha, it's pretty cool.

The "lying down" icon_states for everything you could equip are all now unnecessary. They aren't removed yet though.

The dmi changes are to make xenos all face upward so when they turn, they're lying down rather than facing south and looking like they're doing a handstand. They're not terribly good when facing the wrong way. I expect WJohnson to have a fix for this by New Year's.

Comments aren't changed. The overlays_standing list is still around because overlays is not a normal list, and BYOND's normal list functions are worth the extra cost of keeping a spare list of images.
2013-12-23 02:19:15 -08:00