Discuss Scratch

Sprixellll
New Scratcher
5 posts

MY BEST GAMES VALIDATION

MY BEST GAMES!!!


Hello all! In my first few days some projects have become extremely successful! However, there are people being especially spiteful to me and my coding saying it is AI and stolen. So, to validate them, I am creating this discussion explaining exactly how it works to validate THAT I DO NOT STEAL OR USE AI! I hope that after this explanation people can understand that.

PT 1:

Totter: 3D Online Jenga:

The project is divided into several major systems:
1. 3D rendering and projection.
2. Jenga block geometry and physics.
3. Player interaction and block selection.
4. Game rules and turn management.
5. Online multiplayer and networking.
6. Menus and interface.
7. Animation, sound and visual effects.
2. What each sprite does
The internal sprite names are obscured, but their costumes and programming are not.

Target 1 Main graphics/3D drawing system. Contains 31 costumes named p5_0 through p55_4, plus a pen costume.
Target 2 Tower system. Has a costume named Tower.
Target 3 Main game controller. Has a Game costume and numerous game-state broadcasts.
Target 4 Physics engine. Has a Physics costume and extensive mathematical calculations.
Target 5 Interface panel.
Target 6 Logo and introductory graphics.
Target 7 Main menu and multiplayer selection interface.
Target 8 Menu rows, including highlighted rows.
Target 9 Numeric keypad, including digits and delete.
Target 10 Push button, with normal and pressed appearances.
Target 11 Leave button.
Target 12 Custom text-rendering system. Contains individual letter, number and punctuation costumes.
Target 13 Network system. Has a Net costume.

Target 12: instead of relying entirely on Scratch's normal text rendering, it has 154 individual character costumes.

That allows the project to construct text from its own graphical character assets.
3. The 3D graphics system
Confirmed from project structure
The project has a dedicated graphics target containing 1,837 blocks.

Its programming contains substantial use of:
- operator_multiply
- operator_add
- operator_subtract
- operator_divide
- data_itemoflist
- data_setvariableto
- control_if
- procedures_call
These are not just incidental calculations. They form a large mathematical processing system.

How 3D rendering works conceptually

A Scratch project cannot directly create a conventional 3D scene using a built-in 3D engine.

Instead, a project can represent 3D objects mathematically and convert their coordinates into 2D screen positions.

The fundamental operation is a 3D-to-2D projection.

For example, a point in 3D space has coordinates:
\[
Px,y,z)
\]

A simplified perspective projection is:
\[
x_s=c_x+f\frac{x}{z}
\]

\[
y_s=c_y+f\frac{y}{z}
\]

Where:
- \(x,y,z\) are the 3D coordinates.
- \(f\) is the projection scale or focal length.
- \(c_x,c_y\) are screen-centre coordinates.
- \(x_s,y_s\) are the final 2D screen coordinates.
The result is that objects farther away appear smaller.

Important distinction: these equations explain the mathematical technique, not a verified transcription of the project's exact projection formula. The uploaded project uses obfuscated procedures, so I would need to trace the relevant individual calculation blocks before claiming its precise formula.

The presence of the 31 graphics costumes and the large mathematical processing system is consistent with a custom-rendered 3D environment.

The Pen extension

The project explicitly uses Scratch's Pen extension.

These are the blocks used in Scratch's java script names.
- pen_clear
- pen_penDown
- pen_penUp
- pen_setPenSizeTo
- pen_setPenColorToColor
- pen_stamp
- motion_gotoxy

This is significant because the project can draw directly onto the Stage using calculated coordinates.

The drawing operation looks like this:
erase all
set pen size to (thickness)
set pen color to (colour)

pen up
go to x: (x1) y: (y1)

pen down
go to x: (x2) y: (y2)
go to x: (x3) y: (y3)
go to x: (x4) y: (y4)
go to x: (x1) y: (y1)

pen up


The important technique is that the program calculates the screen coordinates first, then uses the Pen extension to draw the resulting geometry.

The renderer contains numerous custom procedures, so it can divide the drawing process into smaller reusable operations rather than putting everything into one enormous script.

4. The tower and Jenga block system

The tower is handled by a separate target containing 853 blocks.

Its broadcasts include:
- broadcast-new-tower
- broadcast-tick
- broadcast-bot-pick

These are particularly useful for understanding the game's architecture.

New tower

broadcast-new-tower signals that the tower needs to be created or reset.

This separates tower creation from the main game controller. The controller can request a new tower without having to contain all the tower-generation code itself.

Game tick

broadcast-tick is used across multiple targets, including the tower, physics, menus and interface.

This is a central coordination mechanism.

A Scratch broadcast allows multiple scripts to respond to the same event:
when I receive

if <(game is active)> then
// Update this system
end


The actual project uses its own obfuscated variables and custom procedures, but the broadcast itself is explicitly present.

Bot selection

The tower also listens for broadcast-bot-pick.

This means that the AI/bot interaction is integrated into the tower system rather than being entirely independent of it.

5. The physics engine

Dedicated physics target

This is one of the most substantial parts of the project.

The Physics target contains:
- 1,405 programming blocks.
- 89 variables.
- 18 lists.
- 22 custom procedures.
Its code relies heavily on mathematical operations and list manipulation.

Why lists matter

A physics simulation needs to keep track of multiple objects and their properties.

For example, a block could theoretically be represented using arrays such as:
Property Example
X position 20
Y position 80
Rotation 0
Horizontal velocity 0
Vertical velocity -2
Mass 1

A collection of blocks can then be represented through lists.

Conceptually:
add (block X) to
add (block Y) to
add (block rotation) to
add (block velocity) to


The project uses considerably more complicated list processing than this simplified example.

Physics calculations

The physics target contains extensive use of:
- operator_multiply
- operator_add
- operator_subtract
- operator_divide
- operator_mathop
- data_itemoflist
- data_replaceitemoflist
- data_addtolist
These operations support calculations and updating stored data.

The target also receives:
- broadcast-tick
- broadcast-collapse
The broadcast-collapse means that the tower collapse is treated as an event that other parts of the game can respond to.

What happens when the tower moves?

The architecture indicates a separation between the physical simulation and the visual rendering:
1. The physics system maintains and calculates the game state.
2. The tower system handles the tower's representation and interactions.
3. The graphics system draws the scene.
4. The game controller coordinates the resulting game events.
This separation makes the project much easier to maintain than putting all the physics, rendering and game rules into one sprite.

6. Block interaction

The project has a dedicated interaction target with two identifiable broadcasts:
- broadcast-block-out
- broadcast-block-placed
It also has a variable and a list dedicated to block-related information.

These events establish an important part of the Jenga gameplay cycle.
Block interaction lifecycle
1. Block selection

The player interacts with a block.
2. Block removal event

broadcast-block-out signals that a block has been taken out.
3. Block movement

The interaction and physics systems can process the resulting change.
4. Block placement event

broadcast-block-placed signals that a block has been placed.
5. Physics and rendering update

The tower and graphics systems can respond to the changed state.

This is a much better architecture than having the mouse directly control every part of the tower.
7. Online multiplayer and networking
Confirmed from cloud variables and network script

The game has a dedicated networking target containing:
- 812 programming blocks.
- 49 variables.
- 8 lists.
- 28 custom procedure definitions.
It also has three explicitly named Scratch cloud variables:
- ☁ lobby
- ☁ party
- ☁ game
These are important because Scratch cloud variables allow data to be shared through Scratch's servers.
Multiplayer menu
The menu sprite contains costumes for the following options:
Game modes
Play together
Local

Play the bot
AI

Play online
Online


Player configuration
- 2 players
- 3 players
- 4 players
Difficulty configuration
- Easy
- Normal
- Hard

Online party options
- Create a party
- Join with a code
- Public party
- Private party
- Start game
- Join
- Leave party

Networking event system
The main game controller contains the following exact broadcast events:
Broadcast Purpose indicated by its name
broadcast-net-online Online connection/game state
broadcast-net-parties Party discovery
broadcast-net-party Party information
broadcast-net-joined Successful party joining
broadcast-net-failed Failed network operation
broadcast-net-start Starting an online game
broadcast-net-closed Closing a party/session
broadcast-net-left Leaving a party

The networking sprite also listens for broadcast-net-cmd.

This means that the project has a command-based communication system between the network layer and the main game.

How cloud multiplayer works

Scratch cloud variables are not equivalent to a normal multiplayer server with arbitrary data structures.

They store shared values, so games commonly encode information into strings or numbers.

For example, a simplified communication system might look like:
set to
(join (join (x position) (y position)))


Another player could decode that information and update their local game.

The actual project contains substantially more elaborate networking code. However, I haven't established the exact encoding format or the precise information transmitted by each cloud variable.

It would be inaccurate to claim that every block position, velocity or rotation is transmitted individually without tracing the network serialization procedures.
8. Main game controller
The Game target contains 873 blocks and is responsible for coordinating the overall game.

Its broadcasts reveal a lot about the game's internal structure.

The most important events are:
Event Function
broadcast-menu-pick Menu selection
broadcast-key-pick Keypad interaction
broadcast-party-pick Party selection
broadcast-turn-over Turn completion
broadcast-settled Settling event
broadcast-net-start Online game startup

Turn management

The broadcast-turn-over means that turn changes are handled as explicit events.

This is useful because different parts of the game can respond to a turn change independently.

For example:
when I receive

change by (1)

if <(current player) > (number of players)> then
set to (1)
end


This is an illustrative implementation, not a literal copy of the project's code.

The actual controller uses obfuscated variables and custom procedures.

Settling

The controller also has broadcast-settled.

This is particularly relevant to a physics-based Jenga game because the game needs to distinguish between an object still moving and one that has finished moving.

The physics and controller systems can communicate through this event.

The exact settling condition and timing threshold still need to be traced in the source blocks.
9. Custom text-rendering engine

This is another technical feature.

The text sprite contains 154 costumes:
- 77 costumes beginning with u_.
- 77 costumes beginning with t_.
These include uppercase letters, lowercase letters, numbers and punctuation.

For example:
u_A
u_B
u_C
…
u_a
u_b
u_c
…
u_0
u_1
u_2
…


There is also a second corresponding character set beginning with t_.

How this works

Rather than displaying an entire string as ordinary Scratch text, the game can represent each character as an individual sprite costume.

The basic algorithm is:
delete all of

set to (1)

repeat (length of (text))
set to
(letter (character position) of (text))

create character representation

change by (1)
end


The actual implementation has six custom procedures and additional functionality.

This approach provides precise control over typography, spacing and animation.

The project also has a broadcast-text-sweep event, indicating that it has a dedicated text-animation mechanism.
10. Menu interaction and interface
The interface is separated into several targets rather than being built entirely into the Stage.

The project contains:
- A logo.
- A panel.
- Menu rows.
- Highlighted menu rows.
- A numeric keypad.
- A push button.
- A leave button.
- A custom text renderer.
The menu uses broadcasts such as broadcast-show-screen and broadcast-tick.

This means the interface can respond to screen changes without the main game controller having to directly manipulate every menu element.

The numeric keypad is especially relevant to the online party system because the game offers joining parties with a code.

Its costumes include:

k1, k2, k3, k4, k5, k6, k7, k8, k9, k0, kdel.

That is a purpose-built keypad rather than a generic text input.

11. How the whole project works together
The following diagram represents the architecture established by the actual sprite structure and broadcasts.
MAIN GAME CONTROLLER

Game rules · Turns · Menus · Game state

TOWER SYSTEM

Blocks · Tower creation · Bot interaction


PHYSICS ENGINE

Calculations · State updates · Collapse


3D GRAPHICS

Pen drawing · Mathematical projection


NETWORK ENGINE

Cloud variables · Parties · Online commands



INTERFACE SYSTEM

Menus · Text · Keypad · Buttons · Screens

Conceptual architecture based on the project's actual targets and communication events, not a literal execution-flow diagram.
Here is the overall execution sequence:
1. The project starts and initialises its game variables.
2. The menu system displays the available game modes.
3. The player chooses local, bot or online play.
4. The game establishes the player configuration.
5. The tower system creates the Jenga tower.
6. The graphics engine draws the scene.
7. The player interacts with a block.
8. The interaction system signals block removal or placement.
9. The physics engine processes changes.
10. The game checks the resulting game state.
11. The turn-management system advances the game.
12. The process repeats until the game ends.
The individual event names and supporting systems are verified; the ordering above is an architectural explanation rather than a claim that every step executes in precisely that order.

End of PT 1 validation.
PopPixelProductions
Scratcher
11 posts

MY BEST GAMES VALIDATION

you are using the word "validate'' as a antonyms of it self.
Sprixellll
New Scratcher
5 posts

MY BEST GAMES VALIDATION

I do not understand.
BrainGamer1234
Scratcher
100+ posts

MY BEST GAMES VALIDATION

Sprixellll wrote:

…people being especially spiteful to me and my coding saying it is AI and stolen. So, to validate them, I am creating this discussion explaining exactly how it works…

To validate means to confirm or support. So, currently, you are telling us that you indeed used AI.

Last edited by BrainGamer1234 (Yesterday 22:59:36)

Sprixellll
New Scratcher
5 posts

MY BEST GAMES VALIDATION

No, I was validating that i DIDN'T USE AI and that I made them myself.
Sprixellll
New Scratcher
5 posts

MY BEST GAMES VALIDATION

The them was intended for my projects as I am validating my PROJECTS. I can see where that would be confusing.
DaChickenFormMoon14
Scratcher
1 post

MY BEST GAMES VALIDATION

Question: How do you do to make AI making games?
Is that even possible? (just wondering)

Last edited by DaChickenFormMoon14 (Today 05:55:27)

Sprixellll
New Scratcher
5 posts

MY BEST GAMES VALIDATION

I don't know, I think you can ask it for code? But, people say I use it, and I don't, so, I needed to prove I don't.

Powered by DjangoBB