Skip to content

Conversation

@SamGRosen
Copy link

This is my attempt at putting the new previewer in some_bot. I don't know anything about sys.args and some python 2 things but its a start. I commented anything I'm not sure on.

This is my attempt at putting the new previewer in some_bot. I don't know anything about sys.args and some python 2 things but its a start. I commented anything I'm not sure on.
@SamGRosen
Copy link
Author

Am I supposed to put something here? GitHub is fancy.

@SamGRosen
Copy link
Author

Oh gosh I'm probably ruining everything

@SamGRosen SamGRosen closed this Aug 23, 2014
@SamGRosen SamGRosen reopened this Aug 23, 2014
Added line to generate image to paste on
@steppin
Copy link
Owner

steppin commented Aug 31, 2014

thanks! Haven't forgotten about this

GreenVars added 2 commits August 31, 2014 12:40
I finally read the part in my book on classes and methods and such. I went through my previous version and made it work. I'm almost completely positive this will work with no issues and will generate previews. Object-Oriented and everything. 
CHANGES:
Put class specific variables in the __init__
The dictionary of cords and what sprite they are is now generated in its own function
Changed several variable names as map was used too much
Draw no longer needs parameters
Took adj_walls out of the plot class 
Added some debug data in __str__

Final Concerns:
Will the previews work in some_bot and JukeJuice?
Shouldn't the png mode be RGB and not RGBA? 
I think RGBA gives a 4th tuple value which messes up the program but ill leave it up to you.
Are variables in the right scope?
I'm horrible at github so these commit changes might look weird but who needs previous versions when this works?
@SamGRosen
Copy link
Author

Forgot to put this in here in case the commit changes are too hard to read.
Also I didn't change range to xrange as I'm still not sure if its necessary.
http://pastebin.com/qPGE0BnY

GreenVars added 2 commits September 1, 2014 14:15
After doing a few more tests and actually trying it on my own computer I have finished. I put adj walls back into the plot class because it uses class attributes. I also fixed a few typos and missed places where self should be. I'm learning so much. This is most definitely the final version.
@steppin
Copy link
Owner

steppin commented Sep 16, 2014

can you include the sprites/resources in your PR?

@SamGRosen
Copy link
Author

I have no idea how to upload each sprite to be merged in a repository. I do have a nice zip with all the pngs with correct file names I sent you in a message a while back.

@steppin
Copy link
Owner

steppin commented Sep 17, 2014

ok, do you still have that link?

@SamGRosen
Copy link
Author

GreenVars added 2 commits September 30, 2014 23:53
I don't know if this will ever happen but now the previewer will never fail to display a tile if there's an odd assortment of tiles around it.
@steppin
Copy link
Owner

steppin commented Oct 2, 2014

oh hey, you are still working on this. I tried pulling this in a few days ago but paused and shifted to web stuff because:

  1. pull request doesn't include everything needed
  2. it requires changes to everything calling previewer (api changed)

But it is still on my list of TODOs, it's just that without a clean pull request, it's not going to be a speedy thing for me :/

@SamGRosen
Copy link
Author

Can you stfu steppin thanks

On Oct 28, 2014, at 10:14 PM, steppin [email protected] wrote:

if i have time tomorrow, i may try to get the score screen to show zombie status


Reply to this email directly or view it on GitHub.

@steppin
Copy link
Owner

steppin commented Oct 29, 2014

lol wrong issue... I'll move stuff...

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