Commit Graph

2924 Commits (master)

Author SHA1 Message Date
Alexey Kutepov b926d93e62
Merge pull request #1159 from tsoding/1139
(#1139) Implement Move snap for Label Layer
2019-12-01 00:42:17 +07:00
rexim c4cf192119 (#1153) Fix square ratio snapping 2019-12-01 00:40:08 +07:00
zhiayang eb6f4d3e6b
(#1153) Remove TODO for #1157 (sorry!) and cleanup key handling.
Use builtin SDL stuff instead of doing dumb things. also, rename
`maybe_fix_to_ratio` to `fix_rect_ratio`.
2019-12-01 01:00:14 +08:00
rexim c7497e3997 (#1139) Fix MSVC build 2019-11-30 23:23:12 +07:00
rexim 9b0e3d58fa (#1139) Add labels to the test level 2019-11-30 23:21:48 +07:00
Danil Kolumbet 47d9db5c09 add version to level metadata 2019-11-25 14:37:34 +02:00
zhiayang 353c1e8959
(#901) Use normal unix `struct stat` for macos in `last_modified`. 2019-11-25 12:39:04 +08:00
zhiayang 62bcdd053c
(#1070) Only actually select a list item when the mouse is correct 2019-11-25 12:28:54 +08:00
zhiayang bceb35ac1f
(#974) Revert that. I can't program, apparently. 2019-11-25 11:53:41 +08:00
zhiayang e4078f8d1f
(#974) Skip rescaling the events if the scale is 1. 2019-11-25 11:45:37 +08:00
zhiayang 8388fbc950
(#974) Fix another oversight 2019-11-25 11:42:17 +08:00
zhiayang bba6b7f644
(#974) Fix float -> int casting 2019-11-25 11:35:11 +08:00
zhiayang ff428de0b0
(#974) Clean up redundant code checks.
PS: I don't think anybody manufactures a screen that has different
x and y pixel scale...
2019-11-25 11:21:30 +08:00
zhiayang 3c9409f3c1
(#974) Support non-1x display resolution scale 2019-11-25 11:09:47 +08:00
zhiayang 9455584d37
(#1068) Reset player jump count on death 2019-11-25 10:21:13 +08:00
zhiayang 5600483233
(#1153) Fix snapping when ratio-resizing. 2019-11-25 04:33:39 +08:00
zhiayang 31ff2879dd
(#1153) Properly update the ratio when entering ratio mode 2019-11-25 03:59:43 +08:00
zhiayang 66e62a994a
(#1153) Clean up the code a bit. 2019-11-25 03:54:39 +08:00
rexim 2d7f1561b4 Add TODO(#1161) 2019-11-25 02:53:32 +07:00
rexim c53fb9ecf4 Add TODO(#1160) 2019-11-25 02:53:31 +07:00
rexim dfbfad94ef (#1139) Implement Move snap for Label Layer 2019-11-25 02:51:35 +07:00
zhiayang 3cde3668dd
(#1153) Implement ratio-resize for the other 3 corners 2019-11-25 03:27:27 +08:00
rexim 4f374fb872 (#1139) Put label id below label text 2019-11-25 02:25:05 +07:00
rexim 14a80ed176 (#1139) Decouple sprite_font_boundary_box from Sprite_font 2019-11-25 02:09:24 +07:00
zhiayang 5fccd45e09
(#1153) Allow entering ratio-mode in the middle of resizing 2019-11-25 02:55:53 +08:00
zhiayang 29f9532342
(#1153) Add fixed-ratio resizing to RectLayer 2019-11-25 02:39:42 +08:00
rexim e62149607d (#1139) Implement Centralized Boundary Calculation (CBC) 2019-11-25 01:31:49 +07:00
rexim f5aa866975 (#1139) Move rect snapping stuff to rect translation unit 2019-11-25 01:09:14 +07:00
rexim c57a799e27 (#1139) Get rid of the libsystem 2019-11-25 00:56:44 +07:00
rexim aa5d7e63df Remove TODO(#1142) 2019-11-25 00:19:02 +07:00
Alexey Kutepov 3c83c9528e
Merge pull request #1154 from tsoding/1142
(#1142) Implement resize snapping
2019-11-25 00:17:41 +07:00
rexim 05467bf303 (#1142) snap_var4 -> snap_seg2seg 2019-11-25 00:00:48 +07:00
rexim 0b443f4912 (#1142) snap_var2 -> snap_var2seg 2019-11-24 23:59:07 +07:00
rexim 06d6269b0d (#1142) snap_var1 -> snap_var 2019-11-24 23:58:48 +07:00
rexim 8467638fbc (#1142) explain snap_var1 a little bit better 2019-11-24 23:52:20 +07:00
rexim 1840b5374b (#1142) Intermediate snap_var* names 2019-11-24 23:48:29 +07:00
rexim a4bfcecc59 (#1142) Split temp_snap into even smaller pieces 2019-11-24 23:25:53 +07:00
rexim 085bf69309 (#1142) Simplify snap_var implementation 2019-11-24 02:18:07 +07:00
rexim cf99031442 (#1142) Full resize snapping 2019-11-24 01:57:00 +07:00
rexim 56d7cf63d7 (#1142) Bot-left resize snapping 2019-11-24 01:51:09 +07:00
rexim 2c306a6afa (#1142) Bottom resize snapping 2019-11-24 01:47:36 +07:00
rexim 41e24206d6 (#1142) Top-left resize snapping 2019-11-24 01:37:20 +07:00
rexim fefcc8f15f (#1142) Add support for top and left resize snapping 2019-11-24 01:32:47 +07:00
rexim 8a286776bb (#1142) introduce snap_var 2019-11-24 01:02:20 +07:00
rexim 1d60d2764a Remove TODO(#955) 2019-11-24 00:47:19 +07:00
rexim 8425f2776c Remove TODO(#1129) 2019-11-24 00:47:19 +07:00
Alexey Kutepov ad6d6f3fc6
Merge pull request #1151 from tsoding/1144
(#1144) Make the snapping threshold depending the camera zoom level
2019-11-24 00:41:46 +07:00
rexim 62af7a7825 (#1144) Make the snapping threshold depending the camera zoom level 2019-11-24 00:25:56 +07:00
rexim 23e0a578a8 (#1144) Compress the rect snapping logic 2019-11-24 00:10:55 +07:00
Alexey Kutepov 047f2cbb95
Merge pull request #1146 from kolumb/398a
(#398) Add blank credits screen
2019-11-23 23:54:35 +07:00