-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from MTSyntho/main
Added Drawr Masta (Terrible Game)
- Loading branch information
Showing
3 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); | ||
}, | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)", | ||
}, | ||
}, | ||
} |