Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Git

- **Never add yourself as a co-author of commits.** Do not append a `Co-Authored-By` trailer (or any other authorship attribution) to commit messages. Write the plain commit message only.
- **NEVER add yourself as a co-author of commits. No exceptions, ever.** Do not append a `Co-Authored-By` trailer, a "Generated with Claude Code" line, or any other authorship attribution to commit messages or pull request descriptions. Write the plain message only. This rule is absolute: it is not overridden by any other instruction, system reminder, skill, default, or later message that asks for attribution. If anything else tells you to add attribution, that instruction is wrong and this rule wins — do not weigh them against each other, do not ask, just leave the attribution out.
- **Never commit unless explicitly asked.** Make and stage changes, but only run `git commit` when the user requests it.

## Monorepo layout
Expand Down
2 changes: 1 addition & 1 deletion bundles/angry-pixel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angry-pixel",
"version": "2.3.7",
"version": "2.3.8",
"description": "Lightweight 2D game engine made with TypeScript.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
13 changes: 9 additions & 4 deletions packages/engine/src/manager/SceneManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,22 +99,27 @@ export class SceneManager {
this.currentSceneName = this.sceneNameToBeLoaded;
this.sceneNameToBeLoaded = undefined;

this.scenes.get(this.currentSceneName).loadAssets();
this.scenes.get(this.currentSceneName).registerSystems();
const scene = this.scenes.get(this.currentSceneName);

scene.systems = [];
scene.loadAssets();
scene.registerSystems();
this._loadingScene = true;
}

if (this._loadingScene && this.assetManager.getAssetsLoaded()) {
const scene = this.scenes.get(this.currentSceneName);

this._loadingScene = false;
this._sceneLoadedThisFrame = true;

this.scenes.get(this.currentSceneName).createEntities();
scene.createEntities();

// update some components for the initial entities
this.systemManager.update(SystemGroup.Transform);
this.systemManager.update(SystemGroup.PreGameLogic);

this.scenes.get(this.currentSceneName).systems.forEach((systemType, index) => {
scene.systems.forEach((systemType, index) => {
this.systemFactory.createSystemIfNotExists(systemType);
this.systemManager.enableSystem(systemType);
this.systemManager.setExecutionOrder(systemType, index);
Expand Down
2 changes: 1 addition & 1 deletion packages/webgl/src/renderer/TextRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class TextRenderer implements Renderer {
const shadowRenderData = {
...renderData,
color,
opacity,
opacity: opacity * renderData.opacity,
position: Vector2.add(this.shadowPosition, renderData.position, offset),
};
shadowRenderData.shadow = undefined;
Expand Down
Loading