Posts

Showing posts from February, 2023

Draw Tony Stark Face Using Python Turtle

Image
  Draw Tony Stark Face Using Python Turtle # Importing sketchpy module # to install skectpy : pip install sketchpy from sketchpy import library as lib #creating object of rdj() obj = lib.rdj() # Callling Draw method obj.draw() Output: Youtube:

Make Unique Design Using Pydroid 3

Image
Unique design using turtle on pydroid 3 Import turtle turtle.bgcolor ('black') t=turtle.Turtle () t.pencolor ('teal') t.speed (200) t.pensize (2) for i in range (500):     t.fd (i)     t.rt (144)     t.fd (i)     t.rt (50) Output: Watch video on youtube:

Python Code To Make Flappybird Game

Image
Python code to make flappybird: # FlapPyBird from itertools import cycle import random import sys import pygame from pygame.locals import * FPS = 30 SCREENWIDTH = 288 SCREENHEIGHT = 512 PIPEGAPSIZE = 100  # gap between upper and lower part of pipe BASEY = SCREENHEIGHT * 0.79 # image, sound and hitmask  dicts IMAGES, SOUNDS, HITMASKS = {}, {}, {} # list of all possible players (tuple of 3 positions of flap) PLAYERS_LIST = (     # red box     (         'assets/sprites/redbox-upflap.png',         'assets/sprites/redbox-midflap.png',         'assets/sprites/redbox-downflap.png',     ),     # blue box     (         'assets/sprites/bluebox-upflap.png',         'assets/sprites/bluebox-midflap.png',         'assets/sprites/bluebox-downflap.png',     ),     # yellow box     (   ...

Popular posts from this blog

Python Code To Make Flappybird Game

Draw Naruto Face Using Python

How to Make Quiz Game In Pydroid 3