|Topic was automatically imported from the old Question2Answer platform.
I’m creating a clone of Space Invader to experiment with Godot.
I’m trying to display a 16x16 sprite inside a window of 600x600 pixel.
I want the sprite to scale and become bigger and I’ve done this using this Scenetree Keep-Effect hosted at ImgBB — ImgBB
I’ve nested a viewport(inside a Control/ViewportContainer) in the root viewport.
The ViewportContainer has the same size of the window (600x600) with stretch “On” and the viewport has 200X200.
The Window has Mode 2D, aspect keep and size 600x600
The player node has a GDscript that clamp it’s position to the nested viewport size.
The effect is ok but probably there is a better way to do this using only a window than using my previous solution. Any suggestion?
Thank in advance.