but maybe later because I am making a horror game coverd in a glitchy game, so maybe later.... Sorry! >=
Viewing post in Life generator jam comments
if you want to see the code for my game that I'm working on, then here it is:
#! /usr/bin/python3 import turtle import os from time import sleep import random print('GNU/Linux v1.0.2') print('Runs on Linux and standalone devices') print('If you see garbled message below the ==== line, then something went worng...') print('=============================================================================') print(u"\u001b[31m") Messages = ['how do you play this game?', 'do you know?', 'Never mind', 'What are the controls???',] main_screen = turtle.Screen() main_screen.bgcolor('black') main_screen.title("A Glitchy Game...") border_pen = turtle.Turtle() border_pen.speed(0) border_pen.color('white') border_pen.penup() border_pen.hideturtle() border_pen.setposition(-400, -400) border_pen.pensize(3) border_pen.pendown() for i in range (1, 5): border_pen.forward(800) border_pen.left(90) player1 = turtle.Turtle() player1.hideturtle() player1.color('red') player1.shape('square') player1.penup() player1.speed(0) player1.setposition(-105, -157) player1.left(90) player1.showturtle() platform = turtle.Turtle() platform.hideturtle() platform.color("gray") platform.shape("square") platform.shapesize(1.5, 20) platform.penup() platform.speed(0) platform.setposition(0, -184) platform.showturtle() Gun1 = turtle.Turtle() Gun1.hideturtle() Gun1.color('gray') Gun1.shape('square') Gun1.penup() Gun1.shapesize(.5, 1.5) Gun1.speed(0) Gun1.setposition(-100, -157) Gun1.showturtle() player2 = turtle.Turtle() player2.hideturtle() player2.color('blue') player2.shape('square') player2.penup() player2.speed(0) player2.setposition(105, -157) player2.left(90) player2.showturtle() Gun2 = turtle.Turtle() Gun2.hideturtle() Gun2.color('gray') Gun2.shape('square') Gun2.penup() Gun2.shapesize(.5, 1.5) Gun2.speed(0) Gun2.setposition(100, -157) Gun2.showturtle() player1_speed = 5 player2_speed = 5 def player1_move_left(): x = player1.xcor() x -= player1_speed if x < -350: x = -350 Gun1.setx(x - 5) player1.setx(x) Gun1.setx(x - 5) player1_x = x def player1_move_right(): x = player1.xcor() x += player1_speed if x > 350: x = 350 Gun1.setx(x - 5) player1.setx(x) player1_x = x def player2_move_left(): x = player2.xcor() x -= player2_speed if x < -350: x = -350 Gun2.setx(x - 5) player2.setx(x) Gun2.setx(x - 5) player2_x = x def player2_move_right(): x = player2.xcor() x += player2_speed if x > 350: x = 350 Gun2.setx(x - 5) player2.setx(x) player2_x = x turtle.listen() turtle.onkey(player1_move_left, 'Left') turtle.onkey(player1_move_right, 'Right') messageNum = 0 answeredCorrectly = 1 for i in range(0, random.randint(1, 10)): for i in range(0, random.randint(1, 5)): player2_move_left() for i in range(0, random.randint(1, 5)): player2_move_right() while not messageNum == 4: print('Player1:' + Messages[messageNum]) if messageNum == 1: main_screen.title("^*^%%^&*%##%&*678^5%78&%57*(55&8(6789(7^55") else: main_screen.title("A Glitchy Game...") messageNum += 1 if not answeredCorrectly == 0: print('Instructions : say: "For me the controls where the arow keys..."') Input = input('Chat HERE_>>>') if Input == 'For me the controls where the arow keys...': print("Player1: I'll try the W, A, S, and D keys....") answerdCorrectly = 0 sleep(0.53421) print('Player1: Like what do you do in this game?') sleep(1.555) print('Player1: Ho, wait, thet me try this...') else: print('Instructions : say: "For me the controls where the arow keys..."') Input = input('Chat HERE_>>>') if Input == 'For me the controls where the arow keys...': print("Player1: I'll try the W, A, S, and D keys....") answerdCorrectly = 0 sleep(0.53421) else: answedCorrectly = 1