Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bkumanchik

Pages: 1 2
1
Thumby / Re: Importing a sprite in the web IDE
« on: March 07, 2022, 06:15:30 PM »
Looks like it's fixed, cool! Thanks

2
Thumby / Importing a sprite in the web IDE
« on: March 07, 2022, 11:00:22 AM »
With the new way of storing sprites in an bytearray           inv_1a = bytearray([13,26,14,26,13,0,0,0])          when importing them back into the editor - the left column of my sprite is blank, for any that I try to import from a bytearray.

Brian

3
Tiny Arcade & Pocket Arcade / Re: Audio on Pocket Arcade
« on: November 23, 2021, 07:36:00 PM »
Thanks, I'll check this out.

Brian

4
Tiny Arcade & Pocket Arcade / Audio on Pocket Arcade
« on: November 19, 2021, 03:07:56 PM »
I'm looking for information/tutorial on how to setup and play simple sounds on the Pocket Arcade.

Brian

5
Tiny Arcade & Pocket Arcade / Re: Text/font
« on: November 18, 2021, 06:20:22 PM »
OK, I figured, I just wanted to make sure that was the case. I have attached my code example, If you run it you can move the turret left/right with the d-pad and fire with button 2, you can shoot the invader and he will explode and reset to a random x and back to the top of the screen, if the turret gets hit it explodes and resets to the center x position.

If you look in my main loop I am using the drawBuffer function and I have commented-out my writeText function, if you uncomment the writeText function and comment the drawBuffer function, you will see my intended text that I'd like to have on the screen with the graphics.

I have tried to implement the writeText function with the drawBuffer function as in the flappy bird demo but I can't seem to get it to work.  Anyhow that's where I'm at at the moment.

Thanks,

Brian

6
Tiny Arcade & Pocket Arcade / Re: Text/font
« on: November 17, 2021, 07:28:05 PM »
I wanted to see if I could place a sprite and move it around WITHOUT using the drawbuffer function - if the SDK allows for that - or the drawbuffer function (or something similar) IS required to handle sprites on the PocketArcade. I can use the drawbuffer just fine but adding text into that routine is a little above my current programming skill level as of now. Handling sprites on the Thumby's MicroPython web IDE is much more understandable for me. Some SDK's just require a "clear the screen, set up drawing of sprites/text, draw screen" sort of scenario and I was wondering if that works with the PocketArcade using the given SDK.

I hope this helps, If this is not possible, I'll send you my code thus far and maybe you can show me how to get some text working with what I have.


Thanks for your help,

Brian

7
Tiny Arcade & Pocket Arcade / Re: Text/font
« on: November 16, 2021, 12:22:40 PM »
Can I place a gamepad controllable sprite  on the screen without using the drawbuffer() function ? when I do I get flashing if I want the sprite to erase itself as it moves.

Brian

8
Tiny Arcade & Pocket Arcade / Re: Text/font
« on: November 16, 2021, 12:13:41 PM »
Thanks, I'll try this ASAP and get back to you.

Brian

9
Tiny Arcade & Pocket Arcade / Re: Text/font
« on: November 13, 2021, 03:36:38 PM »
Sorry, I'm using a PocketArcade and the Arduino IDE, I can display sprites and I can display text but I can't seem to display text with sprites using the drawbuffer() function shown in the TinyBrick tutorial:

Thanks,

Brian


10
Thumby / Re: Pico Pac - Tiny Pac Man - Finished!
« on: November 11, 2021, 12:36:29 PM »
Very impressive!  ;)

11
Tiny Arcade & Pocket Arcade / Text/font
« on: November 09, 2021, 03:37:16 PM »
How do I write text to the screen while using the  drawBuffer()   function to draw my sprites?

I've created this function (see below) and tried calling it from several different places in the main loop and from within the  drawBuffer()  function, but it doesn't work

Do I have to draw less of the screen with sprites and reserve the top of my screen for text or can I mix text with sprites?

Thanks,

Brian

void writeText() {
  display.setFont(thinPixel7_10ptFontInfo); 
  display.setCursor(0,0);
  display.fontColor(TS_16b_White,TS_16b_DarkBlue);
  display.print("SCORE:");
}


12
Thumby / Re: IDE on Raspberry Pi in Chrome
« on: November 03, 2021, 12:53:58 PM »
Got it, thanks! I was just trying to say that is was really small on the Pi and that it didn't look like it does on my Windows PC in Chrome - where it is much larger.

Thanks

13
Thumby / IDE on Raspberry Pi in Chrome
« on: November 02, 2021, 07:24:08 PM »
I decided to try the IDE on Raspberry Pi in Chrome, it works but the emulated Thumby's scale is just slightly larger than 1:1 this on a 24" 1920x1080 monitor.

Just thought you might like to know.

Brian

14
Thumby / Re: Iterating through a dictionary on Micro Python question
« on: October 31, 2021, 02:28:22 PM »
Thanks!

15
Thumby / Re: Iterating through a dictionary on Micro Python question
« on: October 31, 2021, 01:09:38 PM »
Thanks so much for the very detailed help and explanation, I have a row of invaders animating and marching across the screen (see attached file) I still have a lot to

Take a look (if/when ) you have time and check out the forum post called Invader Test to see my first attempt at all the mechanics needed to get a Space Invader game up and running on the Thumby in Micro Python.

I have one question about your reply' in your reply under Other methods: - that is a Dictionary (not a list) right? your comments say "# A Python list" so I was just checking to make sure I understand.

Thanks again,

Brian


Pages: 1 2
SMF spam blocked by CleanTalk