Skip to content

Commit

Permalink
Add script debugger pane to World view, when game is run while this i…
Browse files Browse the repository at this point in the history
…s open allows inspecting currently running scripts, setting breakpoints and updating live variable values
  • Loading branch information
chrismaltby committed Mar 26, 2024
1 parent f1d184c commit 34dc7ac
Show file tree
Hide file tree
Showing 74 changed files with 3,366 additions and 201 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add shortcut to search scenes when in world mode by pressing `/`
- Add support from adding sound effects to a project by dragging files into project window (to match how this works for other asset types)
- Add native Mac ARM support for M1/M2/M3+ devices
- Add script debugger pane to World view, when game is run while this is open allows inspecting currently running scripts, setting breakpoints and updating live variable values

### Changed

Expand Down
Binary file modified appData/wasm/binjgb/binjgb.wasm
Binary file not shown.
46 changes: 46 additions & 0 deletions appData/wasm/binjgb/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -319,3 +319,49 @@ body {
opacity: 0.5;
}
}

#debug {
display:flex;
flex-direction:column;
align-items:center;
padding:10px;
position:fixed;
top:0px;
left:0px;
right:0px;
bottom:0px;
background:rgba(0,0,0,0.5);
}

#debug div {
background: white;
color: black;
border: 1px solid #ddd;
border-radius: 4px;
transform: position;
font-size: 11px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
display: flex;
align-items: center;
}

#debug span {
padding: 5px 8px;
}

#debug button {
background: transparent;
border: none;
border-left: 1px solid #ddd;
display: flex;
align-items: center;
height: 100%;
}

#debug button:hover {
background: #eee;
}

#debug button:active {
background: #ddd;
}
1 change: 1 addition & 0 deletions appData/wasm/binjgb/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@
</script>
<script src="binjgb.js"></script>
<script src="js/script.js"></script>
<script src="js/debugger.js"></script>
</body>
Loading

0 comments on commit 34dc7ac

Please sign in to comment.