Slide 1

Slide 1 text

Vicky Twomey-Lee My First Maker Project: Print Your Own Adventure Game PyLadies Dublin, Tue May 19 2020

Slide 2

Slide 2 text

• Coder • Involved w/ Irish Tech Community • Advocates Diversity in Tech • Maker Advocate Who? My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 3

Slide 3 text

My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 4

Slide 4 text

@CodingGrace @PyLadiesDub @GlobalGameCraft @WWCodeDublin @DublinMaker My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 5

Slide 5 text

What…? Adventure Games https://www.flickr.com/photos/derekbruff/6373811675

Slide 6

Slide 6 text

Search & Play “The Hitchhiker's Guide to the Galaxy Game 30th Anniversary” http://adarkroom.doublespeakgames.com/ Try: A Dark Room (iOS/Android) Adventure games to check out - free! My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 7

Slide 7 text

What…? Raspberry Pi My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 8

Slide 8 text

What…? CircuitPython My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 9

Slide 9 text

What…? MicroPython My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 10

Slide 10 text

What…? CircuitPython My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 11

Slide 11 text

What…? Adafruit Industries My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 12

Slide 12 text

My Maker Project My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 13

Slide 13 text

*note: not extensive • Raspberry Pi with latest Circuit Python • Adafruit mini-thermal printer • Arcade buttons x3 • Laptop with Python 3 • Mu Editor • VNC Viewer Project Ingredients My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 14

Slide 14 text

What…? pi-top My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 15

Slide 15 text

Inspiration “Der Choosatron” Berlin Game Science Center My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 16

Slide 16 text

My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 17

Slide 17 text

• Case for thermal printer • Stand for the arcade buttons 3D Printing My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 18

Slide 18 text

Printing an image with the thermal printer https://gph.is/g/ZPWWyjV My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 19

Slide 19 text

Printing an image Solution: Switched CircuitPython library My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 20

Slide 20 text

Switched to pi-top [4] Where’s the printer? https://gph.is/g/ZPWWyjV My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 21

Slide 21 text

My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 22

Slide 22 text

Spreadsheet -> JSON • Looked at Twine • Chose Spreadsheets export to CSV • Python convert CSV to JSON Sample data https://gph.is/2d8XnGR My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 23

Slide 23 text

Spreadsheet Sample My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 24

Slide 24 text

CSV to JSON Code

Slide 25

Slide 25 text

Main code Setting up electronic-y bits & get game data My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 26

Slide 26 text

Main code Game class My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 27

Slide 27 text

Main code Playing the game

Slide 28

Slide 28 text

my thoughts after the project • More refactoring • Improvements like case covering and make it look as one unit • Switch to Raspberry Pi 3 or even a Raspberry Pi Zero • Realise I found it hard writing stories, plot generators online are helpful for random data So… https://gph.is/1OhAIXM My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 29

Slide 29 text

Quick video of project My First Maker Project: Print Your Own Adventure Game | PyLadies Dublin | Vicky Twomey-Lee

Slide 30

Slide 30 text

Video of project in action: https://flic.kr/p/2iNDPVF

Slide 31

Slide 31 text

pexels.com/photo/big-red-heart-on-dark-background-6371/ Thank You! @whykay | @eventgeekie My First Maker Project: Print Your Own Adventure Game PyLadies Dublin, Tue May 19, 2020 https://github.com/whykay/text-based-game-thermal-printer

Slide 32

Slide 32 text

UP NEXT How Python changed my life in 9 months - True Story by Débora Cornetta O'Brien