Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:48 28 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : [PicoMite] 1D PONG-like game

Author Message
fmafma

Newbie

Joined: 30/06/2023
Location: France
Posts: 31
Posted: 07:18am 05 Jul 2023
Copy link to clipboard 
Print this post

Hi!

Here is my first program on PicoMite:

https://wiki.logre.eu/index.php/LOG-O-PONG_2023#Logiciel

This is a 1D PONG-like game, running on a strip LED. Pretty much like this one:

https://hackaday.io/project/177028-diy-arduino-1d-pong-game-with-ws2812-led-strip

(there are many more things to add).

I tried to apply some of your tips about speed optimization; feel free to comment!

Thanks,
Frédéric
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4247
Posted: 08:32am 05 Jul 2023
Copy link to clipboard 
Print this post

Nice !!

I never thought this would be something that would be playable...

Volhout
PicomiteVGA PETSCII ROBOTS
 
fmafma

Newbie

Joined: 30/06/2023
Location: France
Posts: 31
Posted: 10:06am 05 Jul 2023
Copy link to clipboard 
Print this post

And the game is fun!

Ok, in its current form, the code is just fast enough to get a decent speed; if I add features, I will probably need to overclock the RP2040.
Frédéric
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 02:35pm 05 Jul 2023
Copy link to clipboard 
Print this post

No need to worry about overclocking. 384MHz is perfectly fine on most of them and doesn't raise the chip temperature much even when left running all day. A few of the cheap Chinese clones may have problems over 200MHz, but that appears not to be the fault of the RP2040. We are guessing that they are using slower flash chips.

That Arduino version looks great. If you can get something even approaching that in MMBasic, rather than compiled C++, it'll be even better. :)  Your code is very neat!
Edited 2023-07-06 00:36 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
fmafma

Newbie

Joined: 30/06/2023
Location: France
Posts: 31
Posted: 06:47pm 05 Jul 2023
Copy link to clipboard 
Print this post

Thanks!
Frédéric
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024