Menu

Simple game to demo multicoloured udgs

2017-11-23
2017-11-26
  • stan cartwright

    stan cartwright - 2017-11-23

    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

     
  • stan cartwright

    stan cartwright - 2017-11-23

    Demo game code.

     
    • Anobium

      Anobium - 2017-11-23

      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.

       
    • Anobium

      Anobium - 2017-11-23

      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.

       
  • stan cartwright

    stan cartwright - 2017-11-23

    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.

     
  • stan cartwright

    stan cartwright - 2017-11-23

    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

     
  • stan cartwright

    stan cartwright - 2017-11-26

    Added multiple fire rockets and random sprite start position. https://youtu.be/_RnrodF9-LI

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.