Sound in Unity (5 marks)
Definition:
Sound in Unity is used to add audio effects and background music to games.
Components:
Audio Source
Audio Clip
Audio Listener
Concept:
Audio Source plays sound
Listener receives sound
Explanation:
Adds realism to game
Used for effects and music
Application:
Used in games for background music and effects
Canvas and UI in Unity (5 marks)
Definition:
Canvas is used to create user interface elements like buttons, text, and menus in Unity.
Components:
Canvas
Button
Text
Concept:
UI
ygame Game Loop
Definition:
Game loop in Pygame is a continuous loop that keeps the game running by handling input, updating logic, and rendering output.
Steps:
Input: Get user input
Update: Update game state
Render: Display on screen
Concept:
Runs continuously until game ends
Each cycle is called a frame
Explanation:
Keeps game active
Controls flow of game
Application:
Used in all Pygame projects
Helps create real-time games
Event Handling in Pygame
Definition:
Event handling is the process of detecting and responding
Pygame Study Notes
1. 🧩 Basic Pygame Functions
Pygame is a Python library used to create games.
🔹 Common Functions
• pygame.init()
→ Initializes all Pygame modules
• pygame.display.set_mode((width, height))
→ Creates the game window
• pygame.display.set_caption("Title")
→ Sets window title
• screen.fill(color)
→ Fills screen with a color
• pygame.display.update()
→ Updates the screen
• pygame.time.Clock()
→ Controls game speed (FPS)
2. 🎯 Events (Keyboard & Mouse)
1. RULES AND REGULATIONS
(a) Examination Hall Rules
Students must carry their admit card and show it when asked. They must not indulge in side talking or disturb others. Use of mobiles or any electronic devices is strictly prohibited. Students must not leave the hall without permission from the invigilator. Changing seats is not allowed unless instructed. They must follow all instructions carefully and maintain discipline. Any form of cheating will lead to strict action. Students should write their...
Q1. Classical and Modern Trade Theories
Introduction - International trade theories explain why countries engage in trade and how they derive benefits from it. Over time, these theories have evolved from basic cost-based explanations to more complex models incorporating technology, scale, and competition. These are broadly classified into classical trade theories and modern trade theories.
Classical Trade Theories:-
1. Mercantilism - Mercantilism is one of the earliest theories of international
Compton Effect, Compton Shift, and Modified & Unmodified Radiation
Compton Effect -The Compton Effect is a phenomenon in which X-rays or gamma rays scatter off electrons, resulting in a change in wavelength. When a high-energy photon collides with an electron, it transfers part of its energy to the electron. The electron recoils and the photon emerges with reduced energy and increased wavelength. Compton Shift
The Compton Shift is the difference between the initial and final wavelength of the
Αγαπητοί συμμαθητές, αξιότιμε καθηγητή,
Με αφορμή το άρθρο που επεξεργαστήκαμε στο πλαίσιο του μαθήματός μας, μου δίνεται η ευκαιρία να μοιραστώ μαζί σας ορισμένους προβληματισμούς σχετικά με τους παραδοσιακούς ρόλους των δύο φύλων εντός της οικογένειας, καθώς και τον βαθμό
upper()👉 Definition:
Ye function string ke saare characters ko uppercase (capital letters) me convert karta hai. Original string change nahi hoti, ek new string return hoti hai.
👉 Example:
lower()👉 Definition:
Ye function string ke saare characters ko lowercase me convert karta hai.
title()👉 Definition: