Source Code

Source Code that complements video tutorial series

Showing the single result

No Comments

The Incredibly Useful Sine Waves PART 2 – (Trigonometry) (Game Dev Primer) | The Weekly Coder

July 28, 2015 at 12:13 am

[…] If you didn’t read part 1, and want to get background on sine waves for game development. Click Here (PART 1). […]


    May 10, 2017 at 9:39 pm

    That’s a subtle way of thknniig about it.


October 4, 2016 at 7:41 am

it give me an error in line 36 on unity 5.4
            if((int)(p*_ScreenParams.y/floor(_LinesSize))%2==0) discard;

its works if i change it to this:
            if( ( (int)(p*_ScreenParams.y/floor(_LinesSize)) )%2 ==0 ) discard;


Duong Nguyen Hai

November 6, 2016 at 1:35 am

Hi Chris Fletcher. I like all your guild about Unity, it help me very much!. Thank you
Can you make a guild about make game Pacxon Clone?


May 13, 2017 at 6:09 am

Sir can you please upload the Ai script for the ghost so that we can understand better and move forward.
God bless you


May 18, 2017 at 12:49 am

thanks for that code.
I was looking for the source of the Alpha Blended, to create a version without fog.
it makes my day 🙂


May 30, 2017 at 8:56 am

Basic functions for when you just need to move something from point A to point B, or rotate by a given number of degrees, without anything fancy.

Billy Croft

June 14, 2017 at 1:35 pm

I have a question on your How to make a game like pong in Unity – Part 3 – Basic Ball Movement video, I had done all the code correctly but for some reason the ball will not move


August 18, 2017 at 11:18 pm

Hi Chris, my name is Juan and I am a student at Drexel University in Philadelphia. I been following your tutorial on Pac-man for a couple of days now, it’s awesome. however, I can’t find the obj’s for the ghosts on any of the assets folders. Am I looking in the wrong place?



September 3, 2017 at 6:25 am

ignore that last message, I fixed it


September 28, 2017 at 6:55 pm

You guys saved me so many hours of searching. THANK YOU!


March 22, 2018 at 5:24 pm

Although I’m still doing this, I have a question. Is it illegal to do this?

    Nishant Gautam

    July 6, 2020 at 1:24 am

    dear Grady , if you going to use in your commercial game eg- upload on playstore ,apple store .
    then yes its illegal .
    your have to create your own assets .


April 2, 2018 at 6:36 pm

Hello! Could you please drop the whole project? I loved it, but some things don’t work out(


July 21, 2018 at 10:21 am

good job!


July 29, 2018 at 12:04 pm

Not very useful, as you cannot set the location of the circle. It is always at the origin.

Did you even use this code or just copy+paste?


December 29, 2018 at 3:47 am

where will call this method



    February 26, 2019 at 4:25 am

    You would call it manually whenever you’d insert more to the tableview, passing in the new index path.


May 19, 2019 at 9:59 am

How do you change the rotation from counterclockwise to clockwise?

    Justin Fletcher

    May 21, 2019 at 8:40 am

    take ‘rotAmount’ and multiply it by -1
    rotAmount *= -1;

Chinmay anand

January 27, 2020 at 9:12 pm

hey, thank you for all your work and efforts. and i have a request for you, would you please like to complete those all series on your youtube channel. i know that you might be busy but please make some time to grow your youtube and our knowledge as well.
i and so many like me are waiting for your game dev tutorials so please complete them or make some new.
thank you so much. i hope that you will reply by making some cool stuff.
Thank you, Chinmay anand.

    Chris Fletcher

    February 21, 2020 at 11:15 am

    Hi thanks for the kind words. Completing the other series is definitely on my todo list. I’m doing my best to grow my channel as much as I can but like I always say, I have a full time job that demands a lot of my time and a full time family so there has to be a balance. I’d love nothing more than to make programming tutorials full time but my channel is nowhere near big enough for that. My goal at the moment is to create 1 new video every week until I can find some more time somewhere 🙂

Harit Mangal

June 12, 2020 at 7:39 am

I had done all code correctly but for some reason the ball collides with the player paddle but not with the computer paddle! So what should i do please tell


December 3, 2020 at 12:26 am

send me “Mario texture”. Please.


December 28, 2020 at 4:59 am

Thanks for stopping by my page! I’m Kyran Mckinney.
Even though I jokingly credit my mother for my writing talent, I know that it is a talent I have fostered from childhood. Though my mother is a writer, I also started out young.
I’ve always had a way with words, according to my favorite teacher . I was always so excited in science when we had to do a research writing assignment.
Now, I help current learners achieve the grades that have always come easily to me. It is my way of giving back to schools because I understand the obstacles they must overcome to graduate.

Kyran Mckinney – Academic Writing Professional – Team


February 19, 2021 at 3:06 am

Hi ,
How can I access the graphics of the 2048 game?


May 24, 2021 at 8:49 pm

Hello there!

My name is Kelly.

Your website or a website that your company hosts is violating the copyrighted images owned by me personally.

Check out this report with the URLs to my images you used at and my earlier publication to obtain the proof of my copyrights.

Download it right now and check this out for yourself:

I do believe you have deliberately violated my legal rights under 17 U.S.C. Sec. 101 et seq. and could possibly be liable for statutory damages as high as $130,000 as set forth in Sec. 504(c)(2) of the Digital Millennium Copyright Act (DMCA) therein.

This message is official notification. I demand the removal of the infringing materials referenced above. Take note as a service provider, the DMCA requires you, to remove or terminate access to the infringing data upon receipt of this notification letter. In case you don’t cease the use of the previously mentioned copyrighted content a law suit can be commenced against you.

I do have a strong belief that utilization of the copyrighted materials referenced above as allegedly violating is not authorized by the legal copyright owner, its agent, as well as law.

I swear, under consequence of perjury, that the information in this notification is correct and that I am the copyright owner or am certified to act on behalf of the proprietor of an exclusive right that is presumably infringed.

Kelly Burton

alvin sundvik

July 7, 2021 at 11:10 am

how am i gona download this thing

Support Us

Support The Weekly Coder on Patreon!

Follow me on Twitter


RSS feed