Share your repls and programming experiences

← Back to all posts
Initial Sprite work for ポケットモンスター ^~^
LizFoster (592)

Hello all ! I am so sorry for being gone all weekend, I was super busy . . T~T

However, I do not think you will be disappointed, for I was working on this (among other things) ! !

The "keybinds" that are relevant right now are q (fish upper sprite), a (fish lower sprite), h (Helix Fossil sprite), and p (pokeball sprite) !

I am using classes as a bit of a file system, since Turtle does not support multiple files.

In the SPRITE class go to the SPRITE.POKEMON.MENU sections, and from there :

  1. For the fish, go to the fish class, and view the matrices from there

  2. For the other two, go to the bottom, and look at the pokeball and fossil functions . The matrices are there respectively ^ ^

Please ignore everything else, at it is just the skeleton at the moment ! Let me know what you think, and as always, feedback is greatly appreciated ! !

Note, do not spam the keybinds, as it causes some weird graphical problems..

Commentshotnewtop
xolyon (333)

Dam, you post like every day, you should take a break lol

LizFoster (592)

@xolyon Ha ha ha, seriously?? I just really enjoy posting and providing new content for people to enjoy!

DynamicSquid (2303)

@LizFoster How do you manage your time? I barely have time to post once a week!

DynamicSquid (2303)

@LizFoster Oh, forgot to mention, nice project btw :)

LizFoster (592)

@DynamicSquid Thank you so much! It means a lot #^__ ^#

Oh, and I do not really manage my time. I just spend most of my day either coding, talking to you guys, or playing games! (Lol)

DynamicSquid (2303)

@LizFoster You're lucky. I get a couple hours worth of work every day from sc- sch- sc--- schobuldhfisg. I can't even say it

Warhawk947 (510)

@DynamicSquid bruh i have online school i barely have time to program

Warhawk947 (510)

@DynamicSquid although I may be posting soon

DynamicSquid (2303)

@Warhawk947 Sometimes if my teachers don't fell like doing a online video meet, they just post three hours worth of work on Google Classroom.

DynamicSquid (2303)

@Warhawk947 It's ridiculous. I actually miss normal school...

Warhawk947 (510)

@DynamicSquid same. Quarantine is making me so lonely...

DynamicSquid (2303)

@Warhawk947 Right? I actually miss my friends

Warhawk947 (510)

@DynamicSquid reeeeeeeee finally someone who agrees with me 😁

LizFoster (592)

@Warhawk947 @DynamicSquid I know how you two feel! I hate school, but I actually miss it a bit... (Lol)

DynamicSquid (2303)

@LizFoster :). And I swear if we lose our summer because of this....

TheDrone7 (1006)

It's been a long time since I actively went through the posts on repl talk but I see you've been posting really good content lately. Keep up the good work!

xolyon (333)

I haven't used python turtle in like a year, I am confused lol

SilentShadowBla (537)

Awesome project! Good job! :)

Warhawk947 (510)

Liz: Don't spam the keybinds
My brain: DONT DO IT DONT DO IT
My fingers:

Edit: Don't do it this happens

Warhawk947 (510)

@LizFoster btw if I don't key spam the pictures actually look really good 😁

LizFoster (592)

@Warhawk947 Yay! Thank you so much! I'm really proud of my work on this so far, but my family hasn't been so supportive of it.. T~T

Warhawk947 (510)

@LizFoster oof im sorry about that...

LizFoster (592)

@Warhawk947 Eh, it cannot be helped.. ^ ^*

AmazingMech2418 (661)

I think the reason that there are the glitches with the rendering are because it is using one turtle and if you trigger a keypress event while it is already rendering one sprite, it will try to render it twice at the same time, although it can't. Maybe, you could use a new turtle for each rendering and then maybe delete it afterwards somehow (again, I'm behind in Python) or somehow pause the key event listener until rendering is complete. Anyways, great job!

LizFoster (592)

@AmazingMech2418 Thank you so much! Yeah, that's why. I added the turName arguement so that I can later use a different turtle for everything; then it won't happen at all! ^~^

AmazingMech2418 (661)

@LizFoster You're welcome! However, you might want to add a delay between rendering your frames in the final version... If you run it without a delay between frames, it will probably overload the memory with a trillion turtles (okay, maybe not a trillion, but whatever number Python can handle).

LizFoster (592)

@AmazingMech2418 Yeah, the number of turtles I would need could be a bit tough, since the number of textures used at one time on the screen is a 9*10 grid... 0~0

AmazingMech2418 (661)

@LizFoster Yeah... And that is given that there is no overlap between turtles drawing the same thing in different frames...

AmazingMech2418 (661)

@LizFoster Just, please, don't crash your computer with a "turtle takeover"... You can probably use the sleep function from the time library to keep the frames from overlapping.

LizFoster (592)

@AmazingMech2418 Yeah, definitely! I'll see if I can't find a way to cut the number of used turtles. I could maybe do only 45 turtles by having each turtle draw two squares at once.. I'll see what I can do.

AmazingMech2418 (661)

@LizFoster However, with that, you have to remember the speed. It takes about a half a second to even a full second for a sprite to be rendered in this repl, so it might be difficult to cut the number of turtles too much and still have it actually work.

LizFoster (592)

@AmazingMech2418 Well, I can raise the win.tracer() function up to (30, 0), which could make it even better. However, the more complex the code, the more likely it is to crash..

AmazingMech2418 (661)

@LizFoster Yeah... (honestly, I have no idea what win.tracer() does...) However, that's just something that comes with using an interpreter for Python built in JavaScript (like the Python interpreter in Repl.it (at least I think))...

LizFoster (592)

@AmazingMech2418 Yeah. win.tracer() just speeds up the rate at which the screen makes the turtle move. It's similar to t.speed(), but is universal.

AmazingMech2418 (661)

@LizFoster Okay. I don't think that should make it crash though. Back when I was on Scratch (before I found out about Repl.it), I could create full games using the pen feature which is not too much different than turtle and it was still pretty fast, so I think just speeding up the turtle shouldn't cause lag or cause the interpreter to crash.

LizFoster (592)

@AmazingMech2418 Just play my Mandelbrot code, create a new repl of it, and raise the win.tracer() command up to, say, (20, 0). It crashes really quickly when you do that..

AmazingMech2418 (661)

@LizFoster It doesn't crash, but just stops rendering, but only usually if I do above 50. I can go through it completely with 40.

LizFoster (592)

@AmazingMech2418 Really?! I certainly cannot..

AmazingMech2418 (661)

@LizFoster That's strange... However, do you know if there is a way to wait to actually render onto the screen in turtle? That way, it would generate the image and then update the screen to include it without a delay or with less of one.

AmazingMech2418 (661)

@LizFoster I mean kind of like how old movie projectors flashed light to only "render" when the film was in the right spot or something like that. Basically, it would only render after completing the drawing.

LizFoster (592)

@AmazingMech2418 Oh, that's interesting. I'm pretty sure you could do that, actually. I know that there is an update command, but I haven't looked into it too much, and I don't even know if it would be applicable..

AmazingMech2418 (661)

@LizFoster If it does what we think, that should work. Most of the delay is in the rendering. Also, you can probably now set win.tracer to 40...

LizFoster (592)

@CodingCactus wwwwwwwwwwwwwww

I didn't want to post the actual original project, since I don't want everyone seeing what all I have done..

LizFoster (592)

@StudentFires It is called "ポケットモンスター!(×﹏×)"

StudentFires (327)

@LizFoster How does Repl's hacker plan sound?

You might be interested, since you can have private Repls.

LizFoster (592)

@StudentFires Yeah, that one. Also, I have considered getting the hacker plan for that reason specifically, but it is just a bit too expensive for my current economic situation (since I cannot go to work, and I do not make too much money anyways wwwwww).

LizFoster (592)

@StudentFires Woah, for real?! You'd do that? I would be honored!

LizFoster (592)

@StudentFires Okay, I can do that with the studentFires email. What should I say, though?

LizFoster (592)

@StudentFires Alright then, it has been sent ^ ^*

CodingCactus (2527)

@StudentFires are you offering out free hacker plans for everyone? lol :)

CodingCactus (2527)

@StudentFires well, I would never turn one down

DynamicSquid (2303)

@StudentFires I have a question. So I know that you guys are a team of people, but can anyone in your team log into Repl.it? or do you guys have like one designated person to be on Repl.it?

StudentFires (327)

@DynamicSquid Any of us, just... no one has since the outbreak. I contacted one of our members to see if they're alive... they were, but I've lost contact w/ everyone else. You'll see I know HTML, but I used to leave that to the other members. I'm just supposed to be the C++ programmer.

Also, of course Repl is only one of our online coding accounts.

DynamicSquid (2303)

@StudentFires Oh, I see. That sucks... Hope things get well soon!

StudentFires (327)

@DynamicSquid Wow, Repl is slow, I just got your message. I just finished making a post on share too. I'm sure they're fine. I also just realized I was downvoted.