Hello all,
I am learning from Assembler book called "Learn Multiplatform Assembly Programming" that I just bought from Amazon.
I have decide code Z80 Assembler for CPC Emulator because it got Assembler built in :)
I am trying do image of the Bat and I seem get frustration on why I cant draw the Bat Correctly!
For Example...
TestSprites:
db %00110000,%00000000
db %00110000,%00000000
db %00110000,%00000000
db %00110000,%00000000
db %00110000,%00000000
db %00110000,%00000000
db %00110000,%00000000
db %00110000,%00000000
Updated: I made corrections that is 8 lines of db.....not 7 as that was my error on typing here but does anyone how make bat Sprites?
your Data is just a line of "- - - - - - -" ...
I'd recommend to look how CPC writes to screen (here in wiki) and the good article about sprites here: http://www.cpcmania.com/Docs/Programming/Sprites_I_Introduction_to_using_sprites.htm (http://www.cpcmania.com/Docs/Programming/Sprites_I_Introduction_to_using_sprites.htm)
And here : http://www.cpcwiki.eu/index.php/Programming:Coding_a_simple_BASIC_game_into_Assembly
Thanks SRS and I will checked the links :)
Hi there!... that book sounds familiar somehow! :-P
The example in the book is based on this one here:
https://www.chibiakumas.com/z80/simplesamples.php (https://www.chibiakumas.com/z80/simplesamples.php)
https://www.youtube.com/watch?v=21jaMDKXfZ4 (https://www.youtube.com/watch?v=21jaMDKXfZ4)
You can download the book sources here (and save yourself some typing)
http://www.chibiakumas.com/book/ (http://www.chibiakumas.com/book/)
I posted your bitmap into the example, and it works fine (attached)
if you post the full source code you're trying to run, I'll see if I can help