diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2025-02-02 01:04:13 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2025-02-02 01:04:13 -0600 |
| commit | 4a5e3b7d3594056d297f09d3e33aa6e2133124f1 (patch) | |
| tree | 5587b694d0203c0298a780a9431dd769b1112551 | |
| parent | 29e850516031e51a0b394211d1230a6247627a14 (diff) | |
| download | drydock-4a5e3b7d3594056d297f09d3e33aa6e2133124f1.tar.gz drydock-4a5e3b7d3594056d297f09d3e33aa6e2133124f1.tar.bz2 drydock-4a5e3b7d3594056d297f09d3e33aa6e2133124f1.zip | |
Redo all the blender assets
| -rw-r--r-- | Makefile | 142 | ||||
| -rw-r--r-- | data_src/models/green_outline.blend | bin | 479788 -> 623616 bytes | |||
| -rw-r--r-- | data_src/models/icon_battery.blend | bin | 420780 -> 603736 bytes | |||
| -rw-r--r-- | data_src/models/icon_engine.blend | bin | 430124 -> 591552 bytes | |||
| -rw-r--r-- | data_src/models/icon_fueltank.blend | bin | 466724 -> 595168 bytes | |||
| -rw-r--r-- | data_src/models/icon_generator.blend | bin | 462212 -> 624216 bytes | |||
| -rw-r--r-- | data_src/models/icon_high_voltage.blend | bin | 464712 -> 621208 bytes | |||
| -rw-r--r-- | data_src/models/icon_hv_source.blend | bin | 428212 -> 588040 bytes | |||
| -rw-r--r-- | data_src/models/icon_ionthrust.blend | bin | 466932 -> 624992 bytes | |||
| -rw-r--r-- | data_src/models/icon_laser_turret.blend | bin | 428124 -> 583280 bytes | |||
| -rw-r--r-- | data_src/models/icon_wire.blend | bin | 426856 -> 581032 bytes | |||
| -rw-r--r-- | data_src/models/layer_electric.blend | bin | 470936 -> 676384 bytes | |||
| -rw-r--r-- | data_src/models/layer_fuel.blend | bin | 489780 -> 672400 bytes | |||
| -rw-r--r-- | data_src/models/layer_hv.blend | bin | 480008 -> 678376 bytes | |||
| -rw-r--r-- | data_src/models/level_1.blend | bin | 468212 -> 592688 bytes | |||
| -rw-r--r-- | data_src/models/level_10.blend | bin | 439832 -> 590800 bytes | |||
| -rw-r--r-- | data_src/models/level_11.blend | bin | 631168 -> 1025208 bytes | |||
| -rw-r--r-- | data_src/models/level_12.blend | bin | 487332 -> 666008 bytes | |||
| -rw-r--r-- | data_src/models/level_2.blend | bin | 471764 -> 627424 bytes | |||
| -rw-r--r-- | data_src/models/level_3.blend | bin | 468956 -> 621432 bytes | |||
| -rw-r--r-- | data_src/models/level_3p2.blend | bin | 476340 -> 640904 bytes | |||
| -rw-r--r-- | data_src/models/level_4.blend | bin | 460484 -> 615976 bytes | |||
| -rw-r--r-- | data_src/models/level_5.blend | bin | 463708 -> 619392 bytes | |||
| -rw-r--r-- | data_src/models/level_6.blend | bin | 468988 -> 623424 bytes | |||
| -rw-r--r-- | data_src/models/level_7.blend | bin | 471700 -> 629736 bytes | |||
| -rw-r--r-- | data_src/models/level_8.blend | bin | 523668 -> 674060 bytes | |||
| -rw-r--r-- | data_src/models/level_9.blend | bin | 428188 -> 590184 bytes | |||
| -rw-r--r-- | data_src/models/manage_chatbox.blend | bin | 482684 -> 668388 bytes | |||
| -rw-r--r-- | data_src/models/manage_portrait.blend | bin | 7270428 -> 7090389 bytes | |||
| -rw-r--r-- | data_src/models/money_background.blend | bin | 478384 -> 603860 bytes | |||
| -rw-r--r-- | data_src/models/ph_start_screen.blend | bin | 462676 -> 617964 bytes | |||
| -rw-r--r-- | data_src/models/pipe1111.blend | bin | 483752 -> 611560 bytes | |||
| -rw-r--r-- | data_src/models/pipe1111_hint.blend | bin | 488276 -> 610592 bytes | |||
| -rw-r--r-- | data_src/models/star1.blend | bin | 465016 -> 619672 bytes | |||
| -rw-r--r-- | data_src/models/star2.blend | bin | 460492 -> 627168 bytes | |||
| -rw-r--r-- | data_src/models/star3.blend | bin | 464580 -> 585168 bytes | |||
| -rw-r--r-- | data_src/models/test_ship.blend | bin | 479668 -> 629808 bytes | |||
| -rw-r--r-- | src/level7.moon | 112 |
38 files changed, 127 insertions, 127 deletions
@@ -1,71 +1,71 @@ - -#Binaries -BLENDER = "C:\Program Files\Blender Foundation\Blender\blender.exe" -CONVERT = convert -MOONC = moonc.bat -CP = cp -CAT = cat -CD = cd -AMULET = amulet-console -LUA = lua -MV = mv -UNZIP = unzip -o #overwrite without asking -HTTP_SERVER = python -m http.server #STL -OPEN_BROWSER = rundll32 url.dll,FileProtocolHandler http://localhost:8000 -ECHO=echo - -moon_files = $(shell ls src/*.moon) -lua_files = $(shell ls src/*.lua) -build_moon_files = $(moon_files:src/%.moon=build/%.lua) -debug_moon_files = $(moon_files:src/%.moon=debug/%.lua.X) -build_lua_files = $(lua_files:src/%.lua=build/%.lua) - -#Sprites from models -model_files = $(shell sh -c "find data_src/models/*.blend") -raw_imgs = $(model_files:data_src/models/%.blend=data_src/img_raw/%_raw.png) -static_files = $(shell ls data_src/*.jpg) $(shell ls data_src/*.png) -static_imgs = $(static_files:data_src/%=build/data/%) -sprites = $(raw_imgs:data_src/img_raw/%_raw.png=build/data/%.png) -all_files = $(build_moon_files) $(build_lua_files) $(debug_moon_files) $(sprites) - -all ggj20-1.0.0-html.zip : $(build_lua_files) $(build_moon_files) $(sprites) $(static_imgs) - $(AMULET) export -r -windows -mac -linux -html build - -serve: ggj20-1.0.0-html.zip - $(UNZIP) $^ - $(OPEN_BROWSER) - $(CD) ggj20 && $(HTTP_SERVER) - -dev: $(build_lua_files) $(build_moon_files) $(debug_moon_files) $(sprites) $(static_imgs) - $(CD) build && $(AMULET) 2> err.log || true - $(CAT) build/err.log | $(LUA) rewrite.lua - -$(build_moon_files) : build/%.lua : src/%.moon - $(MOONC) -o $@ $< - -$(debug_moon_files) : debug/%.lua.X : src/%.moon - $(MOONC) -X $< > $@ - -$(build_lua_files) : build/%.lua : src/%.lua - $(CP) $< $@ - -#Convert images to our reduce 64 colors -$(sprites) : build/data/%.png : data_src/img_raw/%_raw.png - $(CONVERT) $^ +dither -remap aap-64-1x.png $@ - -$(raw_imgs) : data_src/img_raw/%_raw.png : data_src/models/%.blend - $(BLENDER) -b $^ -o //../../$(@:%_raw.png=%_raw_) -f 1 - $(MV) $(@:%_raw.png=%_raw_0001.png) $@ - -$(static_imgs) : build/data/% : data_src/% - $(CP) $^ $@ - -clean: - $(RM) -f debug/* - $(RM) -f build/*.lua - $(RM) -f build/data/*.png - $(RM) -f data_src/img_raw/*.png - $(RM) -f build/out.log - $(RM) -f build/err.log - $(RM) -f *.zip - $(RM) -rf ggj20 +
+#Binaries
+BLENDER?="$(shell where blender | head -n 1)"
+MOONC?="$(shell where moonc | head -n 1)"
+CONVERT?="$(shell where magick | head -n 1)"
+CP = cp
+CAT = cat
+CD = cd
+AMULET?="$(shell where amulet | head -n 1)"
+LUA = lua
+MV = mv
+UNZIP = unzip -o #overwrite without asking
+HTTP_SERVER = python -m http.server #STL
+OPEN_BROWSER = rundll32 url.dll,FileProtocolHandler http://localhost:8000
+ECHO=echo
+
+moon_files = $(wildcard src/*.moon)
+lua_files = $(wildcard src/*.lua)
+build_moon_files = $(moon_files:src/%.moon=build/%.lua)
+debug_moon_files = $(moon_files:src/%.moon=debug/%.lua.X)
+build_lua_files = $(lua_files:src/%.lua=build/%.lua)
+
+#Sprites from models
+model_files = $(wildcard data_src/models/*.blend)
+raw_imgs = $(model_files:data_src/models/%.blend=data_src/img_raw/%_raw.png)
+static_files = $(wildcard data_src/*.jpg) $(wildcard data_src/*.png)
+static_imgs = $(static_files:data_src/%=build/data/%)
+sprites = $(raw_imgs:data_src/img_raw/%_raw.png=build/data/%.png)
+all_files = $(build_moon_files) $(build_lua_files) $(debug_moon_files) $(sprites)
+
+all ggj20-1.0.0-html.zip : $(build_lua_files) $(build_moon_files) $(sprites) $(static_imgs)
+ $(AMULET) export -r -windows -mac -linux -html build
+
+serve: ggj20-1.0.0-html.zip
+ $(UNZIP) $^
+ $(OPEN_BROWSER)
+ $(CD) ggj20 && $(HTTP_SERVER)
+
+dev: $(build_lua_files) $(build_moon_files) $(debug_moon_files) $(sprites) $(static_imgs)
+ $(CD) build && $(AMULET) 2> err.log || true
+ $(CAT) build/err.log | $(LUA) rewrite.lua
+
+$(build_moon_files) : build/%.lua : src/%.moon
+ $(MOONC) -o $@ $<
+
+$(debug_moon_files) : debug/%.lua.X : src/%.moon
+ $(MOONC) -X $< > $@
+
+$(build_lua_files) : build/%.lua : src/%.lua
+ $(CP) $< $@
+
+#Convert images to our reduce 64 colors
+$(sprites) : build/data/%.png : data_src/img_raw/%_raw.png
+ $(CONVERT) $^ +dither -remap aap-64-1x.png $@
+
+$(raw_imgs) : data_src/img_raw/%_raw.png : data_src/models/%.blend
+ $(BLENDER) -b $^ -o //../../$(@:%_raw.png=%_raw_) -f 1
+ $(MV) $(@:%_raw.png=%_raw_0001.png) $@
+
+$(static_imgs) : build/data/% : data_src/%
+ $(CP) $^ $@
+
+clean:
+ $(RM) -f debug/*
+ $(RM) -f build/*.lua
+ $(RM) -f build/data/*.png
+ $(RM) -f data_src/img_raw/*.png
+ $(RM) -f build/out.log
+ $(RM) -f build/err.log
+ $(RM) -f *.zip
+ $(RM) -rf ggj20
diff --git a/data_src/models/green_outline.blend b/data_src/models/green_outline.blend Binary files differindex ac470ed..fc12e1f 100644 --- a/data_src/models/green_outline.blend +++ b/data_src/models/green_outline.blend diff --git a/data_src/models/icon_battery.blend b/data_src/models/icon_battery.blend Binary files differindex 6bba30c..5240a64 100644 --- a/data_src/models/icon_battery.blend +++ b/data_src/models/icon_battery.blend diff --git a/data_src/models/icon_engine.blend b/data_src/models/icon_engine.blend Binary files differindex 8976da1..c8cde34 100644 --- a/data_src/models/icon_engine.blend +++ b/data_src/models/icon_engine.blend diff --git a/data_src/models/icon_fueltank.blend b/data_src/models/icon_fueltank.blend Binary files differindex 7963afb..3eb897d 100644 --- a/data_src/models/icon_fueltank.blend +++ b/data_src/models/icon_fueltank.blend diff --git a/data_src/models/icon_generator.blend b/data_src/models/icon_generator.blend Binary files differindex 9efd0ba..7c3bfc9 100644 --- a/data_src/models/icon_generator.blend +++ b/data_src/models/icon_generator.blend diff --git a/data_src/models/icon_high_voltage.blend b/data_src/models/icon_high_voltage.blend Binary files differindex 508d34d..536627e 100644 --- a/data_src/models/icon_high_voltage.blend +++ b/data_src/models/icon_high_voltage.blend diff --git a/data_src/models/icon_hv_source.blend b/data_src/models/icon_hv_source.blend Binary files differindex ed17e53..7830e31 100644 --- a/data_src/models/icon_hv_source.blend +++ b/data_src/models/icon_hv_source.blend diff --git a/data_src/models/icon_ionthrust.blend b/data_src/models/icon_ionthrust.blend Binary files differindex f18aefd..445ade5 100644 --- a/data_src/models/icon_ionthrust.blend +++ b/data_src/models/icon_ionthrust.blend diff --git a/data_src/models/icon_laser_turret.blend b/data_src/models/icon_laser_turret.blend Binary files differindex d533caf..417b4b8 100644 --- a/data_src/models/icon_laser_turret.blend +++ b/data_src/models/icon_laser_turret.blend diff --git a/data_src/models/icon_wire.blend b/data_src/models/icon_wire.blend Binary files differindex d68db38..e4c589e 100644 --- a/data_src/models/icon_wire.blend +++ b/data_src/models/icon_wire.blend diff --git a/data_src/models/layer_electric.blend b/data_src/models/layer_electric.blend Binary files differindex 8cd5332..c3123aa 100644 --- a/data_src/models/layer_electric.blend +++ b/data_src/models/layer_electric.blend diff --git a/data_src/models/layer_fuel.blend b/data_src/models/layer_fuel.blend Binary files differindex a987af1..b773999 100644 --- a/data_src/models/layer_fuel.blend +++ b/data_src/models/layer_fuel.blend diff --git a/data_src/models/layer_hv.blend b/data_src/models/layer_hv.blend Binary files differindex ed25fa8..50a5e7a 100644 --- a/data_src/models/layer_hv.blend +++ b/data_src/models/layer_hv.blend diff --git a/data_src/models/level_1.blend b/data_src/models/level_1.blend Binary files differindex e3623bf..41ae96a 100644 --- a/data_src/models/level_1.blend +++ b/data_src/models/level_1.blend diff --git a/data_src/models/level_10.blend b/data_src/models/level_10.blend Binary files differindex 480363f..6efb91c 100644 --- a/data_src/models/level_10.blend +++ b/data_src/models/level_10.blend diff --git a/data_src/models/level_11.blend b/data_src/models/level_11.blend Binary files differindex db99249..afdf74f 100644 --- a/data_src/models/level_11.blend +++ b/data_src/models/level_11.blend diff --git a/data_src/models/level_12.blend b/data_src/models/level_12.blend Binary files differindex 9e57015..064a7b5 100644 --- a/data_src/models/level_12.blend +++ b/data_src/models/level_12.blend diff --git a/data_src/models/level_2.blend b/data_src/models/level_2.blend Binary files differindex e5057e6..3d561d3 100644 --- a/data_src/models/level_2.blend +++ b/data_src/models/level_2.blend diff --git a/data_src/models/level_3.blend b/data_src/models/level_3.blend Binary files differindex 3c38d43..6feaff6 100644 --- a/data_src/models/level_3.blend +++ b/data_src/models/level_3.blend diff --git a/data_src/models/level_3p2.blend b/data_src/models/level_3p2.blend Binary files differindex 77f0df4..ffba63c 100644 --- a/data_src/models/level_3p2.blend +++ b/data_src/models/level_3p2.blend diff --git a/data_src/models/level_4.blend b/data_src/models/level_4.blend Binary files differindex c9c0279..5fdb367 100644 --- a/data_src/models/level_4.blend +++ b/data_src/models/level_4.blend diff --git a/data_src/models/level_5.blend b/data_src/models/level_5.blend Binary files differindex c2ae60e..bd667b6 100644 --- a/data_src/models/level_5.blend +++ b/data_src/models/level_5.blend diff --git a/data_src/models/level_6.blend b/data_src/models/level_6.blend Binary files differindex eb09e14..e2972c0 100644 --- a/data_src/models/level_6.blend +++ b/data_src/models/level_6.blend diff --git a/data_src/models/level_7.blend b/data_src/models/level_7.blend Binary files differindex 9e89325..421d64e 100644 --- a/data_src/models/level_7.blend +++ b/data_src/models/level_7.blend diff --git a/data_src/models/level_8.blend b/data_src/models/level_8.blend Binary files differindex caa04c4..663f8b7 100644 --- a/data_src/models/level_8.blend +++ b/data_src/models/level_8.blend diff --git a/data_src/models/level_9.blend b/data_src/models/level_9.blend Binary files differindex efbd437..aa90a02 100644 --- a/data_src/models/level_9.blend +++ b/data_src/models/level_9.blend diff --git a/data_src/models/manage_chatbox.blend b/data_src/models/manage_chatbox.blend Binary files differindex a0f8a39..6acbe6e 100644 --- a/data_src/models/manage_chatbox.blend +++ b/data_src/models/manage_chatbox.blend diff --git a/data_src/models/manage_portrait.blend b/data_src/models/manage_portrait.blend Binary files differindex 46af79a..cade138 100644 --- a/data_src/models/manage_portrait.blend +++ b/data_src/models/manage_portrait.blend diff --git a/data_src/models/money_background.blend b/data_src/models/money_background.blend Binary files differindex 3d7d095..7184316 100644 --- a/data_src/models/money_background.blend +++ b/data_src/models/money_background.blend diff --git a/data_src/models/ph_start_screen.blend b/data_src/models/ph_start_screen.blend Binary files differindex caaa87d..7c087b9 100644 --- a/data_src/models/ph_start_screen.blend +++ b/data_src/models/ph_start_screen.blend diff --git a/data_src/models/pipe1111.blend b/data_src/models/pipe1111.blend Binary files differindex 9749e14..e1f9213 100644 --- a/data_src/models/pipe1111.blend +++ b/data_src/models/pipe1111.blend diff --git a/data_src/models/pipe1111_hint.blend b/data_src/models/pipe1111_hint.blend Binary files differindex ab77f59..b70263d 100644 --- a/data_src/models/pipe1111_hint.blend +++ b/data_src/models/pipe1111_hint.blend diff --git a/data_src/models/star1.blend b/data_src/models/star1.blend Binary files differindex c1bbeee..1aa7ea4 100644 --- a/data_src/models/star1.blend +++ b/data_src/models/star1.blend diff --git a/data_src/models/star2.blend b/data_src/models/star2.blend Binary files differindex 04e0107..3c05642 100644 --- a/data_src/models/star2.blend +++ b/data_src/models/star2.blend diff --git a/data_src/models/star3.blend b/data_src/models/star3.blend Binary files differindex 3a77529..0d3e49f 100644 --- a/data_src/models/star3.blend +++ b/data_src/models/star3.blend diff --git a/data_src/models/test_ship.blend b/data_src/models/test_ship.blend Binary files differindex 104dfa8..35805ee 100644 --- a/data_src/models/test_ship.blend +++ b/data_src/models/test_ship.blend diff --git a/src/level7.moon b/src/level7.moon index 14a3dc3..6027b10 100644 --- a/src/level7.moon +++ b/src/level7.moon @@ -1,56 +1,56 @@ -layer = require "layers" -game = require "game" -state = require "global" -graph = require "graph" -import Layer from layer -ui = require "ui" - -mod = ... - -mod.setup_level = () -> - state.current_level = 7 - --ret = am.group! - state.move_out_done = false - state.clear_layers! - flayer = Layer("fuel","fuel pipe",50,"data/layer_fuel.png") - elayer = Layer("electric","electric wire",10,"data/layer_electric.png") - state.add_layer(flayer) - state.add_layer(elayer) - state.money = 190 - state.ship("position").x = 800 - state.ship\action(coroutine.create(game.ship_move_in_co)) - state.ship("sprite").source = "data/level_7.png" - t1 = flayer\mark_square(15,4,"liquid fuel thruster") - flayer\mark_square(14,4,"fuel pipe") - t2 = flayer\mark_square(15,6,"liquid fuel thruster") - flayer\mark_square(14,6,"fuel pipe") - t3 = flayer\mark_square(15,9,"liquid fuel thruster") - flayer\mark_square(14,9,"fuel pipe") - t4 = flayer\mark_square(15,11,"liquid fuel thruster") - flayer\mark_square(14,11,"fuel pipe") - p1 = flayer\mark_square(7,8,"liquid fuel tank") - for i = 4,11 do - flayer\mark_square(13,i,"fuel pipe") - - t5 = elayer\mark_square(11,6,"ion thruster") - t6 = elayer\mark_square(11,9,"ion thruster") - p2 = elayer\mark_square(3,7,"battery") - - elayer.node.hidden = true - state.selected_layer = flayer - state.update = () -> - flat_tiles = flayer\flat_tiles! - flat_tiles2 = elayer\flat_tiles! - path1 = graph.path(t1,p1,flat_tiles,true,flayer.tiles_adjacent) - path2 = graph.path(t2,p1,flat_tiles,true,flayer.tiles_adjacent) - path3 = graph.path(t3,p1,flat_tiles,true,flayer.tiles_adjacent) - path4 = graph.path(t4,p1,flat_tiles,true,flayer.tiles_adjacent) - - path5 = graph.path(t5,p2,flat_tiles2,true,flayer.tiles_adjacent) - path6 = graph.path(t6,p2,flat_tiles2,true,flayer.tiles_adjacent) - if path1 and path2 and path3 and path4 and path5 and path6 - state.ship\action(coroutine.create(game.ship_move_out_co)) - - ui.reload_ui_layers! - -mod +layer = require "layers"
+game = require "game"
+state = require "global"
+graph = require "graph"
+import Layer from layer
+ui = require "ui"
+
+mod = ...
+
+mod.setup_level = () ->
+ state.current_level = 7
+ --ret = am.group!
+ state.move_out_done = false
+ state.clear_layers!
+ flayer = Layer("fuel","fuel pipe",50,"data/layer_fuel.png")
+ elayer = Layer("electric","electric wire",10,"data/layer_electric.png")
+ state.add_layer(flayer)
+ state.add_layer(elayer)
+ state.money = 190
+ state.ship("position").x = 800
+ state.ship\action(coroutine.create(game.ship_move_in_co))
+ state.ship("sprite").source = "data/level_7.png"
+ t1 = flayer\mark_square(15,4,"liquid fuel thruster")
+ flayer\mark_square(14,4,"fuel pipe")
+ t2 = flayer\mark_square(15,6,"liquid fuel thruster")
+ flayer\mark_square(14,6,"fuel pipe")
+ t3 = flayer\mark_square(15,9,"liquid fuel thruster")
+ flayer\mark_square(14,9,"fuel pipe")
+ t4 = flayer\mark_square(15,11,"liquid fuel thruster")
+ flayer\mark_square(14,11,"fuel pipe")
+ p1 = flayer\mark_square(7,8,"liquid fuel tank")
+ for i = 4,11 do
+ flayer\mark_square(13,i,"fuel pipe")
+
+ t5 = elayer\mark_square(11,6,"ion thruster")
+ t6 = elayer\mark_square(11,9,"ion thruster")
+ p2 = elayer\mark_square(3,7,"battery")
+
+ elayer.node.hidden = true
+ state.selected_layer = flayer
+ state.update = () ->
+ flat_tiles = flayer\flat_tiles!
+ flat_tiles2 = elayer\flat_tiles!
+ path1 = graph.path(t1,p1,flat_tiles,true,flayer.tiles_adjacent)
+ path2 = graph.path(t2,p1,flat_tiles,true,flayer.tiles_adjacent)
+ path3 = graph.path(t3,p1,flat_tiles,true,flayer.tiles_adjacent)
+ path4 = graph.path(t4,p1,flat_tiles,true,flayer.tiles_adjacent)
+
+ path5 = graph.path(t5,p2,flat_tiles2,true,flayer.tiles_adjacent)
+ path6 = graph.path(t6,p2,flat_tiles2,true,flayer.tiles_adjacent)
+ if path1 and path2 and path3 and path4 and path5 and path6
+ state.ship\action(coroutine.create(game.ship_move_out_co))
+
+ ui.reload_ui_layers!
+
+mod
|
