Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 13:35 27 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 LCD Demo

Author Message
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1113
Posted: 05:30am 26 Oct 2023
Copy link to clipboard 
Print this post

Good morning
I already had this for PicoMite VGA and because I was up so early today, I rewrote it for the Non VGA Pico.
A little program to impress friends  

'Bouncing Ball Demo by Martin Herhaus 2022
'litle BLIT/Sprite Demo for MM Basic
'LCD Version 2023
Colour RGB(black),RGB(white)
Dim s(8,2):sx=0:sy=0
  For f=1 To 8:s(f,0)=sx:s(f,1)=sy:Inc sx,80
If sx>319 Then sx=0:sy=80
Next

FRAMEBUFFER create:FRAMEBUFFER write f
Load image "ball.bmp"
an=1:rot=-1:BX=0: BY=0: BDir=1
FRAMEBUFFER write n
CLS
'Little endless loop until ESC is pressed
Do
 by=Int(Sin(sn*Pi/128)*160):Inc SN
 SN=SN And 255
 If by<0 Then BY=-BY
 BY=160-by
 FRAMEBUFFER write f
 Blit read 1,s(an,0),s(an,1),80,80
 FRAMEBUFFER write n
 Blit write 1,bx,by:x=bx:y=by
 Box bx-6,by-6,90,90,6,RGB(white)
 Blit close 1
 Inc an,rot
 If an=9 Then an=1
 If AN=0 Then an=8
 Inc bx,bdir:If BX>=232 Or BX<1 Then bdir=-bdir:rot=-rot
  If Inkey$=Chr$(27) Then Exit
  Pause 5
Loop
FRAMEBUFFER close

the required BMP file should be in the same directory.

ball (2).zip
Edited 2023-10-26 15:32 by Martin H.
'no comment
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 11:32am 26 Oct 2023
Copy link to clipboard 
Print this post

Very nice, thank you. Good demo.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 11:33am 26 Oct 2023
Copy link to clipboard 
Print this post

*%)($&^! double post
Edited 2023-10-26 21:34 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1113
Posted: 12:22pm 26 Oct 2023
Copy link to clipboard 
Print this post

  lizby said  Very nice, thank you. Good demo.

basically the great-grandchild of my 6809 assembler version from 1986 for the Dragon 32
Edited 2023-10-26 22:25 by Martin H.
'no comment
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 396
Posted: 12:37pm 26 Oct 2023
Copy link to clipboard 
Print this post

Wow, nice work!

  Quote  I already had this for PicoMite VGA


Did I miss something? Where can I get the VGA version?    

Greetings
Daniel
Edited 2023-10-26 22:37 by Amnesie
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1113
Posted: 01:01pm 26 Oct 2023
Copy link to clipboard 
Print this post

  Amnesie said  Wow, nice work!

  Quote  I already had this for PicoMite VGA


Did I miss something? Where can I get the VGA version?    

Greetings
Daniel

Hi Daniel
it was here but i think it is easier just to add the MODE 2 to this Version here...
I wrote this on PicoMiteVGA V5.07.04 there were no sprites, just Blit, in the VGA version. You can take the old version and add a ",0" to the sprite write command to make them opaque
Edited 2023-10-26 23:19 by Martin H.
'no comment
 
Print this page


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

© JAQ Software 2024