This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Entity(object): | |
def __init__(self, game_ref): | |
self.game = game_ref | |
def update(self, dt): | |
raise NotImplemented | |
class Ship(Entity): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" create an empty pygame window by creating a class to represent the game""" | |
import sys | |
import pygame | |
from settings import Settings | |
from ship import Ship | |
class AlienInvasion: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
from pygame.locals import * | |
class EventSubscriber(object): | |
def process_event(self, event: pygame.event.EventType): | |
pass | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame as pg | |
import pickle | |
from os import path | |
import traceback | |
from random import choice | |
import functions as fn | |
import settings as st | |
#import rooms as rm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
from pygame.locals import * | |
import sys | |
pygame.init() | |
pygame.display.set_caption('Test') | |
mouse = pygame.mouse | |
fps_clock = pygame.time.Clock() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "layout_new.html" %} | |
{% block content_main %} | |
<div class="content-section"> | |
<form method="POST" action=""> | |
{{ form.hidden_tag() }} | |
<fieldset class="form-group"> | |
<legend class="border-bottom mb-4">User Choices</legend> | |
{% if form.choices.errors %} | |
<div class="invalid-feedback"> | |
{% for error in form.choices.errors %} |