StarOde : NES style, pixel art, grind heavy RPG (indev 7%)

Had to do some other things some of today unfortunately, but getting started now.

As far as any coding things go, disclaimer: I am not an expert at all though I do know a lot of general things, but I want to learn as much as I can and improve, which is part of why I’m doing this as solo as I can to improve on my weaknesses and to learn Defold well enough to use it for any kind of project we want. Most of my expertise is in other fields though I wouldn’t say I’m a specialized master at anything.

I used some of the modifications mentioned here

And modified the render script a bit further to add a basic kind of autofit.

See in action here.

Later I would like the ability to draw background tiles all of the way to the screen’s edges no matte the size, and to float/scale UI. That will have to come later though.

I’ve attached the modified render_script (renamed lua to upload) but it still needs optimizations and improvements. Regarding the autofit, do the sizings and positionings look right? It looks right to me, but again I’m not an expert.

pixel.lua (2.8 KB)

By the way, just to get this out of the way, any code I post is same license as Defold.

Edit: I’m noticing the display of the game looks much better when not in fullscreen. What’s up with that?

Here it is maximized on my screen

Direct link to raw image

And a screenshot taken by fraps while in fullscreen

The full screen screenshot has a resolution of 640x480 and looks to be stretched / fuzzy on my monitor when displayed. How to force fullscreen mode to be full resolution of monitor?

Is it possible yet to control going in and out of fullscreen mode with scripting?

Screen size too. What I’d like to do is let users choose window mode in options screen and then give them control over 1x 2x 3x 4x scaling with default being 2x for window mode, and then full screen mode just size to fit their screen.

Tried to do HTML build with basic setup (only changing render script) works in Firefox but crashes in chrome

A basic project with no editing of render script works. Tested magic_link tutorial and also crashes in Chrome for me. Not sure what is messing it up.

  • Chrome Crash Fixed - Caused by long running Chrome browser. Fixed by closing Chrome completely.

It’s possible to cause Defold Editor to crash by clicking “Build HTML and Launch” multiple times while it’s still launching a build.

I eventually want to make it so that the HTML build game screen takes up 100% of the browser window it is in. With or without fullscreen active.

1 Like