From b36a4af4efd246d15474843566daa278ca060577 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Sun, 19 Jun 2022 19:57:39 -0500 Subject: [PATCH] added script to make a family-friendly version of the game --- .gitignore | 3 +- README.md | 4 +++ res/candywar.png | Bin 0 -> 744 bytes res/candywar.sh | 79 +++++++++++++++++++++++++++++++++++++++++++++++ res/slangin.png | Bin 0 -> 983 bytes 5 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 res/candywar.png create mode 100755 res/candywar.sh create mode 100644 res/slangin.png diff --git a/.gitignore b/.gitignore index 97de679..9b151ae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build/ -slangin.hex +*.hex .ccls-cache/ +res/candywar/ diff --git a/README.md b/README.md index 3e7727a..91c0d51 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,10 @@ arduino-cli upload -b arduino:avr:leonardo -p /dev/ttyACM1 slangin.hex Your port path (`-p` argument) may differ depending on your system. +## CandyWar + +Run `res/candywar.sh` to generate an alternate version of the game if you have delicate sensibilities. + ## Resources Font libraries used: diff --git a/res/candywar.png b/res/candywar.png new file mode 100644 index 0000000000000000000000000000000000000000..1c038d43edf60a09521b99ffe8ac004a0aa51249 GIT binary patch literal 744 zcmVP)EX>4Tx04R}tkv&MmKpe$iQ?()$hZYp+kfA!YAS&XhRVYG*QY*CTU~=h)(4-+r zad8w}3l4rPRvlcNb#-tR1i=pwM<*vm7b)?7NufoI2gm(*ckglc4iFj@rkY)2fT~$W zCYca(`4utniXMb8h!`RgGxgbYIt9=1bq^n3@8Uem``n+SUn!Uj@QK7TOgAjzb>gW_ zOXs{#9A;%nAwDOL8FWG7N3P2*zi}=(Ebz>*kLKIC9czqAc+MmA`KBTYS=&p7UHyOq?pLie!{~)?D*5PFL`jhl} zTZZ`JLswU5&WAWL1PZh(VB zV6;TpYaZ|J?d_CX>@2HM@dakSAh-}0002LNkl2Gs`sqSnWj@&>KJ*l!Zlt+sbqWErn}NG^qS;bk|m`c?IyRahBcQIX0FesFqj; zpzTeAqjM<(7}Q{%QjDm>txkU6A+=T~log!yJ|(s1aPaiT$jY??B_g`K*#W?Oo(`rn zj|wtiWX9&b{*`I^I@FrV+iaR$QTXa)D!=4+N2dhZ`bS|wCA CandyWar + +rm -rf candywar +mkdir candywar +cp ../*.ino candywar/ +cp -r ../src candywar/ +mv candywar/slangin.ino candywar/candywar.ino + +for file in candywar/*.ino; do + sed -i "s/Slangin'/CandyWar/g" "$file" + sed -i "s/Drugs/Candy/g" "$file" + sed -i "s/drugs/candy/g" "$file" + sed -i "s/Loan Shark/Rich Buddy/g" "$file" + sed -i "s/Cocaine/P.Sugar/g" "$file" + sed -i "s/Heroine/Hershey/gi" "$file" + sed -i "s/Acid/Aero/gi" "$file" + sed -i "s/Weed/Mars/g" "$file" + sed -i "s/Speed/Sours/g" "$file" + sed -i "s/Ludes/Lolly/g" "$file" + sed -i "s/ludes/lolly/g" "$file" + sed -i "s/Trenchcoat/Candy Sack/g" "$file" + sed -i "s/trenchcoat/candy sack/g" "$file" + sed -i "s/more pockets/more space/" "$file" + sed -i "s/Pigs/Moms/gi" "$file" + sed -i "s/doctor to sew you/dentist to fix/" "$file" + sed -i 's/"up?"/"your teeth?"/' "$file" + sed -i "s/You hallucinate on the/You eat it all but/" "$file" + sed -i "s/wildest trip of your/forget to brush your/" "$file" + sed -i "s/life, stumble onto the/teeth. They all rot/" "$file" + sed -i "s/subway tracks, and get/and you can't eat/" "$file" + sed -i "s/creamed by a train./solid food anymore./" "$file" + sed -i "s/raid!!!!/bake-off!!!!/" "$file" + sed -i "s/Moms made a big/Powdered sugar/" "$file" + sed -i "s/coke bust!/shortage!/" "$file" + sed -i "s/Addicts are/Chocoholics are/" "$file" + sed -i "s/Rival dealers are/Kids at school/" "$file" + sed -i "s/selling cheap/are selling cheap/" "$file" + sed -i "s/Officer Hardass/Your Mother/g" "$file" + sed -i 's/" of his"/" of her"/' "$file" + sed -i "s/deputies are/friends are/" "$file" + sed -i "s/baretta/sleep spray/" "$file" + sed -i "s/\.44 magnum/stink spray/" "$file" + sed -i "s/saturday night/Mom repellant/" "$file" + sed -i "s/special for/spray for/" "$file" + sed -i "s/some weed/some gum/" "$file" + sed -i "s/that smells/that looks/" "$file" + sed -i "s/like good stuff/mostly unchewed/" "$file" + sed -i "s/smoke it/eat it/" "$file" + sed -i "s/You were mugged/You gave a bit/" "$file" + sed -i "s/in the subway!/to charity!/" "$file" + sed -i "s/on a dead dude/in a lunch box/" "$file" + sed -i "s/guns/spray/g" "$file" + sed -i "s/You killed one/A Mom gave up/" "$file" + sed -i "s/You killed all of/They all gave up!/" "$file" + sed -i "s/them! You found /You snatched /" "$file" + sed -i "s/dollars on Officer/bucks from purses/" "$file" + sed -i "s/Hardass' carcass/during the chase/" "$file" + sed -i "s/firing at/nagging/" "$file" + sed -i "s/You're dead/You're caught/g" "$file" + sed -i "s/Guns/Spray/" "$file" + sed -i "s/A Fight/A Spray/" "$file" + sed -i "s/0x00, 0x00, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x78, 0x07, 0x06, 0x78, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x40, 0x00,/0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xf0, 0xe8, 0xc4, 0x82, 0x02, 0x03, 0x3f, 0x3f, 0x0f, 0x87, 0x82, 0xc2, 0xc4, 0xc8, 0xf0, 0xc0,/" "$file" + sed -i "s/0x00, 0x00, 0x03, 0x3c, 0xc1, 0x02, 0x04, 0x08, 0x10, 0x20, 0xc0, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0xc0, 0x20, 0x10, 0x08, 0x04, 0x04, 0xc2, 0x39, 0x07, 0x00, 0x00,/0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x70, 0x88, 0xa8, 0x0f, 0xf1, 0x81, 0x01, 0x81, 0xc1, 0xe1, 0xf0, 0xfc, 0xf0, 0x00, 0x81, 0x81, 0x43, 0x27, 0x1f, 0x07,/" "$file" + sed -i "s/0x38, 0x50, 0x90, 0x90, 0x90, 0x23, 0x24, 0x48, 0x50, 0x60, 0x81, 0x26, 0x08, 0xe7, 0x00, 0x90, 0xe7, 0x08, 0x26, 0x01, 0x60, 0x50, 0x48, 0x26, 0xa1, 0x90, 0x90, 0x90, 0x50, 0x30,/0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0xa1, 0x56, 0x2c, 0x14, 0x34, 0x22, 0x41, 0x76, 0x08, 0x0d, 0x09, 0x07, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,/" "$file" + sed -i "s/0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x22, 0x32, 0x2a, 0x24, 0x22, 0x10, 0x0a, 0x08, 0x0c, 0x08, 0x12, 0x21, 0x24, 0x2a, 0x32, 0x02, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,/0x30, 0x28, 0x14, 0x0a, 0x05, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,/" "$file" + + sed -i "s/Bronx/Sweet Suites/" "$file" + sed -i "s/Ghetto/Ice Cream Rd/" "$file" + sed -i "s/Central Park/Chocoland/" "$file" + sed -i "s/Manhatten/Gummy Forest/" "$file" + sed -i "s/Coney Island/Soda Swamp/" "$file" + sed -i "s/Brooklyn/Candy Castle/" "$file" +done + +arduino-cli compile -b arduino:avr:leonardo -e candywar/ +cp candywar/build/arduino.avr.leonardo/candywar.ino.hex candywar.hex +sim_arduboy -k 1073741906,1073741905,1073741904,1073741903,104,116 -p 6 ./candywar.hex diff --git a/res/slangin.png b/res/slangin.png new file mode 100644 index 0000000000000000000000000000000000000000..61f716ec02a7662ce05667898978f8d4eff2d8a0 GIT binary patch literal 983 zcmV;|11S87P)EX>4Tx04R}tkv&MmKpe$iQ?()$!DbLq$WWauh>AFB6^c+H)C#RSn2&xzlZGV4 z#ZhoAIQX$xb#QUk)xlK|1V2C=otzY1q{ROvg%&X$9QWhhy~o`x%a{|zBz(u$JpydKi?J;KbAOIrHD@V6Kp>t~4AUmwAfDc| z4aWP#yi$}@;&b9LlP*a7$aLA`H^v2*IhM(r>C`+iPb?JLSZ-sbXlle$#8Fk#DWA)D ztTNtWtd*-u^PcR5;hes*%ygPVNMI355FtQD6(y8mBSx!EiiH&I$9?>Ru3sdVOs*0X zax9<%4U+2z`-9)zTKUNdFDV=cI$s>;V+0880*#vEd>=bb;{*sk16O*>U#SB#pQP7X zTJ#9$+XgPKTbjHFTBYcw$00009a7bBm001r{001r{0eGc9b^rhX2XskI zMF-{v6B8y8b}Qi#0000PbVXQnLvL+uWo~o;Lvm$dbY)~9cWHEJAV*0}P*;Ht7XSbO z!AV3xRCwC$nO$~-APh!F&TNAHFOF^W!E-1@2&p7>3im!Kj)-6Wi1T^@0000000000 z0KgAYN{C>tQosh!+906UKeH-9V5<@l@GuzQGYnvuSW-%>rYT32WYwxm@;VkS5*{jj zr=S?)ymrf%Xmgc<;p{1;7~}F;+e;;33pEU`GB(!^0!Nj~A$cz0bomryu2PtcvQ5&C zpGsk7_MO#tQK^^Ln$a{&f;(iPd6mK^yic{iHf-fI^L$q4*ee~v!HoO&O4DB|a>D?I zDusJFuF7jB#Xy+h8Y0a>Ig*-p4Ie#I2{bANk52EmOCS1RjImnS`7(JhpO#*BecS4; z+pc4&QqOd^Po1{dy)LGzbxp6IPjP-Ky{l`dJDe8Iu8|K)N4t7Z^$d+?X&f;BMo=xg zq+bL(snqtht8)zpZ-+%McQ;3_dplvDH;kK^s%xoI@2f>~#j;WlHUyelV!r*KSLvv3 zs1iaM{$-eJB6Q&v%uyx%$BhkpU=Nj!p_Q^#t0J?B*DGtXmr6T-d466cVIP7G+*MNk z^RT%M=2bd0G1ctpx6S^j1ONa400000000000000wz5ov%GX;K?fNTH&002ovPDHLk FV1hQ5osR$j literal 0 HcmV?d00001