PyShine
PyShine
  • Видео 199
  • Просмотров 630 411
How to build a Copter Game #viral #pygame #python
In this tutorial, we will guide you through the creation of a classic Copter Game using Python and Pygame. The objective of the game is to navigate a helicopter through a series of obstacles without crashing. You'll control the helicopter using the up arrow key or mouse clicks to make it ascend, while gravity will pull it down when you release the key or mouse button. As you progress, you'll earn points by successfully passing through obstacles. This project is a great way to enhance your programming skills and learn more about game development with Pygame. Let's get started on this exciting journey to build your very own Copter Game!
source: pyshine.com/Make-a-Copter-game/
Просмотров: 167

Видео

How to deploy Python application: PyQt5 tutorial - Part 20
Просмотров 8 тыс.2 года назад
How to deploy Python application: PyQt5 tutorial - Part 20
Make GUI for image to text classification: PyQt5 tutorial - Part 19
Просмотров 9182 года назад
Make GUI for image to text classification: PyQt5 tutorial - Part 19
Make GUI for image to text conversion: PyQt5 tutorial - Part 18
Просмотров 1,7 тыс.2 года назад
Make GUI for image to text conversion: PyQt5 tutorial - Part 18
Make GUI with two videos: PyQt5 tutorial - Part 17
Просмотров 3,1 тыс.2 года назад
Make GUI with two videos: PyQt5 tutorial - Part 17
How to install gym in Colab for LunarLander environment
Просмотров 2,6 тыс.2 года назад
How to install gym in Colab for LunarLander environment
Simple server-client application in python | Webcam autofocus | Demo
Просмотров 9012 года назад
Simple server-client application in python | Webcam autofocus | Demo
Video streaming and car control with Python
Просмотров 2 тыс.2 года назад
Video streaming and car control with Python
Send and Record Videos from Clients to Server
Просмотров 1,3 тыс.2 года назад
Send and Record Videos from Clients to Server
Reading fixing and writing CSV in Python
Просмотров 3112 года назад
Reading fixing and writing CSV in Python
PytQt5 Video and Audio GUI - Part16
Просмотров 1,3 тыс.2 года назад
PytQt5 Video and Audio GUI - Part16
Test your audible frequency range in Python | FFT plot in Python
Просмотров 6992 года назад
Test your audible frequency range in Python | FFT plot in Python
Stream picamera video in Ad hoc | Raspberry Pi learning series - Part 03
Просмотров 1,9 тыс.3 года назад
Stream picamera video in Ad hoc | Raspberry Pi learning series - Part 03
How to configure Raspberry Pi in Ad hoc wifi mode | Raspberry Pi learning series - Part 02
Просмотров 7 тыс.3 года назад
How to configure Raspberry Pi in Ad hoc wifi mode | Raspberry Pi learning series - Part 02
How to easily stream webcam video to an HTML page | Raspberry Pi learning series - Part 01
Просмотров 8 тыс.3 года назад
How to easily stream webcam video to an HTML page | Raspberry Pi learning series - Part 01
Low latency FPV demo with Raspberry Pi zero | RPi series
Просмотров 8 тыс.3 года назад
Low latency FPV demo with Raspberry Pi zero | RPi series
How to send audio and video using socket programming in Python: Socket Programming tutorial
Просмотров 22 тыс.3 года назад
How to send audio and video using socket programming in Python: Socket Programming tutorial
How to send video using UDP socket in Python: Socket Programming tutorial
Просмотров 25 тыс.3 года назад
How to send video using UDP socket in Python: Socket Programming tutorial
Matplotlib based GUI to plot time series data: PyQt5 tutorial - Part 15
Просмотров 2,8 тыс.3 года назад
Matplotlib based GUI to plot time series data: PyQt5 tutorial - Part 15
Rock Paper Scissors | PyQt5 tutorial - Part 14
Просмотров 1,4 тыс.3 года назад
Rock Paper Scissors | PyQt5 tutorial - Part 14
Lipstick color picker GUI using OpenCV: PyQt5 tutorial - Part 13
Просмотров 2,9 тыс.3 года назад
Lipstick color picker GUI using OpenCV: PyQt5 tutorial - Part 13
How to visualize recent Earthquakes in Python | Folium | Part 2/2
Просмотров 4253 года назад
How to visualize recent Earthquakes in Python | Folium | Part 2/2
How to visualize recent Earthquakes in Python | Folium | Part 1/2
Просмотров 6333 года назад
How to visualize recent Earthquakes in Python | Folium | Part 1/2
How to send and receive live audio using socket programming in Python
Просмотров 15 тыс.3 года назад
How to send and receive live audio using socket programming in Python
Live audio from Microphone in five lines of Python
Просмотров 10 тыс.3 года назад
Live audio from Microphone in five lines of Python
How to deploy Python video processing web application using Flask
Просмотров 15 тыс.3 года назад
How to deploy Python video processing web application using Flask
Working with Qthreads: PyQt5 tutorial - Part 12
Просмотров 44 тыс.3 года назад
Working with Qthreads: PyQt5 tutorial - Part 12
PytQt5 Live Audio GUI with start and stop buttons | QThreadPool: PyQt5 tutorial - Part 11
Просмотров 5 тыс.3 года назад
PytQt5 Live Audio GUI with start and stop buttons | QThreadPool: PyQt5 tutorial - Part 11
How to make a GUI using PyQt5 and Matplotlib to plot real-time data: PyQt5 tutorial - Part 10
Просмотров 53 тыс.3 года назад
How to make a GUI using PyQt5 and Matplotlib to plot real-time data: PyQt5 tutorial - Part 10
PytQt5 GUI design and Video processing with OpenCV: PyQt5 tutorial - Part 09
Просмотров 20 тыс.3 года назад
PytQt5 GUI design and Video processing with OpenCV: PyQt5 tutorial - Part 09

Комментарии

  • @lalithperera8835
    @lalithperera8835 15 часов назад

    Excellent!. This the best tutorial and example I found, after searching for a good example a whole afternoon.. Covers all needed yet simple and up to the point. Highly recommended to any beginner want to learn about threading in PyQt5. Thank you.

  • @mscoder7086
    @mscoder7086 9 дней назад

    Hey can you share your code please

  • @AlbertLau-jp6xq
    @AlbertLau-jp6xq 20 дней назад

    I am currently working on a drone live video streaming project. However, I have been spending ten weeks on trying to figure out on how to complete the drone live streaming and I was still struggling on getting a basic result. This video is such a life saver for my project. Thank you.

  • @wakabbo
    @wakabbo 23 дня назад

    do i need port forwarding? please answer

  • @DanielRobinson-r2y
    @DanielRobinson-r2y 28 дней назад

    Desmond Parkway

  • @MaryVega-j9v
    @MaryVega-j9v Месяц назад

    Tromp Rapids

  • @larmaths9790
    @larmaths9790 Месяц назад

    Thank you for the vidéo,version helpful

  • @SheilaDaggett-h5k
    @SheilaDaggett-h5k Месяц назад

    Emard Meadow

  • @sksahil4374
    @sksahil4374 Месяц назад

    Nice work bro

  • @EllenTirado-h3d
    @EllenTirado-h3d Месяц назад

    Rossie Isle

  • @jeeken397
    @jeeken397 2 месяца назад

    Does this work with the latest version of Google Colab?

    • @pyshine_official
      @pyshine_official 2 месяца назад

      Nope, for the latest use these instead and lets see if it works: !pip install gym !pip install swig !pip install box2d-py !pip install gym[Box_2D]

    • @jeeken397
      @jeeken397 2 месяца назад

      @@pyshine_official Ok I'll try it

  • @aamnafayyaz6557
    @aamnafayyaz6557 2 месяца назад

    In this video you are selecting the target in the start, what if i want to select the target from a moving drone once i reach the target?

    • @pyshine_official
      @pyshine_official 2 месяца назад

      Target image is the reference to track, you can keep the target image in a reference directory to auto select it based on a period check for the reached target in a scene with the reference location of the target.

  • @aujbinfaisal
    @aujbinfaisal 3 месяца назад

    No module named 'cv2'

    • @pyshine_official
      @pyshine_official 3 месяца назад

      pip install opencv-contrib-python to install

  • @QaiserPlays17
    @QaiserPlays17 3 месяца назад

    getting error when importing files .ui

    • @pyshine_official
      @pyshine_official 2 месяца назад

      Please check the location of the .ui file or paste here the kind of error you are experiencing

  • @maze3117
    @maze3117 4 месяца назад

    What version of python did you use here?

  • @riteshkarmakar3597
    @riteshkarmakar3597 5 месяцев назад

    Excellent Tutorial!

  • @malakhassan9816
    @malakhassan9816 5 месяцев назад

    You should be use IDE

  • @ellainejoyteruel6724
    @ellainejoyteruel6724 5 месяцев назад

    Wow

  • @AustinDrawbaugh489
    @AustinDrawbaugh489 6 месяцев назад

    1080x1620 30 frames per second

  • @TheRealDanNguyen
    @TheRealDanNguyen 7 месяцев назад

    here is a better code: import pyaudio import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation # Audio stream parameters FORMAT = pyaudio.paInt16 # Audio format (16-bit PCM) CHANNELS = 1 # Number of audio channels (mono) RATE = 44100 # Sampling rate (samples per second) CHUNK = 1024 # Number of frames per buffer INPUT_DEVICE_INDEX = 1 # Index of the input device to use # Initialize PyAudio p = pyaudio.PyAudio() # Open the audio stream stream = p.open(format=FORMAT, channels=CHANNELS, rate=RATE, input=True, frames_per_buffer=CHUNK, input_device_index=INPUT_DEVICE_INDEX) # Initialize Matplotlib plot fig, ax = plt.subplots() x = np.arange(0, 2 * CHUNK, 2) line, = ax.plot(x, np.random.rand(CHUNK)) ax.set_ylim(-2**15, 2**15-1) # Update function for Matplotlib animation def update_plot(frame): data = np.frombuffer(stream.read(CHUNK), dtype=np.int16) line.set_ydata(data) return line, # Create an animation ani = FuncAnimation(fig, update_plot, blit=True) # Show the plot plt.show() # Close the stream stream.stop_stream() stream.close() p.terminate()

  • @taibahodzic1478
    @taibahodzic1478 7 месяцев назад

    first🎉

  • @WasifAhmed-xj8qk
    @WasifAhmed-xj8qk 7 месяцев назад

    🇧🇩🇧🇩‼️

  • @serkankaragoz6553
    @serkankaragoz6553 7 месяцев назад

    error Traceback (most recent call last): File "C:\projedeneme\gui.py", line 119, in eventFilter image = ImageQt.fromqpixmap(self.ui.label_2.pixmap()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\site-packages\PIL\ImageQt.py", line 86, in fromqpixmap return fromqimage(im) ^^^^^^^^^^^^^^ File "C:\Python312\Lib\site-packages\PIL\ImageQt.py", line 75, in fromqimage im.save(buffer, "ppm") TypeError: arguments did not match any overloaded call: save(self, fileName: Optional[str], format: Optional[str] = None, quality: int = -1): argument 1 has unexpected type 'PySide6.QtCore.QBuffer' save(self, device: Optional[QIODevice], format: Optional[str] = None, quality: int = -1): argument 1 has unexpected type 'PySide6.QtCore.QBuffer'

  • @serkankaragoz6553
    @serkankaragoz6553 7 месяцев назад

    Traceback (most recent call last): File "C:\projedeneme\gui.py", line 119, in eventFilter image = ImageQt.fromqpixmap(self.ui.label_2.pixmap()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\site-packages\PIL\ImageQt.py", line 86, in fromqpixmap return fromqimage(im) ^^^^^^^^^^^^^^ File "C:\Python312\Lib\site-packages\PIL\ImageQt.py", line 75, in fromqimage im.save(buffer, "ppm") TypeError: arguments did not match any overloaded call: save(self, fileName: Optional[str], format: Optional[str] = None, quality: int = -1): argument 1 has unexpected type 'PySide6.QtCore.QBuffer' save(self, device: Optional[QIODevice], format: Optional[str] = None, quality: int = -1): argument 1 has unexpected type 'PySide6.QtCore.QBuffer' I am getting the error please help

    • @pyshine_official
      @pyshine_official 7 месяцев назад

      Seems like the version issue, as a starting point can you try PyQt5 version with Python 3.6 or Python 3.8.

    • @serkankaragoz6553
      @serkankaragoz6553 7 месяцев назад

      @@pyshine_official Unfortunately it didn't work, is there any other way?

    • @pyshine_official
      @pyshine_official 7 месяцев назад

      @@serkankaragoz6553 it seems like you are using Python3.12. Fo that case install these and the use python gui.py : pip3 install pyqt5 pip3 install pyqt5-tools For more detalis: pyshine.com/Pytesseract-GUI-for-many-languages-with-full-scan/

    • @serkankaragoz6553
      @serkankaragoz6553 7 месяцев назад

      @@pyshine_official Unfortunately it doesn't work. Is there any other way please help?

    • @pyshine_official
      @pyshine_official 7 месяцев назад

      Ok are you using PySide6, or PyQt6? Can you paste the script import lib lines that you are running ?

  • @Aikoaji
    @Aikoaji 7 месяцев назад

    I completed everything and my rpi is now on ad hoc wifi mode, but how can I reverse back to original mode?

    • @pyshine_official
      @pyshine_official 7 месяцев назад

      To reverse back to original wifi mode: sudo cp /etc/network/wifi-interface interfaces

    • @pyshine_official
      @pyshine_official 7 месяцев назад

      pyshine.com/How-to-configure-Raspberry-Pi-in-Ad-hoc-wifi-mode/

    • @PutterMueangthongkham
      @PutterMueangthongkham 7 месяцев назад

      @@pyshine_official I tried that command but still does not work, my rpi still does not see all available list of nearby wifi which should have if it is reversed back to original mode. Do I have to delete all lines I typed in all sudo nano?

  • @vinaygupta8183
    @vinaygupta8183 8 месяцев назад

    Thank you so much sir it helped me a lot 🎉❤

  • @АринаШупенко
    @АринаШупенко 8 месяцев назад

    hey, thx for your video can you please explain, why we need install gymnasium in this way? why we can't just write "pip instal gymnasium' and 'import gymnasium as gym"? why we use another way (like you represented in video) in google collab to do this implementation?

  • @Jon-s4s
    @Jon-s4s 8 месяцев назад

    Hi! Create a video where the server captures the screen and streams it to the client.

  • @derickjohn3065
    @derickjohn3065 9 месяцев назад

    Hi, thanks for the tutorial. Do you know which module is better for transmitting of video frames as shown in the video, socket or imagezmq? Do you have any tutorials or imagezmq?

    • @pyshine_official
      @pyshine_official 9 месяцев назад

      UDP is faster pyshine.com/Send-video-over-UDP-socket-in-Python/ and for Zmq pyshine.com/Faster-video-transfer-over-wifi/

  • @laus-thecurious4120
    @laus-thecurious4120 9 месяцев назад

    will it work without intternet connection

  • @JarradAB1
    @JarradAB1 9 месяцев назад

    Her accent Sounds South African. Pretty cool!

  • @Jon-s4s
    @Jon-s4s 9 месяцев назад

    How can I transmit a captured screen and audio from the server to the client?

    • @pyshine_official
      @pyshine_official 9 месяцев назад

      You might need pyautogui for screen capture and pyaudio together

  • @guesswho8556
    @guesswho8556 9 месяцев назад

    when installung box2d I always get: Collecting box2d-py Downloading box2d-py-2.3.8.tar.gz (374 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 374.5/374.5 kB 5.0 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Building wheels for collected packages: box2d-py error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Building wheel for box2d-py (setup.py) ... error ERROR: Failed building wheel for box2d-py Running setup.py clean for box2d-py Failed to build box2d-py ERROR: Could not build wheels for box2d-py, which is required to install pyproject.toml-based projects

    • @pyshine_official
      @pyshine_official 9 месяцев назад

      Please check python version, dependency

    • @AlexanderYaremchuk
      @AlexanderYaremchuk 9 месяцев назад

      @@pyshine_official Python Version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] Executable Path: /usr/bin/python3 the same error

  • @brajeshmohanty2558
    @brajeshmohanty2558 10 месяцев назад

    Sir can this be implemented using java

  • @elsyanasaltanu9788
    @elsyanasaltanu9788 10 месяцев назад

    can I use source from CCTV audio?

  • @peiiii8447
    @peiiii8447 10 месяцев назад

    Thanks for the video :) Just want to ask that it is known to use UDP when requiring fast-speed transmitting. What if I use TCP when sending the video? what will happen?

    • @peiiii8447
      @peiiii8447 10 месяцев назад

      Also could you pls share the reason of choosing UDP with video and TCP with audio? Thank u very much

    • @idosenn4404
      @idosenn4404 10 месяцев назад

      UDP is fast but sometimes loses data. TCP makes sure no data is lost, but is slower as a result. When losing some data is a problem, like when loading a website, you should use TCP. But in voice chat for example, if you lose some of the audio once a while it isn't a huge problem, and UDP can be the right choice. Sorry for the broken English, it's not my first language.@@peiiii8447

  • @menghuitan1628
    @menghuitan1628 10 месяцев назад

    Hi, I have 2 questions 1.) How do you handle discrete variables(integer coordinates in the position) ? 2.) How do you update the positions to satisfy the constraints if they exist?

  • @cambrawal
    @cambrawal 11 месяцев назад

    Thank you!

  • @tesm_jsf
    @tesm_jsf 11 месяцев назад

    Hello how can I check if the audio stream is done so I can close the sockets and then reuse them?

  • @tesm_jsf
    @tesm_jsf 11 месяцев назад

    Am i able to have a server transmit video to multiple clients?

    • @pyshine_official
      @pyshine_official 11 месяцев назад

      Yes you can use server ip to access from multiple clients

  • @tesm_jsf
    @tesm_jsf 11 месяцев назад

    Hey thanks so much for the video! how can I make the video run a bit quicker it appears to be running a little slowly for me :)

  • @bennguyen1313
    @bennguyen1313 11 месяцев назад

    Is there a way to make a GUI or webapp that allows the user to checkbox which series in the csv to plot? And have the plot automatically add legends/scale?

  • @cufiop9455
    @cufiop9455 Год назад

    what did you do to that poor gear

  • @AngePiggey123
    @AngePiggey123 Год назад

    I used somthjng like that in my steam class

  • @FRSNinja_007
    @FRSNinja_007 Год назад

    Drop the Tapes-TrackTribe

  • @JanZvekic
    @JanZvekic Год назад

    This is what kids build nowadays but will I build is literally just cities that are really colorful because I don't have any other blocks like how are they so advanced

  • @Sonic91718
    @Sonic91718 Год назад

    🤩 wow

  • @danalle
    @danalle Год назад

    Bro would lose on time though. 😔

  • @raines6546
    @raines6546 Год назад

    Magnus is terrified