A mootated arcade type game to demonstrate multicoloured definable characters and animation effects.
There's a bit going on but GCB copes fine. A parallel port glcd would be faster but lots of wires :)
Code attached in next post. https://youtu.be/CPqrnG1NZ8o
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I get a moment. I will try to port to the HX8347G.
I tried the last demo code on a larger display at the weekend at the pixels are not correct then are not the same as the smaller display in terms of position and/or color.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Change things like 229 and 225 to calcs on the appropiate system constant - I think this equates to GLCD_WIDTH -1 and GLCD_WIDTH - 5 there are a few places where systems constants would improve the porting and use of the code.
Ta.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok. bugs there, should be<= not < and other stuff like sprite is over edge and can't get out but does. If it looks intentional, cool...it wasn't. it's just a demo of sprite but make it "GLCD global" er,I'll try.
Thing is now I done what I wanted I'm bored with it and want to try summat else.
Every robot needs a face is next. Most toy ones do and it's xmas and I got grandkids and I'm tight.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I used glcd overrun for circle but not sure if it's for ili9341 and didn;t mess with glcd width height as in glcd help. does circle mess up off screen? it was a sprite demo really but thought application made it better.
Couldn't be done with existing published glcd functions. I had to look in the include for the simple code.
It's not applicable to ssd1306 or other displays maybe so not worth a glcd function like line,pset but multicoloured udg for a dial whatever could be useful. It is a graphic lcd., get the most out of it
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A mootated arcade type game to demonstrate multicoloured definable characters and animation effects.
There's a bit going on but GCB copes fine. A parallel port glcd would be faster but lots of wires :)
Code attached in next post.
https://youtu.be/CPqrnG1NZ8o
Demo game code.
When I get a moment. I will try to port to the HX8347G.
I tried the last demo code on a larger display at the weekend at the pixels are not correct then are not the same as the smaller display in terms of position and/or color.
Can you revise? To help me test.
Change things like 229 and 225 to calcs on the appropiate system constant - I think this equates to GLCD_WIDTH -1 and GLCD_WIDTH - 5 there are a few places where systems constants would improve the porting and use of the code.
Ta.
ok. bugs there, should be<= not < and other stuff like sprite is over edge and can't get out but does. If it looks intentional, cool...it wasn't. it's just a demo of sprite but make it "GLCD global" er,I'll try.
Thing is now I done what I wanted I'm bored with it and want to try summat else.
Every robot needs a face is next. Most toy ones do and it's xmas and I got grandkids and I'm tight.
I used glcd overrun for circle but not sure if it's for ili9341 and didn;t mess with glcd width height as in glcd help. does circle mess up off screen? it was a sprite demo really but thought application made it better.
Couldn't be done with existing published glcd functions. I had to look in the include for the simple code.
It's not applicable to ssd1306 or other displays maybe so not worth a glcd function like line,pset but multicoloured udg for a dial whatever could be useful. It is a graphic lcd., get the most out of it
Added multiple fire rockets and random sprite start position. https://youtu.be/_RnrodF9-LI