Search found 28 matches
- Sat Mar 08, 2025 2:44 pm
- Forum: Code snippets
- Topic: Bouncing Balls - Pixel perfect motion blitting (non-sprites)
- Replies: 6
- Views: 28000
Re: Bouncing Balls - Pixel perfect motion blitting (non-sprites)
Thanks Giovanni! There are many ways to achieve smooth motion on position restricted blittings. It all depends on what one wants to do or what the game needs to find the best appropriate technique. My free-intention examples have downsides like objects going over others or a too big of a bitmap for ...
- Fri Mar 07, 2025 10:36 pm
- Forum: Code snippets
- Topic: Bouncing Balls - Pixel perfect motion blitting (non-sprites)
- Replies: 6
- Views: 28000
Re: Bouncing Balls - Pixel perfect motion blitting (non-sprites)
I also made one last version attempting to make the balls more properly bounce. It works ok, but I just hacked the code. Anyways, This is the result: https://i.ibb.co/8LcJvg7G/MESS.gif And here this one final version: Press any key to start. 'Bouncing Balls v1.2 '--- BOOT bo: SCREEN #14:COLOR #0,#5:...
- Fri Mar 07, 2025 10:29 pm
- Forum: Code snippets
- Topic: Bouncing Balls - Pixel perfect motion blitting (non-sprites)
- Replies: 6
- Views: 28000
Re: Bouncing Balls - Pixel perfect motion blitting (non-sprites)
Here is the code with all balls moving over a white background. 'Bouncing Balls v1.1 '--- BOOT bo: SCREEN #14:COLOR #0,#5:CLS 3 :'Set PMODE4 / COLOR B&W / Clear screen black b:=LOAD ATLAS("ball.png") FRAME SIZE (24,16) :'Load bitmap and frames '---VARIABLES DIM x(8):DIM y(8) :'Ball X a...
- Fri Mar 07, 2025 2:53 pm
- Forum: Code snippets
- Topic: Bouncing Balls - Pixel perfect motion blitting (non-sprites)
- Replies: 6
- Views: 28000
Re: Bouncing Balls - Pixel perfect motion blitting (non-sprites)
MULTIBALL!
Go for the Jackpot!

Go for the Jackpot!


- Fri Mar 07, 2025 4:54 am
- Forum: Support
- Topic: Help making a basic game for CoCo 2
- Replies: 6
- Views: 31736
Re: Help making a basic game for CoCo 2
Hello back Giovanni,
I made a post on the Snippet session with an example.
It bounces a little ball around the screen in pmode 4 artifact colors.
viewtopic.php?p=364#p364
It should help you doing the pixel perfect motion.
Also, I can't see your posted images.
I made a post on the Snippet session with an example.
It bounces a little ball around the screen in pmode 4 artifact colors.
viewtopic.php?p=364#p364
It should help you doing the pixel perfect motion.
Also, I can't see your posted images.
- Fri Mar 07, 2025 4:49 am
- Forum: Code snippets
- Topic: Bouncing Balls - Pixel perfect motion blitting (non-sprites)
- Replies: 6
- Views: 28000
Re: Bouncing Balls - Pixel perfect motion blitting (non-sprites)
Here is the commented code and needed assets. I made a total of 8 different colored balls. Later I hope to make em all move. Change the WAIT value at the end to control speed. You can mess with F to see the other balls. https://i.ibb.co/xtnD1x73/ball.png 'Bouncing Balls v1.0 '--- BOOT SCREEN #14:COL...
- Fri Mar 07, 2025 4:41 am
- Forum: Code snippets
- Topic: Bouncing Balls - Pixel perfect motion blitting (non-sprites)
- Replies: 6
- Views: 28000
Bouncing Balls - Pixel perfect motion blitting (non-sprites)
It is not unusual that within 8bit computers, fast blitting graphics may have some form of position limitation. On some machines you have a grid where to place bitmaps, like tiles. Others you are limited to certain horizontal positions. One can shift bytes in memory to overcome these problems but th...
- Thu Mar 06, 2025 3:47 pm
- Forum: Support
- Topic: Help making a basic game for CoCo 2
- Replies: 6
- Views: 31736
Re: Help making a basic game for CoCo 2
Hi Giovani, Blitting at the byte border is the fastest possible way, as Marco said. Same thing happens in DECB with GET/PUT commands, if you mess with the G parameter it will only PUT on byte border and you get a speed increase. Anyways, in ugBasic, adding extra frames is the best to keep the speed ...
- Sat Feb 22, 2025 3:07 am
- Forum: Support
- Topic: adopting Usborne games/programs to ugBASIC
- Replies: 1
- Views: 17469
Re: adopting Usborne games/programs to ugBASIC
The copyright is your call but I see no problem in doing so. The codes on those books are simple and truly nothing really copyrighteable, you are probably going to improve on them and rewrite them as you will want to avoid the structure of code flow attached to the line numbers. I have done it befor...
- Fri Feb 21, 2025 10:44 pm
- Forum: Code snippets
- Topic: Simple Paint App from X-PAD Manual
- Replies: 1
- Views: 16278
Re: Simple Paint App from X-PAD Manual
And here is a video of Antonio Caballero testing the ugBasic app with the real hardware:
https://streamable.com/8wu18m
https://streamable.com/8wu18m