Can I smooth scale my entire game?

99 views
Skip to first unread message

JohnD

unread,
May 7, 2015, 9:14:17 PM5/7/15
to haxef...@googlegroups.com


Hi all,

Trying out HaxeFlixel for a small project and I really like it. I have a question though.

My game renders at a small resolution 320x240. and the final window is doubled to 640x480. I am targeting flash for now.

But the result is very sharp, like it's a nearest neighbor scale,

Is there a way to have flixel scale my rendering area with bilinear filtering to match the target window?

Thanks!

Extreme Alex

unread,
May 8, 2015, 3:14:37 AM5/8/15
to haxef...@googlegroups.com
Hi,

Try

FlxG.camera.antialiasing = true;

inside of each FlxState constructor (i.e. create() or new () function)

пятница, 8 мая 2015 г., 4:14:17 UTC+3 пользователь JohnD написал:

JohnD

unread,
May 8, 2015, 7:16:17 AM5/8/15
to haxef...@googlegroups.com


Yes, that's what I was looking for! Thanks.

Ashiq A.

unread,
May 8, 2015, 7:32:44 AM5/8/15
to haxef...@googlegroups.com
Wouldn't your game look better if you developed it with a bigger
resolution and downscaled to smaller screens?

On Fri, May 8, 2015 at 7:16 AM, JohnD <dropdat...@gmail.com> wrote:
>
>
> Yes, that's what I was looking for! Thanks.
>
>
> --
> HaxeFlixel Development Community
> See our github https://github.com/haxeflixel/ and our documentation
> http://haxeflixel.com/documentation/
> ---
> You received this message because you are subscribed to the Google Groups
> "HaxeFlixel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to haxeflixel+...@googlegroups.com.
> Visit this group at http://groups.google.com/group/haxeflixel.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/haxeflixel/33305f4a-d816-44cd-a8c3-c9f86dddf8c2%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

JohnD

unread,
May 8, 2015, 2:29:57 PM5/8/15
to haxef...@googlegroups.com

I am making a remake of an old Amstrad CPC game borrowing the original assets to keep the retro look.
So a basic smoothing works best I think.

Reply all
Reply to author
Forward
0 new messages