Skip to content

Commit b47c407

Browse files
committed
stop depending on imgur for pictures
1 parent b747db7 commit b47c407

13 files changed

Lines changed: 14 additions & 14 deletions

File tree

docs/Guides/Lua/intermediate.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Before we begin in our first steps to making a level, it is crucial to understan
2424

2525
**Let's take a look...**
2626

27-
![PewPew Live API Functions](https://i.imgur.com/cudNZOp.png)
27+
![PewPew Live API Functions](/img/intermediate/cudNZOp.png)
2828

2929
These are some of the functions that you will be using in PewPew Live! I suggest giving it a lookover, and try to see what it all means! Whenever you use a function in PewPew's library (API), you MUST put `pewpew.` infront of it!
3030

@@ -34,7 +34,7 @@ So you see, `print(String str)` would be typed in your code as `pewpew.print(Str
3434

3535
**Another main part of the API is the Fmath library!**
3636

37-
![PewPew Live API Fmath](https://i.imgur.com/S3KoZf8.png)
37+
![PewPew Live API Fmath](/img/intermediate/S3KoZf8.png)
3838

3939
These are more functions in PewPew Live, but slightly different. To use these functions, you MUST put `fmath.` infront of it!
4040

@@ -50,7 +50,7 @@ Another main difference I should note is their decimals! It's a little strange,
5050

5151
**The last main part that I need to cover is the Enums section of the API**
5252

53-
![PewPew Live API Enums](https://i.imgur.com/6iA5ayl.png)
53+
![PewPew Live API Enums](/img/intermediate/6iA5ayl.png)
5454

5555
So what is an `Enum`? `Enum` stands for _Enumerator_, and is just a fancy way of talking about a list of items and properties. So here is the list of enemies and the properties of enemies, AKA the `Enums`, that a person can access and use. Again, you need to put `pewpew.` infront of these when you use them. A quick example of a reference to a specific enemy would be `pewpew.MothershipType.THREE_CORNERS`. This piece of code references the pink triangles (motherships) that you see in Eskiv.
5656

@@ -62,19 +62,19 @@ So what is an `Enum`? `Enum` stands for _Enumerator_, and is just a fancy way of
6262

6363
You will need to extract the file, and then you will enter it. You will see two files, a folder and an `.exe` file. That `.exe` is very important to running your level, keep it in mind!
6464

65-
![Windows explorer window in ppl-utils directory](https://i.imgur.com/CrvXuXT.png)
65+
![Windows explorer window in ppl-utils directory](/img/intermediate/CrvXuXT.png)
6666

6767
**You will then see a bunch of files, and a folder. You do NOT need to worry about these files at all! Just the folder! The `levels` folder is where all custom levels are stored! So that is the folder you enter into next!**
6868

69-
![Windows explorer window in ppl-utils/content directory](https://i.imgur.com/JVRk9P6.png)
69+
![Windows explorer window in ppl-utils/content directory](/img/intermediate/JVRk9P6.png)
7070

7171
**As you can see below, there are some levels already here! The developer, JF, put these levels here as examples for level creators to look at while they work! This is where you will create your level.**
7272

73-
![Windows explorer window in ppl-utils/content/levels directory](https://i.imgur.com/mgmeZ0g.png)
73+
![Windows explorer window in ppl-utils/content/levels directory](/img/intermediate/mgmeZ0g.png)
7474

7575
**So all you need to do is make a new folder. I'm going to call my folder TUTORIAL_LEVEL, although you can call your folder whatever you like.**
7676

77-
![Windows explorer window in ppl-utils/content/levels directory and creating TUTORIAL_LEVEL directory](https://i.imgur.com/OoUkG9m.png)
77+
![Windows explorer window in ppl-utils/content/levels directory and creating TUTORIAL_LEVEL directory](/img/intermediate/OoUkG9m.png)
7878

7979
And there you go! You now have the location of your custom level, and all the levels are nice and organized! Time for the fun stuff!
8080

@@ -84,11 +84,11 @@ And there you go! You now have the location of your custom level, and all the le
8484

8585
You can either open up just your level file in your text editor, or you can open the folder that contains all the levels. This is helpful for looking at other levels while you code! So head back to this screen below:
8686

87-
![Windows explorer window in ppl-utils/content directory](https://i.imgur.com/JVRk9P6.png)
87+
![Windows explorer window in ppl-utils/content directory](/img/intermediate/JVRk9P6.png)
8888

8989
And open the levels folder with your text editor! If you need help with this, feel free to reach out for help! If you're ready, then proceed down below!
9090

91-
![Visual Studio Code window open in ppl-utils/content/levels directory](https://i.imgur.com/BfYNE64.png)
91+
![Visual Studio Code window open in ppl-utils/content/levels directory](/img/intermediate/BfYNE64.png)
9292

9393
As pointed out by the very helpful green arrow, my level is on the left. The folder was initially empty. You need create a new script that will be your main level script. It HAS to be called `level.lua`. This is how PewPew Live enters into your level and runs it. It might change in the future, but it is good practice to keep consistency. And with the script made, you have an empty canvas. What's next?
9494

@@ -127,7 +127,7 @@ This piece of code sets the ship as a variable that you can reference later on!
127127

128128
**And there you have it! Down below is the final product.**
129129

130-
![](https://i.imgur.com/VHV6s29.png)
130+
![](/img/intermediate/VHV6s29.png)
131131

132132
**Now there's one more step before we can test out our level! We need something called a `manifest`**
133133

@@ -145,23 +145,23 @@ In the manifest you need to put this piece of code:
145145

146146
You can look at it and kind of get a sense of what's going on, but I will brief you on it. You put your level name where `"LEVEL_NAME"` is **INSIDE** the quotation `""` marks! You can do the same with the level description, inside the quotation marks and brackets `[""]`! See the `"entry_point"`? That's why we named the main script `level.lua`. The game enters through that script and runs your level. And that is _all_ you need to know about this new file. Down below is the manifest for my tutorial level.
147147

148-
![](https://i.imgur.com/eMCp8e5.png)
148+
![](/img/intermediate/eMCp8e5.png)
149149

150150
You are done! You can run your level!
151151

152152
**Ready to take it out for a spin? Good! Remember that `.exe` I mentioned some time back? Yeah, we need that. Head back to the screen below.**
153153

154-
![](https://i.imgur.com/CrvXuXT.png)
154+
![](/img/intermediate/CrvXuXT.png)
155155

156156
You need to run the ppl-utils file. It will open a window, and your computer will warn you about this file. Go ahead and run the file anyway, and you will be able to try out your level! You should get something like below:
157157

158-
![](https://i.imgur.com/0GVpONe.png)
158+
![](/img/intermediate/0GVpONe.png)
159159

160160
**Your levels are being run! Now you need to go to the website that the screen above is telling you!** The website to run your levels is [http://localhost:9000/pewpew.html](http://localhost:9000/pewpew.html)
161161

162162
You should get a screen like this:
163163

164-
![](https://i.imgur.com/Diaobu9.png)
164+
![](/img/intermediate/Diaobu9.png)
165165

166166
**As you can see, the manifest dictated what name my level would show as.**
167167

15.2 KB
Loading
27 KB
Loading
37.1 KB
Loading
13.8 KB
Loading
1.31 MB
Loading
23.1 KB
Loading
20.6 KB
Loading
62.2 KB
Loading
34.9 KB
Loading

0 commit comments

Comments
 (0)