Skip to content

Commit

Permalink
Added Code Objectives
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh Mittal committed Sep 27, 2023
1 parent 1405272 commit ac7f0e6
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Tutorials/6_Game/lab1.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
##########################################
"""
Lab:1 Objectives
- Create game screen with custom size
"""
##########################################

import pygame

# Initialize Pygame
pygame.init()

########## Make Changes Here##############

SCREEN_HEIGHT = # Enter the window Height
SCREEN_WIDTH = # Enter the window Width
SCREEN_HEIGHT = # Enter the window Height (>400)
SCREEN_WIDTH = # Enter the window Width (>400)
SCREEN = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))

############## End Code ##################
Expand Down
7 changes: 7 additions & 0 deletions Tutorials/6_Game/lab2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
##########################################
"""
Lab:2 Objectives
- Add Background Color
- Understand Layers Concept
"""
##########################################
import pygame

# Initialize Pygame
Expand Down
8 changes: 8 additions & 0 deletions Tutorials/6_Game/lab3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
##########################################
"""
Lab:3 Objectives
- Understand Layers in Game Development
- Understand Initial Text
- Understand Game Elements
"""
##########################################
import pygame
from dinoGame.elements import Track

Expand Down
6 changes: 6 additions & 0 deletions Tutorials/6_Game/lab4.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
##########################################
"""
Lab:4 Objectives
- Add More Game Elements
"""
##########################################
import pygame
from dinoGame.elements import Track, Dinosaur, Cloud

Expand Down
7 changes: 7 additions & 0 deletions Tutorials/6_Game/lab5.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
##########################################
"""
Lab:5 Objectives
- Update Obstacle
- Create New Obstacles
"""
##########################################
import pygame
from dinoGame.elements import Track, Dinosaur, Cloud
from dinoGame.elements import LargeCactus, Bird, SmallCactus
Expand Down
6 changes: 6 additions & 0 deletions Tutorials/6_Game/lab6.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
##########################################
"""
Lab:6 Objectives
- Detection Collision
"""
##########################################
import pygame
from dinoGame.elements import Track, Dinosaur, Cloud
from dinoGame.elements import LargeCactus, Bird, SmallCactus
Expand Down
9 changes: 9 additions & 0 deletions Tutorials/6_Game/lab7.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
##########################################
"""
Lab:7 Objectives
- Init Score Text
- Game Score Text
- Update Game Score
- Update Total Score
"""
##########################################
import pygame
from dinoGame.elements import Track, Dinosaur, Cloud
from dinoGame.elements import LargeCactus, Bird, SmallCactus
Expand Down
6 changes: 6 additions & 0 deletions Tutorials/6_Game/lab8.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
##########################################
"""
Lab:8 Objectives
- Have Different Obstacles
"""
##########################################
import pygame
from dinoGame.elements import Track, Dinosaur, Cloud
from dinoGame.elements import LargeCactus, Bird, SmallCactus
Expand Down
1 change: 1 addition & 0 deletions codeEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(self):

def textZoomIn(self):
self.zoom_level *= 2
self.zoom_level = min(self.zoom_level, 20)
self.zoomTo(self.zoom_level)

def textZoomOut(self):
Expand Down

0 comments on commit ac7f0e6

Please sign in to comment.