Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added multi-line ASCII to sprite support #5

Merged
merged 3 commits into from
May 26, 2013

Conversation

twolfson
Copy link
Contributor

I have added in a function to convert ASCII strings into numeric sprites. It should make it easier to draw out sprites in the program.

The characters still need more thought but the general concept/implementation is there.

"""
 ------- 
-:.._..:-
-..___..-
-:-----:-
--_-_-_--
 -_____- 
  -----  
"""

[
[0,4,4,4,4,4,4,4,0],
[4,3,2,2,1,2,2,3,4],
[4,2,2,1,1,1,2,2,4],
[4,3,4,4,4,4,4,3,4],
[4,4,1,4,1,4,1,4,4],
[0,4,1,1,1,1,1,4,0],
[0,0,4,4,4,4,4,0,0]
]

@twolfson
Copy link
Contributor Author

Trying out different character sets. This one looks pretty good.

http://plnkr.co/edit/tKswRL?p=preview

 ******* 
*=~~-~~=*
*~~---~~*
*=*****=*
**-*-*-**
 *-----* 
  *****   

@gelstudios
Copy link
Owner

The new character set does look nice, do you want to change your pull request?

@twolfson
Copy link
Contributor Author

Sure thing. I will do that in a second =)

@twolfson
Copy link
Contributor Author

💥 Updated.

@twolfson
Copy link
Contributor Author

By the way, Uber is hiring Python devs if you are interested.

gelstudios added a commit that referenced this pull request May 26, 2013
Added multi-line ASCII to sprite support
@gelstudios gelstudios merged commit 0656a23 into gelstudios:master May 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants