Retro Programming on the Commodore 64 - Episode 3 - Sprites and Graphics

  Рет қаралды 40,066

TheStuffMade

TheStuffMade

Күн бұрын

Пікірлер: 52
@TheStuffMade
@TheStuffMade 3 жыл бұрын
It's been too long since I did one of these, anyway here is Episode 3, hope you enjoy it! I'll try to make them more frequent, perhaps a monthly episode. Cheers, Jake
@KINGDOMOFFANBASES
@KINGDOMOFFANBASES 2 жыл бұрын
Make please game name: Chicky
@NewFunnyAnimations
@NewFunnyAnimations 3 жыл бұрын
Great lesson. I now have a deeper understanding of how graphics work in Commodore 64: multi-color sprites and a character graphics map. It was impossible to study this in childhood due to the lack of educational materials. Not a single book on this topic was published in Russia 30 years ago. And nobody brought it from abroad.
@ferrellsl
@ferrellsl 2 ай бұрын
Don't feel bad. I live in the USA and I had a C64 in the early 80's and since there was no internet back then, it was nearly impossible for me to study this as well. C64 programming books and tutorials were not very easy to find, even in the USA, and when you could find them, they were fairly expensive. I could barely afford to buy any games let alone programming books.
@NewFunnyAnimations
@NewFunnyAnimations 2 ай бұрын
@@ferrellsl brothers in misfortune :)
@robbarbour4642
@robbarbour4642 15 күн бұрын
👍 Nice video, been several years since I've messed with CBM Studio. But it looks better than the version I used.
@TheStuffMade
@TheStuffMade 10 күн бұрын
CBM Prg Studio is very nice, but lately I've started using C64Studio.
@BobbyCharlz
@BobbyCharlz 3 жыл бұрын
This is a great tutorial that’s helped fill many of my knowledge gaps. Thank you so much for putting this together along with all of the helpful links.
@boredwithusernames
@boredwithusernames 3 жыл бұрын
Thank you, this is a very inspiring video, using the tools it shows just how quickly a basic game layout can be developed. I get bogged down when it comes to designing the screen layouts and this is just the thing to keep me moving on a project. Your coding is excellent and I would very much like to see you continue this project, I look forward to the next episode. One episode per month would be good ;)
@nickryan3417
@nickryan3417 2 жыл бұрын
These bring back so many memories... including some of the hacks and work arounds. Hacks to give 24x24 pixel sprites and work arounds for the lazy to keep the X position of the sprites in 0-255 and to use the remaining right hand space for score or similar information.
@BikeArea
@BikeArea 2 жыл бұрын
😃 I've never heard of 24x24 pixel sprites. May I ask you to elaborate a bit on that? 😃
@nickryan3417
@nickryan3417 2 жыл бұрын
@@BikeArea From memory (eek! 😃) the hack effectively halved the number of sprite pointers available for use as the additional three rows used the data that would have been the top 3 rows of the next sprite in the bank, offset by one byte (so only 2 2/3 rows). This meant that one could only use alternate sprite pointers which was a massive waste of limited RAM. As for the actual hack itself, it was enabled through setting some bit in some barely documented VIC register and while I can visualise the pages that this information is on, finding it all these years later hasn't happened yet. I suspect that as a result it's support by emulators is not great.
@BikeArea
@BikeArea 2 жыл бұрын
@@nickryan3417 That sounds like a very deep rabbit hole. Holy moly! :D Thanks a lot for the details!
@zzador
@zzador 3 жыл бұрын
Awesome tutorial series. Especially for people who already have a little assembler/programming background.
@baardbi
@baardbi 3 жыл бұрын
Thank you so much for these Commodore 64 programming videos. I've just subscribed.
@ted356
@ted356 2 жыл бұрын
Very good video. I’ve been following the series. Thank you for taking the time to create and share them.
@TheStuffMade
@TheStuffMade 2 жыл бұрын
Thanks, I'm glad you enjoyed it.
@evoghell
@evoghell 4 ай бұрын
I never used an editor to do sprites, that's awesome. And so much easier than coding them lol. We were really crazy.
@TheStuffMade
@TheStuffMade 4 ай бұрын
Yeah, I think it's really helpful to have a tool to do sprites and background graphics, so much easier to play around with colors and making little changes. Cheers, Jake
@taddy666
@taddy666 10 ай бұрын
Thanks so much for your series - it is superb!
@reaktormannen
@reaktormannen 2 жыл бұрын
This is so inspiring! (I keep pausing my Java coding to watch this ;-)
@bjbell52
@bjbell52 Жыл бұрын
I'm an Atari 800 game programmer but I found your video well worth watching. Thanks.
@joakimbrewitz2393
@joakimbrewitz2393 2 жыл бұрын
Thanks for these videos, very inspiring :)
@redlinechaser7942
@redlinechaser7942 2 жыл бұрын
super cool man! Great channel here!
@scottfarrar3441
@scottfarrar3441 3 жыл бұрын
Nice Job!
@BeatMax2023
@BeatMax2023 3 жыл бұрын
Very nice!
@ChrisM541
@ChrisM541 2 жыл бұрын
Subbed! Huge thanks for these videos - brings back some great memories of my time with the C64 (had a platform game designer utility published in CDU back in the day). You mentioned that the latest version of CBM Prg Studio (3.14.0) has some bugs. I have this installed (though not used it much) and haven't noticed anything yet. Could you give a wee bit more detail, maybe a link to an on line forum or two (I can't see anything in the main Lemon64 thread for this utility). I realise there's other tools e.g. via Sublime Text, but I like the way CBM Prg Studio integrates things.
@curtisjarrett7478
@curtisjarrett7478 2 жыл бұрын
Hi everyone, just wanted to add that I was also having issues with CBM prg studio 3.14.0. I couldn't get VICE to come up normally and run assembly code. Under: Settings/Emulator Control I changed the Wait ______ second(s) before launch time to 2. I haven't had any more issues.
@TheStuffMade
@TheStuffMade 2 жыл бұрын
Thanks for sharing.
@TheXJ12
@TheXJ12 2 жыл бұрын
Same here. I changed back to 1 second and it still works !
@EngineeringVignettes
@EngineeringVignettes 3 жыл бұрын
The tools look useful, will check them out later. Lots of videos out right now on coding for the C64, not much on good tooling :) - Hah, back in my youth I remember actually coding a 2 pass assembler for my C-64 from scratch. Could not afford to buy one :D Cheers,
@TheStuffMade
@TheStuffMade 3 жыл бұрын
Yeah, it was kind of my goal to make things as easy and approachable as possible with this series. I remember back in the day drawing sprites on paper and then calculating the binary values and converting to hex values followed by entering all the values into a machine code monitor. Sure is a lot easier with good tools. Cheers, Jake
@7BlackJack8
@7BlackJack8 2 жыл бұрын
is there a way to import multiplex gfx made on other editors in PETSCII Editor?
@giuseppeazzarello8426
@giuseppeazzarello8426 3 жыл бұрын
congratulations, beautiful video, spruce that I can not follow you well, since I do not know English, I have to use the voice translator, but the translation is a bit poor. anyway I subscribed to your channel, when you made your first video in assembler, then you made another one, I hoped you would publish others, despite everything, I managed to understand your lessons well, now I have followed this and I think it is a wonderful program. I was asking, pet ascii editor I downloaded from your link, and much smaller than the online one
@TheStuffMade
@TheStuffMade 3 жыл бұрын
Thanks, much appreciated.
@MorreskiBear
@MorreskiBear 3 жыл бұрын
Watched 3 episodes now. Thanks for showing us CBM Studio! It's getting harder to want to code on real hardware with tools like that around. And that graphics website is pretty cool. Why do the color drop-down menus in this video only show the first 14 colors? I was horrified such a blunder existed - yet the website does show all 16 colors for me. Weird.
@TheStuffMade
@TheStuffMade 3 жыл бұрын
Yeah tool like these really do make development a lot easier. I understand some people like to keep it "pure" and do everything on the C64 itself, but even back in the day it was common to run tools on other machines. But I understand for some the journey is most important. I didn't notice the color dropdown thing until I was nearly done recording the episode. It's caused by scaling. I always try to scale everything in these videos to make it easier to watch, not a fan of tutorial videos where everything is recorded in high resolution with tiny text that is nearly impossible to read unless you watch on a PC monitor in full screen. Cheers, Jake
@ellaschroeder1617
@ellaschroeder1617 6 ай бұрын
and what you do here on the screen gets automitcally transferred into assembler/machine code?
@johneygd
@johneygd 9 ай бұрын
I really really could hardly imagine that the C64 could only handle 8 sprites on screen as of 64 sprites atone of the nes,since both systems do have an 8bit cpu and ppu chip.
@TheStuffMade
@TheStuffMade 9 ай бұрын
The NES got the same limitation of max 8 sprites per line (that's why you often see sprite flickering in NES games) and the NES sprites are much smaller 8x8 or 8x16 compared to 24x21 or 12x21 on the C64. The NES does allow for more colors though. You can do more than 8 sprites on the C64, but you will have to implement a multiplexor, like I did for the intro to this episode with 32 sprites on screen at the same time. For a more in depth comparison, I recommend watching this video: kzfaq.info/get/bejne/gttjiqiX2dnGoZ8.html Cheers, Jake
@kraftwerk974
@kraftwerk974 3 ай бұрын
What a pity you stopped posting tutorials mate !!
@FD-ze1xg
@FD-ze1xg 3 жыл бұрын
Hi there! Congratulations for the channel! The videos are well done! I wanted to know how to make sprite collisions, and the sound I wanted to make a small alien game. Thanks if you can help me!
@TheStuffMade
@TheStuffMade 3 жыл бұрын
Hi FD, it's very easy to use the C64's hardware sprite collision detection, it will give you pixel perfect collision detection. All you need to do is read the register $D01E, it will tell you if 2 or more sprites have collided, the bits corresponds to the sprite numbers (1 to 8) and if you want to check for sprite to background collision you can read the register $D01F, it will set the bits corresponding to which sprite collided with the background. I will cover music and sound effects in a future episode. Hope this helps. Cheers, Jake
@FD-ze1xg
@FD-ze1xg 3 жыл бұрын
@@TheStuffMade Hi Jake Do you have any projects that I can download? If not, I'm hoping to find something on the internet that is explained well! Unfortunately many youtubers make videos but don't know assembly well! It would be easier for me to understand.... Anyway thank you so much for your quick response! Sorry for my bad English... Frank
@TheStuffMade
@TheStuffMade 3 жыл бұрын
@@FD-ze1xg I don't have a project covering these topics for download yet. I will cover them in the future, the collision detection is quite easy, but music and sound effects gets a bit complex. Cheers, Jake
@demogorgon1043
@demogorgon1043 2 жыл бұрын
this thumbnail looks like lvllvl
@mrxfin
@mrxfin 2 жыл бұрын
Hi, If i want to open BMP file in "petscii editor" then what best BMP file size ? And if we convert any png to bmp from paint application then it's best way to work Or any other software need to use?
@TheStuffMade
@TheStuffMade 2 жыл бұрын
I've never used the bitmap import feature in the Petscii Editor, but I believe it requires the size to be 320x200. You might want to have a look at CharPad for this instead. Cheers, Jake
@hobbymagicstopmotion
@hobbymagicstopmotion Жыл бұрын
Do you have a video on programming more than 8 sprites?...using interrupts?
@TheStuffMade
@TheStuffMade Жыл бұрын
Not at this time, but it's likely I'll do one at some point. It can get quite complex to write an efficient sprite multiplexer and sorting the sprites by y position can take quite a lot of cycles when you have many sprites. Cheers, Jake
@beautylola4218
@beautylola4218 3 жыл бұрын
DO EPISODE 4 PLSSS I WANNNA LEARN ASSEMBLY 6502 YOUR MY ONLY RESOURCE!!!!
@c0dered111
@c0dered111 2 жыл бұрын
400th like
Best POKE Ever? For Commodore 64
22:21
8-Bit Show And Tell
Рет қаралды 42 М.
Game Boy Graphics & How To Code Them
9:02
NesHacker
Рет қаралды 94 М.
UNO!
00:18
БРУНО
Рет қаралды 3,5 МЛН
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 29 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 10 МЛН
Retro Programming on the Commodore 64 - Episode 1 - Getting Started
12:48
Complete beginners guide to creating sprites on the Commodore 64 / C64 in BASIC
25:47
C64 Sprite Multiplexing (EN)
12:34
agpxnet
Рет қаралды 17 М.
AMAZING New OS for the 40-year-old Commodore 64! C64 OS Review
39:47
Retro Recipes
Рет қаралды 282 М.
Games That Push The Limits of the Commodore 64 in Surprising Ways
20:11
How It Was Made: THE COMMODORE 64 factory tour
22:10
Retro Recipes
Рет қаралды 505 М.
Using a Commodore 64 on the modern internet!
21:08
Veronica Explains
Рет қаралды 700 М.
Is This The Only C64 Cartridge You Ever Really Need?
10:47
The Retro Shack
Рет қаралды 88 М.
Хакер взломал компьютер с USB кабеля. Кевин Митник.
0:58
Последний Оплот Безопасности
Рет қаралды 2,4 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Nokia 3310 top
0:20
YT 𝒯𝒾𝓂𝓉𝒾𝓀
Рет қаралды 4,5 МЛН
Лучший браузер!
0:27
Honey Montana
Рет қаралды 1,1 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 3,6 МЛН