MicroView and Phoenard Arduino Forum
Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
trial-in-error

Junior Member
Registered:
Posts: 2
Reply with quote  #1 
Hi!

While playing around with the microview, I made a little web app for sprite creation. It's open source; the tool can be found here, and the source here. I have some plans to add more features / functionality to it as I find time.

Also, is there a better way to draw sprites than the below? I'm not positive that it's the best solution. =)

 
#include <MicroView.h>

//this is where you declare the sprite as a byte array / paste the text that the tool generates from a sprite
char a[] = { 0xff };
 
void setup() {
  Serial.begin(9600);
  uView.begin();
  uView.clear(PAGE);
  memcpy(uView.getScreenBuffer(), a, sizeof(a));
  uView.display();
}
 
void loop() {
 
 
 
MLXXXp

Avatar / Picture

Senior Member
Registered:
Posts: 75
Reply with quote  #2 
Quote:
Originally Posted by trial-in-error
Also, is there a better way to draw sprites than the below? I'm not positive that it's the best solution. =)

Depending on the size of the sprite and your speed requirements, you could consider using direct screen writes as an alternative. See the following thread:
http://www.uview.forumchitchat.com/post/writing-directly-to-the-screen-7053391

You may have to experiment a bit to find out which way is better for your particular application.

micro

Avatar / Picture

Administrator
Registered:
Posts: 141
Reply with quote  #3 
Trial-in-error I like your draw tool, definitely better than mine at top of page!
I like the different draw mode option and the way the export is done
trial-in-error

Junior Member
Registered:
Posts: 2
Reply with quote  #4 
There's a new version up! Same place (http://trial-in-error.github.io/micropaint/). Now with support for multiple frames along a timeline. Still super primitive. [smile]
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!