Lummox JR

Online

Joined: Sep 1 2001

Home page

BYOND developer, author, and future beloved supervillain

Shoutbox

LILMESSI18
Jun 12, 3:50 pm
150th fan heu heu
Lummox JR
Jan 7, 1:14 pm
Incursion takes a pretty simplistic approach to the borders.

Each tile is broken into 16x16-pixel subtiles (Incursion was designed prior to the new icon size stuff), and each potential grid intersection (offset from the subtile proper by 8 pixels diagonally) has bitflags indicating which parts belong to which territories. Essentially, a T-junction intersection can be three icons: One for the territory on one side, and one each for the ones in each corner.

Bit 0: Territory in NE
Bit 1: Territory in SE
Bit 2: Territory in SW
Bit 3: Territory in NW
Bits 4-5: Style (0-2)

Basically if any of the bits 0-3 are empty, the territory in that section belongs to whatever nearest bit was set counterclockwise. E.g., 5 means NE and SE are the same (bit 0 on, bit 1 off) and SW and NW are the same (bit 2 on, bit 2 off), so it's a vertical divider. The style number allows for one of three different graphic styles to be chosen at random. A non-intersection, belonging to all one territory, is always 0.

The icon format is [N].[B] or [N].b[B]. The number N is described above, but B is a number from 0-3 representing one of the bits, starting clockwise from NW rather than NE because apparently I did not think the system through well the first time. This says which of the territories this icon state belongs to; E.g., 5.0 means we're dealing with the territory that belongs to the northwest corner of a vertical divide. The lowercase b means this icon is a border icon, and has special highlighting.

There are some things I don't like about this format: It is still too blocky, and the icons only come in three limited flavors each. A more organic approach is possible now.

When Incursion starts up, it takes the icon file and does dome operations on it to create missing states (e.g., it does some rotations), then it does shifts so it has icons that are easier to work with in the 32x32 realm without using pixel offsets--because it was first written before pixel offsets. Territory icons are built as combinations of icon operations so that each should contain the exact states needed to show the territory, and Insert() is used so it can all be kept in a nice tight package.
Gooseheaded
Dec 30 2012, 3:14 am
Hey there!

I'm trying to make a game similar to Incursion, and I've noticed that the 'borders' between 'territories' look amazing and randomized and straight up beautiful.

I don't see how to change from a standard 'autojoin' look to something similar to what is seen on Incursion.

If you could, maybe, write an article about it, or just give me a general idea of how it was accomplished somehow, I'd be thankful.

Keep up the good work on BYOND!
OrangeWeapons
Nov 16 2011, 4:02 pm
A request: Please judge the cartridge classic entries by the end of 2011. =)
OrangeWeapons
Oct 30 2011, 1:20 pm
When are Cartridge Classic entries being judged?

[See all] [Login to shout]

Medals Lummox JR has earned

[Only favorite games] [Medals left to earn]

Box Zombies


Player

Play the Game

Earned on Mar 26 2012, 2:15 pm


Them Benjamins

Collect 100 Gold

Earned on Mar 26 2012, 2:17 pm


Ding

Gain a Level

Earned on Mar 26 2012, 2:17 pm

NEStalgia


Monster Basher

Reach Level 10 with any character

Earned on Jun 8 2011, 1:33 pm

  

Guardians


Guardian

Login to the Game

Earned on Apr 6 2011, 5:00 pm

  

RPG Sweeper


Master Sweeper

Defeat all enemies.

Earned on Sep 22 2010, 7:44 am


Winner

Get to the castle and win the game.

Earned on Sep 22 2010, 7:45 am

 

Space Station 13 Medals


Fish

Fresh!

Earned on Dec 2 2009, 5:01 pm

  

Scream of the Stickster Volume II: The Crayon Massacre


Indelible Champion

Win an individual game or be MVP of a winning team, surviving for the entire match

Earned on Sep 7 2009, 11:28 am


None Shall Pass

Kill an enemy by shooting up or down a ladder

Earned on Sep 7 2009, 11:36 am


#2 Special

Kill every enemy player (4 or more) at least once in a Free-For-All or Ink Feud match

Earned on Sep 7 2009, 12:08 pm

Stick War


Been There, Done That

Login to the Game

Earned on Jul 23 2009, 7:03 am