Discover and read the best of Twitter Threads about #tutorial

Most recents (2)

Using Global Shader Variables to swap between two textures based on World Position #gamedev #unity3d #tutorial
Code in first reply!

More shaders >> patreon.com/minionsart
Shader Code: pastebin.com/FiDzFixp

C# Script (Super Simple) pastebin.com/gq46mBvf

The gif has a version that uses transparency instead of a second texture, I'll share that later :)
Have fun!
Bigger version of the effect :)
Read 3 tweets
High level #python #tutorial thread:
Python is a high level language that runs bytecode in its virtual machine.
Everything is an object.
It supports OOP up to multiple inheritance and functional programming.
Typing is polymorphic - duck typing is preferred
A Python script is a file with a name like name.py - we indent at four spaces (it matters), comments (after #) don't execute - and is typically written like:

def main(): # function
print("Hello world")

if __name__ == '__main__': # then entry point
main()
A module is a reusable script:

"""this is a docstring at the top of the module - gives help on the module"""

import this # do imports at the top

def main(): # main at top or bottom
"""functions get docstrings too"""

if __name__... always at the bottom, assumed from now on
Read 68 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!