From 308e894deb626db9a8f19b00dd0d4e836179668e Mon Sep 17 00:00:00 2001 From: duckduckdoof Date: Tue, 21 Jan 2025 16:40:46 -0500 Subject: [PATCH 1/2] Initial commit --- .gitignore | 11 +++ maps/default-map.json | 86 ++++++++++++++++++++++++ res/connector.png | Bin 0 -> 144 bytes res/crops.png | Bin 0 -> 221 bytes res/factory.png | Bin 0 -> 161 bytes res/ground.png | Bin 0 -> 144 bytes res/housing.png | Bin 0 -> 157 bytes res/hydropower.png | Bin 0 -> 245 bytes res/iron.png | Bin 0 -> 121 bytes res/logger.png | Bin 0 -> 153 bytes res/miner.png | Bin 0 -> 223 bytes res/powerpole.png | Bin 0 -> 230 bytes res/trees.png | Bin 0 -> 123 bytes res/water.png | Bin 0 -> 121 bytes tile-demo.py | 151 ++++++++++++++++++++++++++++++++++++++++++ 15 files changed, 248 insertions(+) create mode 100644 maps/default-map.json create mode 100644 res/connector.png create mode 100644 res/crops.png create mode 100644 res/factory.png create mode 100644 res/ground.png create mode 100644 res/housing.png create mode 100644 res/hydropower.png create mode 100644 res/iron.png create mode 100644 res/logger.png create mode 100644 res/miner.png create mode 100644 res/powerpole.png create mode 100644 res/trees.png create mode 100644 res/water.png create mode 100644 tile-demo.py diff --git a/.gitignore b/.gitignore index 15201ac..5b88fa5 100644 --- a/.gitignore +++ b/.gitignore @@ -169,3 +169,14 @@ cython_debug/ # PyPI configuration file .pypirc + +# Custom Omissions +maps/*.tiled-project +maps/*.tiled-session +maps/*.tsx +maps/*.tmx + +res/*.aseprite + +template.py +test-demo.py diff --git a/maps/default-map.json b/maps/default-map.json new file mode 100644 index 0000000..1d0f16c --- /dev/null +++ b/maps/default-map.json @@ -0,0 +1,86 @@ +{ "compressionlevel":-1, + "height":20, + "infinite":false, + "layers":[ + { + "data":[3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 4, 4, 4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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + "height":20, + "id":5, + "name":"Structures", + "opacity":1, + "type":"tilelayer", + "visible":true, + "width":30, + "x":0, + "y":0 + }], + "nextlayerid":12, + "nextobjectid":3, + "orientation":"orthogonal", + "renderorder":"right-up", + "tiledversion":"1.11.1", + "tileheight":32, + "tilesets":[ + { + "firstgid":1, + "source":"world-tiles.tsx" + }, + { + "firstgid":5, + "source":"bulidings.tsx" + }], + "tilewidth":32, + "type":"map", + "version":"1.10", + "width":30 +} \ No newline at end of file diff --git a/res/connector.png b/res/connector.png new file mode 100644 index 0000000000000000000000000000000000000000..4a83d7b68f189a397069d451149b4db2f6e9c649 GIT binary patch literal 144 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}UY;(FArY-_ zuNiVN7;rcTzP(wL^ZwepONLX#PMv?I#4kQM(e2Wk;?Sj=(|0rkGXix0LDB!L?VtZJ jF{}|2HcbP0l+XkKY62@s literal 0 HcmV?d00001 diff --git a/res/crops.png b/res/crops.png new file mode 100644 index 0000000000000000000000000000000000000000..cd9eee9f88e27e332f06c81401da16b3bdf0b72d GIT binary patch literal 221 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}(>+}rLn2z= zPV*Kzpupkmy!`uqqr11xg$P}_$hwBJ@}C3qgBudp{XR2kFfi=6=~Di7;|$5E?r$5i z)@A6tV$M}83yuFgZyomp!|<>B-3_wNy?Wt2qnATzPs`1#n>X&|7ja+|Iq;KVrl$q# zg0~Hk9Oe95@5)LvCVXBRc|a^wE%S$B;Mw@2osMqI8Um+SrZR*b`B}SwA?!Hw)EPDg Uj87M`0-ea<>FVdQ&MBb@0MCb1TmS$7 literal 0 HcmV?d00001 diff --git a/res/factory.png b/res/factory.png new file mode 100644 index 0000000000000000000000000000000000000000..0cb277ad0070146bdf5f7716a5d9c43386361a31 GIT binary patch literal 161 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}(Vi}jArY-_ zuUm65CVt`FTdNMp1>Y(6eOTvw>-~*c?K_s_q@V>uo6#KKbLh*2~7Y4 Ci7`b0 literal 0 HcmV?d00001 diff --git a/res/ground.png b/res/ground.png new file mode 100644 index 0000000000000000000000000000000000000000..56c4f54572229f23ee69cbd7ea7763a5eba44ffb GIT binary patch literal 144 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}UY;(FArY-_ zuWuA&5MXe=Sa6QbYH977lmO`)4$g}=IL`Vnej;1gZN2-kNh(_>={_#bbv^w_9Hg$Z@d0x}*`?CD*Sd`(pG+}K@F~g)SzZblcW54Y$?VEjE7^sn< z!PfW7?APf>g*%v!>HhdB@wH1GB+S5Y=D7*4MZ74VL(0+p#UKGsS3j3^P6pfi@Ln2z= zPWR?(P~dT~zW4uJX=;+k{tV~d63!H>Ju6k3I%bGn+qmhc*@g2A#=^ySeY}3{<%kJ& zbiDk=mBFF%@Wytp2WKU8*2W126!J{k=6Rr7@l#&K@4re57^jvs|E_w{BbMvW^n_<| z$>W>n&0HLW*%wIlKH!&Lp>w(6$sH%%x0Ua`W*pF{6PKHv@=Q_G(Z#~LXB{Kw!^vB> tG`{-P#+dye?c7q{5V3FjAHL_EqyI9%@D|_qexTDCJYD@<);T3K0RXs6V<-Rs literal 0 HcmV?d00001 diff --git a/res/iron.png b/res/iron.png new file mode 100644 index 0000000000000000000000000000000000000000..e27c67f667ab6db828a92a698929ecd25d7e9b64 GIT binary patch literal 121 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}#-1*YArY-_ z&l&PE81S%c^lvO*C31teN5_uodDZrMG3(jIKvhVfK}GUGE7OUI-}22sqMojPF6*2U FngEKy9#sGU literal 0 HcmV?d00001 diff --git a/res/logger.png b/res/logger.png new file mode 100644 index 0000000000000000000000000000000000000000..b86d5328bb95ff4a54617a890b51b317b8b7e2bd GIT binary patch literal 153 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}!JaOTArY-_ zuN!hPDDXI6bldZP>gyFR6gY$q&cC>{|B|AXl2MQ5xrYq%7_R(O+`q%q-h_ZXe@EW2O(b3m9k5`}`G>QNK literal 0 HcmV?d00001 diff --git a/res/miner.png b/res/miner.png new file mode 100644 index 0000000000000000000000000000000000000000..b78ac6f719b7f5703ebc9db4ff72012e0c497c5d GIT binary patch literal 223 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}Gd*1#Ln2z= zPIu%wpuodozV!e9O}1fcOlOClP_-0$%(F`(i$O~0^{JNW3=DT3w_m&GG2^D-iLCQa zIluI(KiFKfKEb`|FVdQ&MBb@0Kh?0UjP6A literal 0 HcmV?d00001 diff --git a/res/powerpole.png b/res/powerpole.png new file mode 100644 index 0000000000000000000000000000000000000000..c34e6bef71b8bbe48eb1083567d94df16a20e039 GIT binary patch literal 230 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}3p`yMLn2z= zPQS=?K!L-x^v(bJpYK+xCHlrbVEYweZWHI+)yXkM!aePiKf|0b#RsoNjBl4rv|ey9 zLbz|@y(Z>{oA;JoUG;U_3g(Knm%jx5_S}{b+IUrUJvYNU?;j-XjS`({%pm-wl{*8Q-bB+ Date: Tue, 21 Jan 2025 16:44:51 -0500 Subject: [PATCH 2/2] Updated README --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fc95282..66a54ba 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,16 @@ # my-sim-game -A quicker, easier version of Mycropolis, using Python Arcade + +A quicker, easier version of Mycropolis + +Author: Caleb Scott + +--- + +# Libraries and Software + +This project uses: + +* [Python Arcade](https://api.arcade.academy/en/latest/index.html) as the game engine (instead of PyGame) +* [Tiled](https://www.mapeditor.org/) for tilemapping +* [Aseprite](https://www.aseprite.org/) for tiles/textures. +