Commit graph

373 commits

Author SHA1 Message Date
05088fa18b comment 2021-08-31 15:18:21 +10:00
cfe850d0da add iso.go 2021-08-31 15:16:56 +10:00
80f00e8107 more comment 2021-08-31 13:41:26 +10:00
30224c15bf add rotation 2021-08-31 12:52:28 +10:00
Josh Deprez
4b7b4d3184 shorter names 2021-08-30 16:27:12 +10:00
Josh Deprez
f39c91a988 walk change, parentals 2021-08-30 16:25:50 +10:00
Josh Deprez
4557f78175 tidyups 2021-08-30 15:53:39 +10:00
Josh Deprez
3a4a48e2c6 %q 2021-08-30 15:50:22 +10:00
Josh Deprez
5a840950a0 allow blank Ident 2021-08-30 15:49:51 +10:00
Josh Deprez
91523f4769 fix comments 2021-08-30 15:08:22 +10:00
Josh Deprez
c0d2b94617 looks neater 2021-08-30 15:07:57 +10:00
Josh Deprez
f923bf7164 sets of interface{}, lol 2021-08-30 15:03:22 +10:00
Josh Deprez
4399f463f4 some light renaming 2021-08-30 13:33:01 +10:00
Josh Deprez
c6c7823047 dead code 2021-08-30 13:30:19 +10:00
Josh Deprez
906d5956a0 make usage warning more helpful 2021-08-28 18:24:26 +10:00
Josh Deprez
c4948952b2 fix crash on usages 2021-08-28 18:16:36 +10:00
Josh Deprez
b0520114ee query takes ids; game has an id 2021-08-28 18:14:37 +10:00
Josh Deprez
3452a32ddb invert camera-scene relationship 2021-08-28 18:07:53 +10:00
Josh Deprez
2674234d62 comment 2021-08-28 17:51:31 +10:00
Josh Deprez
6f3c6c88c0 no more draworderer 2021-08-28 17:50:54 +10:00
Josh Deprez
0e64c4a994 equality is ok 2021-08-28 16:26:24 +10:00
ee12b90f1e move registerComponent 2021-08-27 16:59:20 +10:00
d564ee08d4 comment 2021-08-27 16:48:09 +10:00
ed1f4deddf there's a query for that 2021-08-27 16:46:04 +10:00
ba3994a97e it's shorter 2021-08-27 16:10:28 +10:00
6e1eaab5c2 dead code 2021-08-27 15:53:15 +10:00
08048fd31d clean up old commented out code 2021-08-27 15:52:36 +10:00
6bc7c07444 yes 2021-08-27 15:51:19 +10:00
78dddb4f6c note for the future 2021-08-27 15:50:40 +10:00
12e3254a34 query 2021-08-27 15:39:10 +10:00
cf34a7785c Prepare returns error 2021-08-27 14:52:24 +10:00
9553eac378 more load/prepare tweaks 2021-08-27 14:43:37 +10:00
6fcf57fad1 dupes now an error 2021-08-27 14:30:39 +10:00
8e1ddae1d9 tweaks 2021-08-27 14:12:31 +10:00
5b457eded1 premature optimisation go brrr 2021-08-27 14:07:21 +10:00
b65e5043ab walking and colliding 2021-08-27 13:56:50 +10:00
a19cdfdf6f refactor repl 2021-08-27 13:08:04 +10:00
263e197f32 comment 2021-08-27 12:00:20 +10:00
43eff6e326 interface checks like this 2021-08-27 11:49:11 +10:00
Josh Deprez
3168c5eb54 wall? 2021-08-26 20:06:38 +10:00
Josh Deprez
d3cc842b12 yes 2021-08-26 14:58:02 +10:00
Josh Deprez
7cd10f22cd comment 2021-08-26 14:55:31 +10:00
Josh Deprez
23ce690549 sprite/sheet 2021-08-26 13:57:19 +10:00
Josh Deprez
a7ff475b91 sheet, tile/sheet, misc math 2021-08-26 13:54:22 +10:00
Josh Deprez
9a65ce6104 comment 2021-08-26 13:08:51 +10:00
Josh Deprez
23174e1f56 use filepath.Base 2021-08-26 11:38:55 +10:00
Josh Deprez
0b66b118b8 comments 2021-08-26 11:35:15 +10:00
Josh Deprez
39598f0124 ebiten up, imageref own file 2021-08-26 11:33:58 +10:00
Josh Deprez
a625845d30 image -> billboard 2021-08-26 11:31:39 +10:00
Josh Deprez
2c94fc918c tilemap go brrrr 2021-08-26 10:57:17 +10:00
Josh Deprez
42aa119e7f usage 2021-08-26 10:25:55 +10:00
Josh Deprez
177ba91d51 add comment 2021-08-26 10:06:51 +10:00
Josh Deprez
4a4c8669df make repl an engine feature 2021-08-26 10:03:11 +10:00
Josh Deprez
056f0cf5d5 logic flip 2021-08-26 09:55:55 +10:00
c69256ccec tree 2021-08-25 17:22:22 +10:00
71a89bd9a2 don't repl on js 2021-08-25 16:54:22 +10:00
01468798d4 repl, save 2021-08-25 16:46:30 +10:00
8f05192d78 gobdumper... meh 2021-08-25 15:39:01 +10:00
d10d57a3dc how to load from a file 2021-08-25 15:04:38 +10:00
Josh Deprez
94b9711e4b toast! 2021-08-24 19:33:21 +10:00
Josh Deprez
ac9bd0bcd6 comment 2021-08-24 16:20:49 +10:00
Josh Deprez
e3e55da2a1 cleanups 2021-08-23 20:41:13 +10:00
Josh Deprez
2cd0a3cc5a AnimatedTile is Scanner 2021-08-23 20:38:40 +10:00
Josh Deprez
e2e937f409 change how anim works 2021-08-23 20:28:49 +10:00
Josh Deprez
4eaf48f380 move gob.Register(SceneRef) to sceneref.go 2021-08-23 18:08:14 +10:00
Josh Deprez
1d3327cb1c more wrappers around bool values 2021-08-23 11:10:46 +10:00
Josh Deprez
94db859faf move interface vars 2021-08-23 11:02:24 +10:00
Josh Deprez
f05090594c sceneref.go; imageCache now aware of assets 2021-08-23 11:00:51 +10:00
Josh Deprez
0f5346bf0e all in on interfaces 2021-08-23 10:34:56 +10:00
Josh Deprez
7e76032ee2 pass assets FS into Load - cleaner? 2021-08-23 10:09:49 +10:00
Josh Deprez
eb2929f6cc add TODO 2021-08-22 20:28:25 +10:00
Josh Deprez
1d33ac227a move AssetFS into Game 2021-08-22 20:27:08 +10:00
Josh Deprez
245d939f2c ImageRef implements Loader 2021-08-20 17:05:47 +10:00
Josh Deprez
af89c01dbd Scenerise Camera and i am g.Root 2021-08-20 16:46:26 +10:00
Josh Deprez
45e2b300e8 fix bug 2021-08-20 16:31:06 +10:00
Josh Deprez
c352221606 big Scener won 2021-08-20 16:23:10 +10:00
Josh Deprez
b5792d3c8a Scener 2021-08-20 15:52:01 +10:00
Josh Deprez
946b76df9a error-based walk; Scener 2021-08-20 15:01:31 +10:00
Josh Deprez
91bf4939e7 move Bounds from Camera to Scene; add SceneRef 2021-08-20 13:45:01 +10:00
Josh Deprez
e98b730465 sort interfaces 2021-08-18 20:41:55 +10:00
Josh Deprez
44b4f46ecb ordering 2021-08-18 19:27:32 +10:00
Josh Deprez
f01b667a0d call it pf 2021-08-18 17:44:03 +10:00
Josh Deprez
88482c390d parallax and interfaces 2021-08-18 16:34:51 +10:00
Josh Deprez
3b452fc3d0 minor refactor in camera 2021-08-18 15:46:28 +10:00
Josh Deprez
a50731023a camera responsible for drawing scene 2021-08-18 15:41:03 +10:00
Josh Deprez
cdcad14245 some tidyups 2021-08-18 15:23:02 +10:00
Josh Deprez
f8665c82be sort interfaces 2021-08-18 14:25:51 +10:00
Josh Deprez
2f372d10d4 ZPositioner -> DrawOrderer 2021-08-18 14:02:15 +10:00
c6d6536e49 logic invert 2021-08-15 17:11:26 +10:00
f89d79f69d add marching ants 2021-08-15 17:09:34 +10:00
a6336dadc9 methods for working with tiles 2021-08-15 16:40:01 +10:00
c1e9570403 add offset to tiles and make storage sparse 2021-08-15 16:14:50 +10:00
f5bd131297 comments 2021-08-15 15:52:40 +10:00
17c8501922 game mode? 2021-08-14 17:43:11 +10:00
Josh Deprez
0b13586519 comment tweaks 2021-08-12 21:11:32 +10:00
88295b720d compute zoom bound on prepare 2021-08-12 05:01:37 +00:00
c6ead101bd invert logic in AnimRef.Anim 2021-08-12 04:45:23 +00:00
d612cf3e54 remove filter comment 2021-08-12 04:16:09 +00:00
efddeb7d6c Draw(image, geom) -> Draw(image, opts) 2021-08-12 04:06:01 +00:00
6354df558f camera stays in bounds 2021-08-12 03:49:22 +00:00
238286289e delete GeoMDef - not needed anymore/yet 2021-08-12 11:48:04 +10:00
Josh Deprez
1ff2aa1fcf tweak 2021-08-10 16:53:51 +10:00
Josh Deprez
9592cfc794 thoughts 2021-08-10 15:32:29 +10:00
Josh Deprez
8b076efcc4 rotato 2021-08-10 15:23:13 +10:00
Josh Deprez
88fa4f5a6e new camera paradigm 2021-08-10 14:56:01 +10:00
Josh Deprez
ed61e27440 camera tweaks 2021-08-09 15:00:25 +10:00
Josh Deprez
a6508de705 camera improvements 2021-08-09 13:58:33 +10:00
Josh Deprez
1bf7920d2f cameraaaaa 2021-08-08 22:07:55 +10:00
Josh Deprez
702774be37 sprite framesize/frameoffset 2021-08-08 11:46:03 +10:00
Josh Deprez
074b57f76d more efficient tile collision testing? 2021-08-08 11:46:03 +10:00
Josh Deprez
cb157a9503 starting animations on the right foot? 2021-08-08 11:46:03 +10:00
Josh Deprez
9485fdfb4f fix out-of-order detection, tweak sprite 2021-08-08 11:46:03 +10:00
Josh Deprez
8bddc09a11 fix vibration, tweak spritesheet 2021-08-08 11:46:03 +10:00
Josh Deprez
5cdbf5b82b formatting 2021-08-08 11:46:03 +10:00
Josh Deprez
3f17821a0d More comment 2021-08-08 11:46:03 +10:00
Josh Deprez
c30472c67e more gobs and interface cleanup 2021-08-08 11:46:03 +10:00
Josh Deprez
66e45e495a Simplify game preparation 2021-08-08 11:46:03 +10:00
Josh Deprez
196b220c4f idle in a direction 2021-08-08 11:46:03 +10:00
Josh Deprez
d8202c65f5 they walked so they could run when I tweaked the sprite sheet 2021-08-08 11:46:03 +10:00
Josh Deprez
4c8e8bf4a7 walking 2021-08-08 11:46:03 +10:00
Josh Deprez
0fce733d56 sprite 2021-08-08 11:46:03 +10:00
Josh Deprez
28d9570e1e sprite 2021-08-08 11:46:03 +10:00
Josh Deprez
8b3a0c78e4 Make Tilemap a collider 2021-08-08 11:46:03 +10:00
Josh Deprez
d4dcd952a4 key just pressed 2021-08-08 11:46:03 +10:00
Josh Deprez
4ea31970e5 all the tiles collide 2021-08-08 11:46:03 +10:00
Josh Deprez
152fc7d528 walls and box 2021-08-08 11:46:03 +10:00
Josh Deprez
adc8fc0514 oh yeah 2021-08-08 11:46:03 +10:00
Josh Deprez
75196dde75 it works 2021-08-08 11:46:03 +10:00
Josh Deprez
9c456296b9 collision detection woo 2021-08-08 11:46:03 +10:00
Josh Deprez
19eb6361f5 support rectangular tile sources 2021-08-08 11:46:03 +10:00
Josh Deprez
8ddfe28427 tile tweaks 2021-08-08 11:46:03 +10:00
Josh Deprez
27cbaf9403 actor 2021-08-08 11:46:03 +10:00
Josh Deprez
6e8a3e67df Disabled 2021-08-08 11:46:03 +10:00
Josh Deprez
4d6c6889de ebiten.GeoM 2021-08-08 11:46:03 +10:00
Josh Deprez
a11c66c076 clarity 2021-08-08 11:46:03 +10:00
Josh Deprez
11a2382b56 minor clarification 2021-08-08 11:46:03 +10:00
Josh Deprez
3d75693cc2 Split Scan and Build 2021-08-08 11:46:03 +10:00
Josh Deprez
92ed1f1a89 GeoMDef 2021-08-08 11:46:03 +10:00
Josh Deprez
64d44d9caf it is a fun fact 2021-08-08 11:46:03 +10:00
Josh Deprez
62f3086eb5 comment time 2021-08-08 11:46:03 +10:00
Josh Deprez
ba7bfe62fc ident tweaks 2021-08-08 11:46:03 +10:00
Josh Deprez
0af9bf298c Hidden, Identifier, z.go->misc.go 2021-08-08 11:46:03 +10:00
Josh Deprez
cd7b0fae99 change how walk works 2021-08-08 11:46:03 +10:00
Josh Deprez
51d9a69a4b componentdb 2021-08-08 11:46:03 +10:00
Josh Deprez
facb9f8e91 yes 2021-08-08 11:46:03 +10:00
Josh Deprez
d8ecea05e5 until I can think of a better way 2021-08-08 11:46:03 +10:00
Josh Deprez
d52753a6d0 yes 2021-08-08 11:46:03 +10:00
Josh Deprez
d31fbd1e73 AnimRef 2021-08-08 11:46:03 +10:00
Josh Deprez
183b373867 no json 2021-08-08 11:46:03 +10:00
Josh Deprez
8f8802f387 loop -> oneshot 2021-08-08 11:46:03 +10:00
Josh Deprez
2fc3251c9b progress 2021-08-08 11:46:03 +10:00
Josh Deprez
7fbf4d7a71 Anim 2021-08-08 11:46:03 +10:00
Josh Deprez
ec8daf7b79 Lazy loading with ref 2021-08-08 11:46:03 +10:00
Josh Deprez
acaa279e05 image ref? 2021-08-08 11:46:03 +10:00
Josh Deprez
1888821748 why bother having a call that does reordering when the objects are being linearly scanned anyway 2021-08-08 11:46:03 +10:00
Josh Deprez
d597481d8c remove a blank line 2021-08-08 11:46:03 +10:00
Josh Deprez
540eab9a0f Tiles has Transform 2021-08-08 11:46:03 +10:00
Josh Deprez
ed5092cc3e Add Transform field to Scene 2021-08-08 11:46:03 +10:00
Josh Deprez
14407fe47d call it "scene" 2021-08-08 11:46:03 +10:00
Josh Deprez
24d47ba639 Refactor Layers into separate type so that Layers can nest 2021-08-08 11:46:03 +10:00
Josh Deprez
b976b849b7 Do geom on stack? 2021-08-08 11:46:03 +10:00
Josh Deprez
76bcda2df5 Animate a tile 2021-08-08 11:46:03 +10:00
Josh Deprez
def1dc1daa animated tiles gogo 2021-08-08 11:46:03 +10:00
Josh Deprez
3fab8dbe7a tweak embed 2021-08-08 11:46:03 +10:00
Josh Deprez
17c68f5455 Tweaks 2021-08-08 11:46:03 +10:00
Josh Deprez
680b2d5269 yes 2021-08-08 11:46:03 +10:00
Josh Deprez
a2fb805f41 tiles! 2021-08-08 11:46:03 +10:00
Josh Deprez
aa6cbbf295 yes 2021-08-08 11:46:03 +10:00
Josh Deprez
b9ab613167 Composable z-position 2021-08-08 11:46:03 +10:00
Josh Deprez
b396b247a2 more 2021-08-08 11:46:03 +10:00
Josh Deprez
7b321a549f Implement sort? 2021-08-08 11:46:03 +10:00
Josh Deprez
68b29ab021 tidy 2021-08-08 11:46:03 +10:00
Josh Deprez
3a19cac212 Refactoring 2021-08-08 11:46:03 +10:00