Need the full script of pong in the Simple 2D game tutorial

redbunnyredbunny Posts: 14Member
edited October 2017 in Programming

Hi fellow godots. I am completely new to scripting and/or programming in general. I followed the tutorial the best I could, and in the end the game Pong actually ran fine! The problem is I am not sure wether the script I wrote is actually what was intended by the tutorial writer because I just indent randomly and did not know where the _process() should start of wether I should put a pass near the end of _read(). Everything is confusing, and the game still run! If anyone would be so kind to post the full correct script for that particular tutorial so that I could match mine to it that would be better. I tried to post my scripts here in this post but everything did not display correctly. Thanks in advance.

edit: If the tutorial writer could release the actual project with all the script and assets that would be great too. The code snippets in the tutorial are confusing and hard to follow, I do not know what code should be wrote where. I appreciate the breakdown explanations of different code section, but at the end there was no full scripts to compare.


Tags :

Best Answer

  • NeoDNeoD Posts: 155
    Accepted Answer

    That pong project is available in the "demos and examples" archive. Check the "download" section of the official website.
    These examples are a very useful learning resource to create many types of game.

Answers

  • redbunnyredbunny Posts: 14Member
    edited October 2017

    edit: merged to main question above

  • NeoDNeoD Posts: 155Member
    Accepted Answer

    That pong project is available in the "demos and examples" archive. Check the "download" section of the official website.
    These examples are a very useful learning resource to create many types of game.

  • redbunnyredbunny Posts: 14Member

    Thanks NeoD this is great! Didn't know there was such file available. Should have downloaded it before starting the tutorial.

Sign In or Register to comment.