Skip to content
Open navbar menu
Sign UpLog In
tankerguy1917

tankerguy05

@tankerguy1917
Python, Panzers, Floof, and GuP. What more could a person want. Slava Ukraini
Twitter
GitHub
YouTube
  • scrolling map test (success)

    Cover page
    Made with Pygame

    This (sort of) simulates how the map worked in zelda for the NES by only rendering a small portion of it until you hit the border

    Recent comments (2)
    tankerguy1917
    tankerguy1917
    5 months ago

    Commented code

    tankerguy1917
    tankerguy1917
    6 months ago

    Changes the FPS

tankerguy1917
tankerguy1917
shared a Post
2 years ago
Pygame collisions
tankerguy1917
tankerguy1917
shared a Post
2 years ago
Dcampb007
Dcampb007
Does the IDE show a linter error? Is this possible with repl.it?1 year ago
tankerguy1917
tankerguy1917
shared a Post
2 years ago
Is there a way to import classes/variables from a separate folder/file using a function? I tried it this way as well as trying to returning the a, b,
Coder100
Coder100
hi, perhaps you are looking for the import function: https://www.geeksforgeeks.org/python-\\_import\\_-function/ also don't forget about the scope. Because you imported it in a function, it can't be used outside of the function. No way around this.* def custom_import(): from t import a as aa,b as bb, c as cc global a, b, c a, b, c = aa, bb, cc custom_import() print(a,b,c) `2 years ago
SixBeeps
SixBeeps
Is there any reason why you'd want to do that?2 years ago
tankerguy1917
tankerguy1917
shared a Post
2 years ago
Is there a way to use a function with x amount of arguments in another function without knowing what x is?
Coder100
Coder100
yes! def decorater(*args): print(*args) decorater("lol", "lol") `2 years ago
tankerguy1917
tankerguy1917
shared a Post
2 years ago
I am trying to get familiar with using js and kaboom.js for the upcoming jam, and I've ran into a little issue. When I make a kaboom project using one
MrVoo
MrVoo
Replit makes Kaboom a bit more automatic, you don't need to add things like kaboom() or loadSprite(). Also, you don't need to use Kaboom2 years ago
tankerguy1917
tankerguy1917
shared a Post
2 years ago
Does anyone know of any good UI libraries for python? I'm looking for things like buttons, sliders, dropdown menus, etc. I know about Tkinter, but I p
VulcanWM
VulcanWM
You can try Kivy, I’ve heard that is pretty good. You can try something new like making websites with Python with Flask so you can control everything with HTML, CSS and JS2 years ago
tankerguy1917
tankerguy1917
shared a Post
2 years ago
I was inspired a while ago to make this by 2 posts (I can't find them because they were so long ago). This isn't the most impressive thing, as I basi
ShizukoV
ShizukoV
Nice! Also to find your posts, just look in here2 years ago
tankerguy1917
tankerguy1917
shared a Post
2 years ago
Is it possible to loop through n number files using python? I am working on a project with my brother (not on replit) and one of the things we need to
Coder100
Coder100
Well, you can't just loop through an n number of files, you have to know what files they are! Here's something: https://careerkarma.com/blog/python-list-files-in-directory/2 years ago
tankerguy1917
tankerguy1917
shared a Post
3 years ago
I am using a class Player and I am getting an error saying that init() takes 3 positional arguments but 4 were given when I only put in 3 arguments. D
Coder100
Coder100
You forgot the self argument, here is the correct code class Entity: def init(self, hp, mp, name): self.hp = hp self.mp = mp self.name = name class Player(Entity): def init(self, hp, mp, name): self.hp = hp self.mp = mp self.name = name the self argument is used to refer to the class itself.3 years ago
tankerguy1917
tankerguy1917
shared a Post
3 years ago
Hey replers, hope you all are doing well. I made something in HTML5 for the first time in a few years, and I wanted to share it with all of you. Let
tankerguy1917
tankerguy1917
shared a Post
3 years ago
This isn't anything to special, just an idea randomizer. If any of you are trying to make a game but cant figure out any ideas, just run this a few ti
tankerguy1917
tankerguy1917
shared a Post
3 years ago
#About This is a simple AI I made for enemies in a game I'm making. They will move towards you and attempt to touch your player. #How After you press
tankerguy1917
tankerguy1917
shared a Post
3 years ago
#How Press the up arrow key to watch the firework fly into the air and explode. #FAQ What if it doesn't work? Click the screen and try again. What i
WILLIAMBAEWER
WILLIAMBAEWER
fire work go boom :)3 years ago
tankerguy1917
tankerguy1917
shared a Post
3 years ago
About this is an upgraded version of a repl i made a few weeks ago. It uses Tkinter. It shouldn't have any bugs at the time of posting. Sorry if its a
JBloves27
JBloves27
NOICE!3 years ago
FloCal35
FloCal35
Doodle Wars Team, yeah3 years ago
RhinoRunner
RhinoRunner
I ran it and pressed "play" and all it did was show me a gray screen.3 years ago
tankerguy1917
tankerguy1917
shared a Post
3 years ago
About This is a photo viewing app i make using python and tkinter. It displays 4 pictures, which you can cycle through, and you can even stop the prog
tankerguy1917
tankerguy1917
shared a Post
3 years ago
This is a tutorial for a simple random number generator in python. if it is to hard to see in the program, here is the code import random from random
Owenkop
Owenkop
is it posible to make this select multiple numbers so it would selct 5 random numbers from the numbers (sort of like this 11385)?3 years ago
tankerguy1917
tankerguy1917
shared a Post
3 years ago
Do you like dancing? Well, I've just made an animation of a simple character doing a simple dance. Hope you all enjoy.