Coder Social home page Coder Social logo

microsoft / tilecode Goto Github PK

View Code? Open in Web Editor NEW
104.0 13.0 16.0 79.41 MB

Design, Code and Play Games on MakeCode Arcade Devices

Home Page: https://microsoft.github.io/tilecode/

License: MIT License

TypeScript 93.03% F# 1.99% HTML 2.72% SCSS 2.26%

tilecode's Introduction

TileCode banner

Microsoft TileCode

Microsoft TileCode is a game creation app that allows you to design, code, and play games directly on Microsoft MakeCode Arcade devices. Read more about it in the UIST 2020 paper TileCode: Creation of Video Games on Gaming Handhelds. For more information, see the Microsoft TileCode project page.

Building

TileCode is built using Microsoft MakeCode Arcade, a web app for programming retro video games in the web browser, with support for a variety of gaming handhelds. Once the web app is loaded, click the "import" button on the right side of the screen and then input the URL of this repo to load the TileCode project into MakeCode Arcade.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

tilecode's People

Contributors

ganicke avatar microsoft-github-operations[bot] avatar microsoftopensource avatar pelikhan avatar stefania11 avatar tballmsft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tilecode's Issues

change-based optimization for resting rules

a resting rule R on (resting) sprite S shouldn't be evaluated if:

  1. R's precondition != true
  2. S's neighborhood hasn't changed

change of S's neighborhood can be approximated by

  • a sprite S2 (!= S) moved in/into/outof S's neighborhood (motion bit)
  • a tile changed value (change bit)

default games

-[ ] world map with walls
-[ ] nice default sprites
-[ ] rules for player sprite

parser/unparser for TW

  • extract binary representation of TW in settings to Static TypeScript (hex literal)
  • versioning information embedded in settings

debugger

  • debugger interaction
  • set of programs outside of simulator and loading them

global rules

Need a way to specify "global" rules, such as

  • count of sprite has reached zero

go directly into game

I have created a TileWorld game and want to share it so that people go directly into the game.

TODOs

  • finish collision rules
  • API for reading/writing "bytecode"
  • virtual machine
  • collision guards and commands
  • redo world editor UI with in-world menu
  • UI for all rules in program (by sprite?)

make cursor more visible

[9:09 AM] Peli de Halleux
Maybe your cursor should blink or wiggle. It’s hard to see where it is sometimes.
​[9:09 AM] Peli de Halleux
When you select a color in paint, move the cursor to the last known position in the image

debugger

In the debugger, show the enabled rules and allow the user to choose which to apply. Other thoughts:

  • visual representation of the sprite state (resting, moving, colliding)
  • how to deal with the dpad?

collision bug

strangely, no collision if single key press to move right one space, but collision if key held down!

error getting when i do app wrapping for intune apk

Application wrapping in progress. App Wrapping Tool Version: 1.0.2676.4
Failed to package app.
com.microsoft.intune.mam.apppackager.utils.AppPackagerException: Failed to decode the apk file.
com.microsoft.intune.mam.apppackager.utils.APKToolWrapper.decodeAPK(APKToolWrapper.java:142)
com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:79)
com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:223)
com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:59)
brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: zip file is empty
brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:307)
brut.androlib.ApkDecoder.decode(ApkDecoder.java:103)
com.microsoft.intune.mam.apppackager.utils.APKToolWrapper.decodeAPK(APKToolWrapper.java:140)
com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:79)
com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:223)
com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:59)
brut.directory.DirectoryException: java.util.zip.ZipException: zip file is empty
brut.directory.ZipRODirectory.(ZipRODirectory.java:55)
brut.directory.ZipRODirectory.(ZipRODirectory.java:38)
brut.directory.ExtFile.getDirectory(ExtFile.java:52)
brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:305)
brut.androlib.ApkDecoder.decode(ApkDecoder.java:103)
com.microsoft.intune.mam.apppackager.utils.APKToolWrapper.decodeAPK(APKToolWrapper.java:140)
com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:79)
com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:223)
com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:59)
java.util.zip.ZipException: zip file is empty
java.util.zip.ZipFile.open(Native Method)
java.util.zip.ZipFile.(Unknown Source)
java.util.zip.ZipFile.(Unknown Source)
java.util.zip.ZipFile.(Unknown Source)
brut.directory.ZipRODirectory.(ZipRODirectory.java:53)
brut.directory.ZipRODirectory.(ZipRODirectory.java:38)
brut.directory.ExtFile.getDirectory(ExtFile.java:52)
brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:305)
brut.androlib.ApkDecoder.decode(ApkDecoder.java:103)
com.microsoft.intune.mam.apppackager.utils.APKToolWrapper.decodeAPK(APKToolWrapper.java:140)
com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:79)
com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:223)
com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:59)
Failed to decode the apk file.

design for collision rules

  • need a separate space for moving sprite colliding with resting sprite
  • limit the neighborhood to self (moving) sprite and 4 other moving sprites
  • the only attribution can be to define the kind of the other sprite
  • stop and u-turn commands are only for sprites in motion that are about to collide
  • remove command can be done any time
  • fix up VM for collision

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.