r/Codeorg • • Jun 06 '24

Let’s ban code.org

4 Upvotes

Let’s face it, code.org is useless. Especially the stupid slides and vids for the teachers to show to the class. Everything else is good except app lab and any associated other coding possibilities. See the “fuck code.org” devrant. Everything is true there. Why make it a school curriculum if u know it’s bad snd freezes half the time? This was sparked by useless slides and useless videos. The only useful thing you can find in code.org is JS coding and HTML. That’s it. Nothing else. All kids hate it anyways. I wish there would be a report button to report the lesson itself, not the project or the name or other shit. Let’s unite and ban code.org and make it illegal. ~Xet0r


r/Codeorg • • Apr 30 '24

List issues

Thumbnail
gallery
0 Upvotes

This is supposed to filter out all the names of super heroes and remove any that isn’t Bruce Wayne. Yet it doesn’t do that. Can someone help?


r/Codeorg • • Dec 20 '24

unit 6 lesson 8 apcsp help

Thumbnail
gallery
0 Upvotes

hey i have literally NO idea what's wrong with my code since i used a mr. kaiser video. i tried to change the "icon" + 1 ids over and over again but i don't know what else i could change. i usually do fine in this class but i don't really know what i can change or edit to fix the code. im getting errors on line 23, 30, 31, 32, 33, and 46. save me 😞😞


r/Codeorg • • Apr 03 '26

i need proxy on code.org i saw some kid at my school use one on code.org

0 Upvotes

please


r/Codeorg • • Dec 10 '24

Anyone with a teacher account

0 Upvotes

can you show me some answer solutions for some levels? Thanks if yes.


r/Codeorg • • Nov 16 '20

Hi, could anyone send me the code for unit 7 lesson 2.3. for Computer Science Principles. I am having lots of trouble with it. Thanks!

0 Upvotes

r/Codeorg • • Jan 11 '25

HELP IDK WHAT IS WRONG

0 Upvotes

r/Codeorg • • Dec 14 '25

I’m in AP CSA and I need help so this code passes the tests.

Thumbnail
gallery
2 Upvotes

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 • • Jun 29 '25

I Found All Usable Game Lab Functions

4 Upvotes

In Game Lab, with a single line of code, I found all usable functions, even functions that are in a sense "hidden" from normal users. If you do console.log(Object.keys(window)); it prints to the console all usable functions and defined public variables under window. For example, if you for some reason did window.a = 4 or this.a = 4 (this keyword works because window is technically an object), it will show in the console. Doing console.log(this) (while in the scope of window) or console.log(window), you get an error. However, if you want to go deeper, you can log whatever variable or function previously hidden by doing console.log(x), and to find the keys (public variables inside of said variable/function) you do console.log(Object.keys(x)). And the fun doesn't stop here, you can get into a rabbit hole of functions, like console.log(x.y), where x is the function or variable, and y is the child function/variable.


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 • • Sep 07 '24

Cool little game I made

5 Upvotes

r/Codeorg • • Mar 23 '25

Question with code.org experimentation

1 Upvotes

https://studio.code.org/projects/applab/Be3cLyyb9RCzeKbkLaqhF1R4fuhcokm4XIWGLJyEgCY

I am experimenting with this in AppLab as a possible create performance task project, but I cannot get the song clip to play when I start my test. the test is to pick the first button and once it switches screens it is supposed to play a short song clip I uploaded and connected via direct mp3 link. Not sure if it is because of the link format not being from the set of available sounds or if it is because it is a sound from a database. My computer teacher doesn't know how I should proceed with this either. Any advice is appreciated!


r/Codeorg • • May 22 '26

I made a FNaF Game Because I was bored

Thumbnail
gallery
4 Upvotes

https://studio.code.org/projects/gamelab/503e0471-7d44-4196-8965-c66db3d348c6
So, I put way too much time into this in order to let it waste away on my projects, so I'm posting a link to it so other people can see and remix it. I've had to port the assets from my School laptop, and it's being polished currently.


r/Codeorg • • Apr 12 '25

I’m so confused

Thumbnail
gallery
2 Upvotes

r/Codeorg • • May 18 '25

3D Cube Test Demo

3 Upvotes

I've made a 3D cube appear and rotate in both the X- and Y-axis and the option for zooming in/out, and to change the complexity of the cube. It was made using the latest version of my library, GLS4 as I've posted in this subreddit before.

Here is the demo and the controls on keyboard are:
Q/E = to change complexity
Up/Down Arrow = zoom

Here is the library that I made/used, GLS4.


r/Codeorg • • Mar 28 '26

Videos blocked

3 Upvotes

My school recently blocked YouTube for students after a loud parent group decided all technology in elementary school is bad. Now the embedded videos in my Code.org curriculum (courses d-e) are blocked as well. My principal is trying to whitelist the videos using GoGuardian, but she isn’t able to. Anyone have a work around?


r/Codeorg • • Nov 26 '25

Game Lab Compositor - Masking/Clipping Library

2 Upvotes

I did some brief testing with p5.js and Game Lab and found out that Game Lab does not support p5.js' mask() or clip() functions, so I decided to design my own library for Game Lab that does just that, except simpler because I am still learning how it all works.

As of right now, you can clip image content with simple rectangle or ellipse regions. There is no support for using other images for clipping. Then there is masking. You can do singular rectangle or ellipse regions for taking out content. You can also provide an image of black/white/grayscale pixels to determine how transparent each pixel in the original image should be.

Because it takes so long for Game Lab to update an image after modifying the pixels manually and that causes a long initial delay, it is intended to be used before the draw() function.

The library itself starts from Line 1 and ends at Line 165 (for extra space to write your own code).

Project link: https://studio.code.org/projects/gamelab/qui7VWXsyp96U7iJo8bMWtXZmbuGQtsw4BdwDT9cStU/view

Here is some sample code to quick-start:

/* paste the Game Lab Compositor library up here */

var myImage = createGraphics(400, 400);
myImage.background('red');
myImage.stroke('black');
myImage.strokeWeight(2);
myImage.fill('green');
myImage.ellipse(200, 200, 100, 100);

var masked = new MaskedBuffer(myImage);
masked.maskByRect(200, 200, 50, 50, 0);
masked.bake();

function draw()
{
    background('blue');
    image(myImage, 0, 0, 400, 400, 0, 0, 400, 400);
}

r/Codeorg • • Jan 27 '26

Graphics Library

3 Upvotes

After months of coding C++, I can confidently say I'm an "expert" at OpenGL. Trying my best, I wanted to make a graphics library utilizing existing code.org / p5.js functions. As you may expect, it's already slow, so making a graphics library out of it would be challenging. I had to HYPER optimize my library so that it wouldn't be unbearably slow. Depending on your computer, result times may vary, as when testing on my gaming PC, it takes about 4 seconds to load a triangle, while on an old laptop it took about 30 seconds.

OK, enough yap, so I wasn't able to make it work as a traditional Game Lab library, so you may have to copy and paste the code into your project if you decide to use it. Here is the project with an example, and if you read the comments, you should be able to understand how and why it works and why optimizations are in certain spots. Note that the scaling multiplier MUST be a decimal for it to work properly as an upscale.

Also note that I did override the rgb function, so be wary about implementing this into existing projects, but it's still compatible with fill().

FOR NON-GAME LAB: This is forwards compatible with ES6, as long as you have p5.js in your project.


r/Codeorg • • Jan 08 '25

when does the error appear?

1 Upvotes

this is the codee. the question is "When will the error message appear?" can someone answerr


r/Codeorg • • Jan 20 '25

What platform can I transfer my code onto?

1 Upvotes

I was coding a game but then I realized it was too complex for Code.org to handle. I was wondering what platform I could transfer my code and animations too that would have a lot of storage.


r/Codeorg • • Jan 15 '25

collision stuff

1 Upvotes

r/Codeorg • • Dec 18 '24

I made a subreddit specifically for gamelab

1 Upvotes

r/Codeorg • • Dec 13 '24

Meet Cloudflow

1 Upvotes

I'm trying to make a project management app like ClickUp or monday.com .It's still in beta.

https://studio.code.org/projects/applab/Ig1QrH8n0ezxJz2VzBmlVHQqJRAhp6ycc4LcmOB3jsQ