new test main with code directly (fixes)
This commit is contained in:
@@ -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,9 +4,5 @@
|
||||
"language": "pbs",
|
||||
"stdlib": "1",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "dep1",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/zsh
|
||||
|
||||
set -e
|
||||
|
||||
cp build/program.pbx cartridge
|
||||
./runtime/prometeu run cartridge
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../../runtime/dist-staging/stable/prometeu-cli-aarch64-apple-darwin/
|
||||
@@ -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!");
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user