Lesson 0 of BGE Python

Intro

We'll look at how else you can code with Range Engine/UPBGE.

Setup

Ways to setup to code in python and GLSL
Using built-in text editor

Open up the engine, create a new panel by dragging or switch the editor type by clicking on the editor type and clicking Text Editor or just press Shift + F11. Create a new text file by clicking on the "+" icon or hover your mouse on the text editor and press Ctrl + N.
That is where you starting writing your python code.

Example Range Engine Built-In Setup

Pros

Cons

Using an external text editor or an IDE

Open up notepad, vscodium (vscode if don't care about privacy), sublime-text or any other text editor or an IDE, create a new .py file and save it. Open up the engine and open up the text editor, click on the folder icon and open the file which you saved using the text editor. Or you can do that with logic brick without opening your text file just by specifying your code name and module name.

Python setup with an external text editor

Pros

Cons