Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Example #495

Open
8 tasks done
AllergenStudios opened this issue Mar 22, 2023 · 0 comments
Open
8 tasks done

Windows Example #495

AllergenStudios opened this issue Mar 22, 2023 · 0 comments
Labels
✨ New example A new example

Comments

@AllergenStudios
Copy link

AllergenStudios commented Mar 22, 2023

Describe the example

EDIT: had a mistake renaming it, sorry, it should be called Window Example, not sure how to change it

This is an example that uses the Shape Painter object to draw a Windows 11-like window!
It has few events and is extremely simple, but looks very nice.
It draws 2 rectangles, and creates a close button, and a draggable area to drag the top of the window around. There is a group you can easily add objects with the "sticker" behavior to and reposition it, and it will stick to the window while it is being dragged!

This could be useful for if someone wanted to make an OS with movable windows
Or an app where you can sort pieces of it around to make the layout how you'd like it
This could also be useful for games with windows (e.g. a game where you have to move away or close all the windows to find something buried in it). There are probably lots more uses that I cant think of, but I think this would be a very useful example!

Checklist

  • I've followed all of the best practices.
  • My game has a proper name in the game properties.
  • My game package name behind with com.example..
  • My game has all events unfolded.
  • I've added myself as the author in the game properties.
  • I've included a file called "README.md" with a description in proper English, explaining what this example is doing.
  • I confirm that this game and all of its resources can be integrated to this GitHub repository, distributed and MIT licensed.
  • I've cleaned unused resources.

Game folder

WindowsExample.zip

@AllergenStudios AllergenStudios added the ✨ New example A new example label Mar 22, 2023
@Bouh Bouh changed the title New example Windows Example Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ New example A new example
Projects
None yet
Development

No branches or pull requests

1 participant