Skip to content

Commit

Permalink
Initial commit from VS Code.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-kulcsar committed Jul 1, 2024
1 parent acca8de commit d15ac89
Show file tree
Hide file tree
Showing 9 changed files with 118 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/makecode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: MakeCode Build
on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: npx makecode
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# MakeCode
built
node_modules
yotta_modules
yotta_targets
pxt_modules
.pxt
_site
*.db
*.tgz
.header.json
.simstate.json
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"arrowParens":"avoid","semi":false,"tabWidth":4}
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"ms-edu.pxt-vscode-web"
]
}
30 changes: 30 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"editor.formatOnType": true,
"files.autoSave": "afterDelay",
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/built/**": true,
"**/node_modules/**": true,
"**/yotta_modules/**": true,
"**/yotta_targets": true,
"**/pxt_modules/**": true,
"**/.pxt/**": true
},
"files.associations": {
"*.blocks": "html",
"*.jres": "json"
},
"search.exclude": {
"**/built": true,
"**/node_modules": true,
"**/yotta_modules": true,
"**/yotta_targets": true,
"**/pxt_modules": true,
"**/.pxt": true
},
"files.exclude": {
"**/pxt_modules": true,
"**/.pxt": true,
"**/mkc.json": true
}
}
24 changes: 24 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* This is the main file for your project.
*
* Create images, tilemaps, animations, and songs using the
* asset explorer in VS Code. You can reference those assets
* using the tagged templates on the assets namespace:
*
* assets.image`myImageName`
* assets.tilemap`myTilemapName`
* assets.tile`myTileName`
* assets.animation`myAnimationName`
* assets.song`mySongName`
*
* New to MakeCode Arcade? Try creating a new project using one
* of the templates to learn about Sprites, Tilemaps, Animations,
* and more! Or check out the reference docs here:
*
* https://arcade.makecode.com/reference
*/

game.onUpdate(() => {
// Code in this function will run once per frame. MakeCode
// Arcade games run at 30 FPS
});
4 changes: 4 additions & 0 deletions mkc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"targetWebsite": "https://arcade.makecode.com/",
"links": {}
}
14 changes: 14 additions & 0 deletions pxt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "pxt-ftss-tests",
"version": "0.0.0",
"files": [
"main.ts"
],
"supportedTargets": [
"arcade"
],
"dependencies": {
"device": "*"
},
"testDependencies": {}
}
15 changes: 15 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "ES5",
"noImplicitAny": true,
"outDir": "built",
"rootDir": "."
},
"include": [
"**/*.ts"
],
"exclude": [
"built/**",
"pxt_modules/**/*test.ts"
]
}

0 comments on commit d15ac89

Please sign in to comment.