new test main with code directly (fixes)

This commit is contained in:
2026-03-24 13:42:32 +00:00
parent 14f9b5dd26
commit 5630f8f119
63 changed files with 1677 additions and 198 deletions
@@ -0,0 +1,10 @@
{
"magic": "PMTU",
"cartridge_version": 1,
"app_id": 1,
"title": "Main Test",
"app_version": "0.1.0",
"app_mode": "Game",
"entrypoint": "0",
"capabilities": ["log"]
}
Binary file not shown.
-4
View File
@@ -4,9 +4,5 @@
"language": "pbs",
"stdlib": "1",
"dependencies": [
{
"name": "dep1",
"version": "1.0.0"
}
]
}
+6
View File
@@ -0,0 +1,6 @@
#!/bin/zsh
set -e
cp build/program.pbx cartridge
./runtime/prometeu run cartridge
+1
View File
@@ -0,0 +1 @@
../../../runtime/dist-staging/stable/prometeu-cli-aarch64-apple-darwin/
+10
View File
@@ -0,0 +1,10 @@
import { Log } from @sdk:log;
import { Input } from @sdk:input;
fn frame() -> void
{
if (Input.pad().a().pressed())
{
Log.debug("Hello World!");
}
}
+1
View File
@@ -0,0 +1 @@
pub fn frame() -> void;
@@ -1 +0,0 @@
module-a.barrel: content
@@ -1,3 +0,0 @@
fn a1()
{
}
@@ -1,4 +0,0 @@
fn a2(v1: int, v2: bounded): int
{
return v1 + v2;
}
@@ -1,4 +0,0 @@
fn a3(): int
{
return 1;
}