Home Indie Game ▲ Startron ▲ (The procedurally generated ASCII area sandbox)

▲ Startron ▲ (The procedurally generated ASCII area sandbox)

0
▲ Startron ▲ (The procedurally generated ASCII area sandbox)

[ad_1]

Rogod


The planets are drawn with a for-loop from 0 to 360 levels at a specified radius.

Previously, I’d merely been giving that draw-a-circle technique an angle for the sunshine to fall on it and colouring +/-90 levels to that angle brilliant, whereas the remainder of the circle remained darkish. (Resulting in a circle which was all the time 50% gentle & 50% darkish.)

Now with the pseudo-sphere rendering, it is first flipped so I’m drawing shadow on a lit circle (straightforward sufficient), however it’s then attenuating between 0 and the radius then again to 0 whereas contained in the the shadow’s angles (the incoming gentle’s angle +180 levels).

This principally leads to a croissant form being drawn in the back of the circle which works as a reasonably convincing 3D shadow on an in any other case flat disk.

Representation of planets over time:

(No precise 3D calculations are going down; Startron is a complete case-study of hacks, tips and heuristic approaches Wink )


In different information, I simply acquired my new Raspberry Pi working and have realised I have to construct for ARM structure to help this. So ranging from v0.82, Startron can be being launched for Windowsx64, Linuxx86-64 and LinuxARMx64. (Woo)

« Last Edit: February 28, 2022, 07:27:07 AM by Rogod »
Logged

Rogod


 Gomez Hi – I used to be coping with a considerable flat transfer and varied social…ness for the higher a part of the 12 months, however I’m nonetheless right here Gentleman

Along the best way I investigated the potential for a sequel/successor to Startron however the verdict stands, for now, as “Maybe some day, however not immediately”, so Startron has my (comparatively) full consideration once more and I hope I can get nearer to a number of the pipe-dream stuff I nonetheless have deliberate in my 106-item-long to-do record for the mission. (Don’t fear, 539 gadgets have fortunately already been checked off that record by v0.85.)

And foolish outdated me, the problem with the enormous stars was so simple as upping the area permitted to render them in a 2D array – I’d simply miscalculated beforehand Embarrassed

Good to be again within the zone, as they are saying; I missed pushing buttons and testing what different loopy issues had been occurring within the TIG devlogs Shocked

EDIT:
Sidenote: I’ve been significantly contemplating placing Startron into Unity with a bespoke console. Not gone forward with something but as I am unable to fairly convey myself to sacrifice conventional terminal output, however you’ll be able to think about there’d undoubtedly be some big advantages to doing this. (Performance/portability/Android/and so on.) – This one’s nonetheless on the backburner for now.

« Last Edit: October 27, 2022, 09:14:56 AM by Rogod »
Logged

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here