Discuss Scratch

josueart
Scratcher
100+ posts

A Random Pen OS: Devlog

Anyways, your project is amazing.
You are super organized, I love the UI and I hope it gets even better.

Keep doing this amazing work, you're amazing :)


Check this Scratch status monitor I made with BetterStack: https://scratch.betteruptime.com
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

josueart wrote:

Anyways, your project is amazing.
You are super organized, I love the UI and I hope it gets even better.

Keep doing this amazing work, you're amazing :)
Thank you!

⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

Logo/Icon

This is definitely not me procrastinating! It totally is.

I made a logo for ARPOS, which just so happens to be a fish. (Reference to The Chosen)
View it here:
https://scratch.mit.edu/projects/880471004/

Since there's going to be some upcoming maintenance, I'm planning to download the project to my computer and work on it offline.

Last edited by TeenySpoon (Aug. 7, 2023 20:28:27)


⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

Update 1.4.3: Window Status: Close Window

I added the ability to close windows, which deletes it from the WM: Windows list.
And that concludes work on the window status. (except minimize, but that is related to the taskbar ig?)

Also, big thanks to eoeoeoeoeoeoeoeoe for giving feedback and helping me with all the PTE++ issues.
You should go send this person a comment that contains no e's

Update 1.5.1: Taskbar

I also created a taskbar with a separate list. It currently does nothing except keep track of the number of windows.

However, I plan to add more functionality to it, such as:
Useful functions:
  • detect when the mouse is hovering/clicking the icon
  • re-open minimized windows
  • preview a window (have a mini version appear)
  • close the window from the preview (maybe)

Aesthetics:
  • increase size of the icon and change color when hovering
  • different icons for each window/app

Last edited by TeenySpoon (Aug. 8, 2023 22:52:29)


⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
eoeoeoeoeoeoeoeoe
Scratcher
99 posts

A Random Pen OS: Devlog

AAAAAAA

Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion


“Have you ever just?” - important quote
2D4eter
Scratcher
100+ posts

A Random Pen OS: Devlog


(::#F80000) (::#F80000) (::#F89000) (::#F89000) (::#F8F800) (::#F8F800) (::#00F850) (::#00F850) (::#00F8F0) (::#00F8F0) (::#0038F0) (::#0038F0) (::#7800F0) (::#7800F0) (::#F800B0) (::#F800B0) :: #e0e0e0 reporter)
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

To-Do List


Priority
  • diagonal resizing
  • detect when the mouse is hovering the icon
  • detect when the mouse is clicking the icon
  • re-open minimized windows through the taskbar

Medium Priority
  • preview a window (have a mini version appear)
  • close the window from the preview (maybe)
  • increase size of the icon and change color when hovering

Low Priority
  • context menu/right-click menu thingy
  • different icons for each app
  • increase performance by not rendering windows that are underneath bigger windows

Last edited by TeenySpoon (Aug. 30, 2023 21:36:18)


⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
eoeoeoeoeoeoeoeoe
Scratcher
99 posts

A Random Pen OS: Devlog

No priority
  • Credit 400,000 more people in the “Notes and Credits” section.

Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion


“Have you ever just?” - important quote
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

Update 1.5.2: Taskbar: Mouse Detection

A few days ago, I added mouse detection for the taskbar and tried to implement icon detection. However, it didn't work.

Going through my code today, I discovered that I had forgotten about the order of items in my list (meaning that I was using the wrong values) and that the index of a taskbar icon could be different from window ID if windows were deleted.

After fixing most of the bugs, it detects when a mouse is hovering over an icon by checking whether the distance to its center is less than or equal to its radius.
However, it still doesn't find the window ID (id connecting the icon to the window) properly, because it displays as a blank value, so I'll have to look at that again when I have time.

Edit: It appears that the window ID is blank?? I added something that set it when a window was defined but idk, a bit tired so I'll fix it later.

Last edited by TeenySpoon (Aug. 17, 2023 18:23:27)


⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
2D4eter
Scratcher
100+ posts

A Random Pen OS: Devlog

eoeoeoeoeoeoeoeoe wrote:

No priority
  • Credit 400,000 more people in the “Notes and Credits” section.
Facts

(::#F80000) (::#F80000) (::#F89000) (::#F89000) (::#F8F800) (::#F8F800) (::#00F850) (::#00F850) (::#00F8F0) (::#00F8F0) (::#0038F0) (::#0038F0) (::#7800F0) (::#7800F0) (::#F800B0) (::#F800B0) :: #e0e0e0 reporter)
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

2D4eter wrote:

eoeoeoeoeoeoeoeoe wrote:

No priority
  • Credit 400,000 more people in the “Notes and Credits” section.
Facts
XD

I don't mind crediting that many people…but it won't fit in one post, that's for sure
(LET'S START A NEW THREAD JUST FOR CREDITS)

⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

Update 1.5.2: Taskbar: Mouse Detection, cont'd

After more sniffing around, I have determined that the cause of the bug to be located in the “render taskbar” function. Probably has something to do with overwriting the data. I'm going to take a closer look at that thing.

(oh the tribulations of making such a big project, even with emojification it still feels disorganized)

Edit:
It's always the little things…
It turned out that the cause of the problem was that I had stuck
change [tmp_i v] by (1)
in the middle of the code instead of at the top of the loop, where it should be. (facepalm)

Last edited by TeenySpoon (Aug. 18, 2023 17:33:01)


⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

Rebranding the Window Manager

I named my window manager IcthusWM. (There are so many references in that name XD)
In addition, I made a new thumbnail for the window manager and changed the colors to be The Chosen themed.

Of course, the actual OS will still be named "A Random Pen (fake) OS“; I just like having a name for each of the ”modules" for lack of a better name

⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
eoeoeoeoeoeoeoeoe
Scratcher
99 posts

A Random Pen OS: Devlog

Fish!!!

Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion


“Have you ever just?” - important quote
2D4eter
Scratcher
100+ posts

A Random Pen OS: Devlog

To-Do List


Highest Priority
  • Credit as many people as possible
  • Use scratcchattach and scratchconnect to install wifi and internet drivers ( that would be really really cool! )
  • Build web apps ( also i'm making my second browser and my goal is to be able to play a simple scratch game eg cloud pong )


(::#F80000) (::#F80000) (::#F89000) (::#F89000) (::#F8F800) (::#F8F800) (::#00F850) (::#00F850) (::#00F8F0) (::#00F8F0) (::#0038F0) (::#0038F0) (::#7800F0) (::#7800F0) (::#F800B0) (::#F800B0) :: #e0e0e0 reporter)
eoeoeoeoeoeoeoeoe
Scratcher
99 posts

A Random Pen OS: Devlog

2D4eter wrote:

To-Do List


Highest Priority
  • Credit as many people as possible
  • Use scratcchattach and scratchconnect to install wifi and internet drivers ( that would be really really cool! )
  • Build web apps ( also i'm making my second browser and my goal is to be able to play a simple scratch game eg cloud pong )


Install wifi?

Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion


“Have you ever just?” - important quote
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

Refactoring the code

I refactored the Screen: Update function by separating it into two blocks: the original update block and a second one, which is used inside the original. The second block is Screen: Update: windows, which is in charge of rendering the windows. This was mainly for organization.

Speaking of big blocks of code that I need to refactor, I need to work on that behemoth of a function—Input: mouse functions T-T time to add it to the To Do list.

Update 1.4.4: Window Status: Changing fullscreen rendering

Remember how I said in update 1.4.3 that the window status updates were finished???welp I was wrong

Instead of making it so that only one window could be fullscreened at a time, I made it so that there could be multiple (although having multiple fullscreen windows is currently impossible unless you want to go inside the code yourself).

Before, it checked if the window on the top layer was fullscreen and only rendered that one. Now it renders all the layers, in case the fullscreen window actually has smaller windows above it.

For performance, I will probably add something that stops non-fullscreen windows that are under fullscreen windows from rendering.ugh more things to add to the to do list XD

Last edited by TeenySpoon (Aug. 20, 2023 18:38:38)


⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

Pen Shapes: Bug Fix: Funny Corner Bumping Out

We've all seen that annoying bug when you resize the window vertically, with a little line near the bottom right corner.
Well, I fixed it now by adding a variable for the iterator, and when the value is greater than the unrounded value of (y1 - y2)/pen size, the script stops.

Yay!

Last edited by TeenySpoon (Aug. 20, 2023 19:22:21)


⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
eoeoeoeoeoeoeoeoe
Scratcher
99 posts

A Random Pen OS: Devlog

Lesss goooo

Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion


“Have you ever just?” - important quote
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

I was going to start working on diagonal resizing, but I discovered the mess known as “Input: Check Windows” so I guess refactoring is now high-priority T-T
After I finished working on that function I hoped I'd never have to look at it again…but here I am.

⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas

Powered by DjangoBB