Skip to content

Commit

Permalink
Merge pull request #9 from MTSyntho/main
Browse files Browse the repository at this point in the history
Added Drawr Masta (Terrible Game)
  • Loading branch information
ItsLap authored Jun 12, 2024
2 parents d558bfe + 8d453b2 commit 9f18daf
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/mt/drawr-masta/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
export default {
name: "Drawr Masta",
description: "Draw whatever you want and send it off (Terrible Game)",
ver: 1.3, // Compatible with core v1.3
type: "process",
exec: async function (Root) {
let wrapper;
let DMWindow;

console.log("quick gaem test");

Root.Lib.setOnEnd((_) => DMWindow.close());

const Win = (await Root.Lib.loadLibrary("WindowSystem")).win;

// Testing the html library
DMWindow = new Win({
title: "Drawr Masta",
content: '<iframe src="https://mt.thats-the.name/games/drawr-masta/index.html">',
pid: Root.PID,
width: 640,
height: 480,
onclose: () => {
Root.Lib.onEnd();
},
});

wrapper = DMWindow.window.querySelector(".win-content");
wrapper.style.padding = "0px";

return Root.Lib.setupReturns((m) => {
console.log("Example received message: " + m);
});
},
};
Binary file added pkgs/mt/drawr-masta/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions pkgs/mt/drawr-masta/meta.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// An example metadata file for an application
{
// Name for your application
name: "Drawr Masta",
// A simple description for your application
shortDescription: "Draw anything.",
// Description for your application
description: "Draw whatever you want and send it off (Terrible Game)",
// Who created this app? Should be the same as the folder name, or a localized string version.
author: "mt",
// The catergory of your app. Should be one of the following:
// "Entertainment", "Work", "Play"
category: "Play",
// The minimum core version your app is compatible with.
compatibleWith: 1.6,
// The version history of your app (descending).
versions: [
{
ver: "1.0.0",
cmp: 1.5,
date: "2024-06-12T00:52:00.000Z",
},
],
// A long description (text only) of the details of the latest update.
latestVersionInfo: "",
// App assets (shown in the app store)
assets: {
path: "app.js",
icon: "assets/icon.png",
banner: null,
},
// Example section for localization
// (not currently implemented but planned to be supported)
// !! You can remove this section if you don't have any localized metadata. !!
localization: {
// English (United States)
en_US: {
name: "Drawr Masta",
description: "Draw whatever you want and send it off (Terrible Game)",
},
},
}

0 comments on commit 9f18daf

Please sign in to comment.