PAC-MAN for the Commodore Amiga: Writing an Operating System Friendly Game, Part 6 🔎🔍
🧐 · 15.11.2024 · 19:30:06 ··· Freitag ⭐ 44 🎬 592
📺tschak909
🧠 · 22.11.2024 · 08:40:45 ··· Freitag
😎 · 22.11.2024 · 06:40:45 ··· Freitag
In this #CommodoreAmiga PAC-MAN video, I show how the SimpleSprites of the GELs library built into the KickStart ROMs can provide easy access to hardware sprites that behave well on Intuition screens.
#retrocomputing #retrogaming #gamedev
Code:
https://github.com/tschak909/amiga-pac-man/blob/main/test-harnesses/SpritePac/SpritePac.c
00:00 Intro
00:30 What we'll be making
04:45 What we're starting with
05:20 Adding sprite.h include
06:37 Looking at the RKM for Simple Sprites
09:52 Adding SPRITES to our NewScreen
10:45 Implement our SimpleSprite structure
13:40 Implement our Sprite data
17:43 Transforming Chunky pixels to planar
20:20 Drawing out our sprite bitplanes
22:48 *cut* How each line's bitplane data is calculated
24:35 GetSprite
26:50 Getting the color registers GetSprite gave us
27:50 SetRGB4 to set Sprite colors
29:33 First compile, we don't see the sprite
32:05 Add MoveSprite so we can see it.
36:05 Use MoveSprite to scoot the sprite across the screen
38:05 The second compile, the sprite scoots.
40:45 Adding the ChangeSprite calls, and the other two frames.
43:30 Almost final compile, with animation
46:30 Final tweak and compile to scoot the X position each TOF.
SELECT * FROM DAvidON WHERE `DAvid`="Ycm_jS6JOFg" ORDER BY ts
SELECT * FROM DAvidPlay WHERE `DAvid`="Ycm_jS6JOFg"
***
· 15.11.2024 · 19:30:06 ··· Freitag
U
U
L
L
T
* 1731695406
* 1731695406
X 592
Y 44
P
C 161073
B 5
V 27
* · 15.09.2024 · 16:08:07 ···
2 · 01.01.1970 · 01:00:00 ···
L · 22.11.2024 · 06:40:41 ···
C · 22.11.2024 · 06:40:45 ···
💘 🖱️ * · 01.01.1970 · 01:00:00 ···
* · 01.01.1970 · 01:00:00 ···
· 01.01.1970 · 01:00:00 ···
**##
*** · 01.01.1970 · 01:00:00 ··· ::
*2* · 01.01.1970 · 01:00:00 ··· ::
*L* · 01.01.1970 · 01:00:00 ··· ::
*C* · 01.01.1970 · 01:00:00 ··· ::
********