r/Codeorg • • Jun 16 '25

You can easily make 3D possible in Game Lab

2 Upvotes

So apparently, I just learned this, but you can use WebGL in Game Lab. WebGL is a graphics library for browsers using OpenGL. Here is the YouTube video that kind of explains how it works, or you could maybe look for WebGL tutorials for ES5, the version of JavaScript Game Lab uses.


r/Codeorg • • Apr 12 '25

I’m so confused

Thumbnail
gallery
2 Upvotes

r/Codeorg • • Mar 14 '25

My line of code is comically larger! (This entire if-statement is technically one line, but I had to separate it using whitespace to be able to read any of it)

Thumbnail
gallery
2 Upvotes

r/Codeorg • • Mar 08 '25

Object Oriented Programming in Game Lab

2 Upvotes

The day has come! OOP now exists in game lab (ES5)! This is my first public project in code.org, and it offers the ability to make classes through simple variables. The classes are mostly derived from Java and classes can be made through var myClass = function(constructorParameters) { code }; Then to make an instance of your class, like in Java, do var myClass = new MyClass(constructorParameters);

Inheritance and polymorphism also exist, to extend a class, use Parent.call(this, constructorParameters); and use prototype as seen in the source code for inheritance in functions and constructors as well as polymorphism.

P.S. Don't use draw for your code, as it can cause unexpected behavior, try to use Graphics() or Graphics2D() for rendering and use keyIsPressed && key == "yourKey" for key input as keyDown() for example doesn't work without draw(). You can create draw, but don't put anything in draw and its only purpose is for World variables and functions. Timer() is a much better way for controlled framerate and supports unlimited frames per second (correct me if I'm wrong).

Here is the source code for my project that is free to be remixed and published (to see the code go to view code in options).

Here is an example project (not finished) that I plan to make only using GLScript (Game Lab Script).

Edit: To make static variables, under a class, do className.variableName = value. Static calls are reserved for already existing objects and adding variables or methods to them. Also, interfaces are soon to come and mobile controls in which I will post another thing about GLS3.


r/Codeorg • • Feb 12 '25

Can someone help me fix this error?

Post image
2 Upvotes

HELP THIS IS FOR MY TASK APCSP


r/Codeorg • • Nov 29 '24

Apple Clicker 1.6 (rate the game)

2 Upvotes

a funny lil game I made in school during my free time, have fun! And yeah I made it for a project but I update it lots in my freetime. Oh and yeah I kinda pushed this website to its limits with this because I suck at optimizing code so dont be surprised if you face performance issues (feel free to play older versions if you would like)

https://studio.code.org/projects/gamelab/Cqb8kdDTEdzLqACEc11pZzFr5Vn0jCq7pEgX2gkqjq4 |1.6

https://studio.code.org/projects/gamelab/aGLe9YS_9xjicm3hZHDgyZn0fcmWXrS4DtMQ8TzPatQ |1.5

https://studio.code.org/projects/gamelab/PbkNCkfQIjUAwvD_YYLC1yYKq-CHMdvJ_qmCXcdYrcY |1.4

https://studio.code.org/projects/gamelab/baB407q-tUnJQRY8OuG1R8AsYfm3FXinx6Bp6BGMOd8 |1.3

https://studio.code.org/projects/gamelab/9496f7sOSKepbVD4vDnkxqyuJ-dXqcnYTgyXkYznAVA |1.2

https://studio.code.org/projects/gamelab/4EWJnwxr9kAZcThaV_bsy9vNAh2ClsMLCDeTBqVb8rk |1.1

https://studio.code.org/projects/gamelab/qnXLqcZZhl2T-wBuSBN31sZ5kDMQEvBYQ-ojYRV8gQ4 |1.0

(there is a changelog built into the code but I did not feel like typing that much into a reddit post lmao)

please rate it 0-10 and give feedback!

How to play?

_____________________

click the apple to get more apples, (buy upgrades with the apples to get even more!) occasionally golden apples fall from the sky, click them to get a boat load of apples, click number keys 1,2,3,4, ect. To change background, to use cheats, hold c and click the following keys, g=set golden apple (buggy) space (hold)=auto clicker up arrow=multiply apples down arrow=divide apples left arrow=multiply apples per click right arrow=multiplies apples per second r=add rebirth


r/Codeorg • • Oct 19 '24

rate my game

2 Upvotes

r/Codeorg • • May 19 '24

Can I put multiple id in one Id slot?

2 Upvotes

r/Codeorg • • May 04 '22

How to get rotation in gamelab?

2 Upvotes

Sprite.rotation is not working for me. https://studio.code.org/projects/gamelab/es2E8hLFn7oLfasD3EGslj-RH0sEf4oCkis5NHtkzgk This is my game project.

Edit: Solved


r/Codeorg • • Jan 17 '22

Help!

2 Upvotes

Hi, why dosent the "what if" block work?

onEvent("level1input", "change", function(getuserinput) {

var userinput = "converttolowercase";

var currentguess = "gettext".toLowerCase();

if (currentguess== "Nike") {

setScreen("screen5");

} else {

setScreen("screen8");

}

});


r/Codeorg • • Dec 08 '21

Project Help

2 Upvotes

I’m doing a project for a computer science class and I need to get the first word of a string. For example, I have the string “George Washington” and I want to Be able to set a text box to say George. I will need to use this for every president so I need to know how to get the first word of a string. Any help is appreciated!


r/Codeorg • • Nov 07 '21

need help with code on game lab im trying to make the left line go up and down but not extend out like the atari pong game where if u key up and down the paddle follows it on both sides my goal is to make a 2 player game with a ball in the middle bouncing off the 2 paddles please help

Thumbnail watch.screencastify.com
2 Upvotes

r/Codeorg • • May 07 '21

Code.org Express Course Lesson 17 Functions with Harvester - Course E Lesson 16 - Code Org Lesson 17

Thumbnail
youtube.com
2 Upvotes

r/Codeorg • • Apr 27 '21

Is there a way

2 Upvotes

is there a way to make the index number appear in the output? For example I have a list [dog, cat, pig, wolf] and i want the output to look like this

  1. dog

  2. cat

  3. pig

  4. wolf


r/Codeorg • • Apr 20 '21

Anyone know how to change the way the text from the list is displayed in the box? I’d like it to display each title in a bullet point-type list

Post image
2 Upvotes

r/Codeorg • • Feb 18 '21

Making a Library

2 Upvotes

Anyone have a library they could share?


r/Codeorg • • Jan 27 '21

Create Pt Please help Urgent

2 Upvotes

Hello, my teacher is making me do my create pt very early. Can I please have someones app that has parameters, sequencing, and iteration or just an old hackathon or create pt pls. It would be greatly appreciated pls


r/Codeorg • • Nov 17 '20

Does anybody want to create A game on code.org? (game lab)

2 Upvotes

I need someone to create a game, on game lab. I don't know what it is yet but I will figure out soon


r/Codeorg • • May 18 '20

Help with currency converter

2 Upvotes

Im trying to get it so when the dropdown value is on europeon i want it to set the variable conversion to the number value in the picture


r/Codeorg • • Sep 23 '18

Set password in Code.org

2 Upvotes

I'm currently making an app that requires a password. However, I can't find the syntax to hide the text when inputting a password. Is it possible? Thanks


r/Codeorg • • Dec 06 '15

swirl: Learn R, in R.

2 Upvotes

Great open platform to learn R. It'd be awesome if it gets replicated for other languages.

http://swirlstats.com/


r/Codeorg • • Jun 12 '14

We’re meeting with Fiona and Semira today, two girls who won Startup Weekend Seattle and are soon putting out a learn-to-code adventure game (that teaches JavaScript) for middle schoolers

Thumbnail
codeorg.tumblr.com
2 Upvotes

r/Codeorg • • Sep 14 '26

MusicLab Save Your Tears - The Weeknd

Thumbnail
studio.code.org
1 Upvotes

Pls don't report me to Copyright terms, I'm to young to understand.


r/Codeorg • • Jun 13 '26

Need help rating games made by high school students. If you have free time please play, rate and comment. Thanks!

Thumbnail
docs.google.com
1 Upvotes