element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Hack the Holidays
  • Challenges & Projects
  • Project14
  • Hack the Holidays
  • More
  • Cancel
Hack the Holidays
Hack the Holidays Forum A simple game on the RPI Pico
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Hack the Holidays to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 21 replies
  • Subscribers 37 subscribers
  • Views 4042 views
  • Users 0 members are here
Related

A simple game on the RPI Pico

scottiebabe
scottiebabe over 2 years ago

Pimoroni have recently included support for basic 8x8 pixel sprites in micropython https://github.com/pimoroni/pimoroni-pico/tree/55821d2896ac12732c4e84142ba1fb76d4382dc5/micropython/modules/picographics#sprites 

So, I would like to try and make a simple holiday game on a RPI Pico.

I am thinking of something along the lines of:

image

Where the objective of the game is to avoid airborne objects while dropping presents into chimneys.

Two buttons for Rudolf up/down. Then a third button for santa to drop a present.

I got this Pimoroni example to run with my Pico Display: https://github.com/pimoroni/pimoroni-pico/blob/main/micropython/examples/tufty2040/awesome_game.py 

So, I can use that as a starting point. I'm still not sure how I will handle a scrolling scene.

I'll post a quick video of the example code running later.

Edit:

The 8-bit color gives such a cool retro vibe, I love it!

image

A *Very* early proof of concept:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Why can't I comment? ... lol

  • Sign in to reply
  • Cancel

Top Replies

  • baldengineer
    baldengineer over 2 years ago +6
    What a cute idea! Maybe start with a static screen where Santa goes back and forth dropping presents into a static set of chimneys. The challenge element could be "smoke" coming out of the chimney means…
  • beacon_dave
    beacon_dave over 2 years ago +5
    You could perhaps drop baubles onto the Xmas trees causing them to light up/decorate. Brussel sprouts would make good airborne objects to avoid. Perhaps some carrots for the reindeer to collect and mince…
  • dougw
    dougw over 2 years ago in reply to scottiebabe +5
    irfanview You can select the target number of pixels, edit each pixel, select the color depth, select the file format, etc.
  • beacon_dave
    beacon_dave over 2 years ago

    You could perhaps drop baubles onto the Xmas trees causing them to light up/decorate.

    Brussel sprouts would make good airborne objects to avoid. Perhaps some carrots for the reindeer to collect and mince pies for the big fat fella in tow?

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Cancel
  • baldengineer
    baldengineer over 2 years ago

    What a cute idea!

    Maybe start with a static screen where Santa goes back and forth dropping presents into a static set of chimneys. The challenge element could be "smoke" coming out of the chimney means you cannot drop presents?

    Seems like that would get all of the mechanics in place before you attempt a scrolling playfield.

    I dunno, I'm just armchair coding!

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 2 years ago

    Nice idea!

    If it's anything like Paperboy (don't know if you ever played that) it will be a lot of fun. Loved that game : )

    You could have points knocked off for accidentally smashing people's skylights/windows with your presents etc : ) 

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
  • baldengineer
    baldengineer over 2 years ago in reply to shabaz

    That was my favorite game to play on NES when I was an actual paperboy!

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
  • scottiebabe
    scottiebabe over 2 years ago in reply to beacon_dave

    Lol not the brussel sprouts! 

    I do love the idea of collectable items too! In additions perhaps cookies and hot cocoa. At the same time I'm trying to think of objects that would look reasonable as an 8x8 pixel icon. I think all the items you suggested are reasonable Slight smile

    Perhaps at some point Rudolph could get a nose upgrade to a laser beam!

    I could avoid air planes snow flakes mountains maybe lol

    I'm trying to pick something not too difficult. Making a game in python on a microcontroller totally blows my socks off!

    You could of course create a tree decoration program to add as many baubles as your heart desires:)

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • scottiebabe
    scottiebabe over 2 years ago in reply to baldengineer

    Aww, thanks for the kind words!

    I definitely agree I should focus on trying to walk before running! Lol Chimney smoke that's adorable I love it!

    I guess I could make a bunch 8x8 icons with different smoke patterns and try to cycle through them to give the appearance of rising smoke.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • beacon_dave
    beacon_dave over 2 years ago in reply to scottiebabe

    too many brussel sprouts and you could incur a reindeer poo penalty cut-scene for comic effect.

    8x8 pixel = luxury... In my day it was one pixel and use your imagination Slight smile

    falling space junk might be in-keeping these days?

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • scottiebabe
    scottiebabe over 2 years ago in reply to shabaz

    I had to watch a YouTube video of the game to refresh my memory! I  totally amazed at what they were able to achieve for the time! Breakage bonus points, that's too funny!

    Dropping presents through the windows and skylights for bonus points, love it!

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
  • dougw
    dougw over 2 years ago

    Very cool. Sounds like Tetris but with obstacles and momentum. Maybe just avoid blue stars, since you don't want to cross a blue star...Star

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Cancel
  • scottiebabe
    scottiebabe over 2 years ago

    Here is an image of the 2 sprite sheets I found at: https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/examples/tufty2040 

    image 

    image

    Perfect for a pirate game! But, there is no santa or rudolph lol

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube