Lummox JR

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]

Subject
Replies
Date
Location
 
I just switched from an old version of Mozilla to Firefox. I like Firefox, but something has been pissing me off. I …
Page: 1 2
21
 
Well, since I haven't used my regular blog in a while this will do, especially for my BYOND projects. As this is my …
1
 
I'm looking for an editor--freeware mind you--that would let me edit HTML documents at the code level but on a more …
Page: 1 2
23
A configurable name generator based on Werd
0
A regular expression library for DM
0
Create friendly HTML file selection popups
0
 
I've been looking at the pathfinding algorithm I developed for Scream of the Stickster II, and it still doesn't sit …
5
 
Okay, I need to know why this isn't working; all OpenGL gurus are welcome to assist. After the window has been created …
4
 
I figured I'd post this here, as the Incursion forums are too inactive to get much of a read on this. I'm trying to …
3
 
(update) (notes) Version 341.875 is now available for public download. This is a beta release that will become the new …
0
Easy locking mechanism for doors, containers, and rooms
0
3
 
In addition to the following announcement, the BYOND Staff wish to relay this message: Effective in one week, to …
0
 
(update) (full install) (notes) BYOND 338 is ready to go, with a lot of bug fixes and some new features. Be sure to …
0
 
For a long time now I've been wanting to see what the soft code for movement procs would look like. Now I've had the …
15
 
I found a great link to a good site listing places where you can come by fonts, and whether they're free or not: …
4
 
Someone (I think Yota) expressed an interest last night in seeing the code for the Roll command in Incursion. I'm …
0
1
 
I've run into a design issue in Incursion that needs input. Alliances have turned out to be a minor part of the game so …
2
Create custom-colored icons and cache them to reuse as needed.
0
 
I finally realized the solution to my resource problem: BYOND needs a directive to keep track of which files to …
5
 
I'm having trouble thinking up a good dice-based battle system for an RPG CCG I've worked on fitfully. I want to get …
9
An advanced text-on-map library
0
 
Here's a little postcard from the DmiFonts demo running tonight.
Page: 1 2
33
 
In the next version I'd really like access to a raw random number, from 0 up to (but not including) 1. Just using …
6
 
For the people who don't get it yet, I'm going to spell out what not to post on the BYOND forums. Don't post "So-and-so …
0
 
An idea struck me, and now I'm wondering: What sorts of directional things do people do in their code? What procs do …
17
Utility: Create a set of autojoiner icons from source icons you supply.
2
 
I'd like to request a simple key shortcut in DM: Ctrl+F6 to switch between windows. I use this a lot in other editors, …
1
 
Through a blog I recently discovered, I came across this little gem: http://www.theregister.co.uk/ content/6/28588.html …
0
Source code for Scream of the Stickster (BYONDscape 4K Challenge 2002)
0
 
I'm toying with the idea of starting a BYOND CCG with a Roguelike theme, and starting to realize I really don't have an …
8
 
I've had this idea in my head for a while now, and it needs feedback. It occurred to me a while ago that BYOND has few …
2
 
It's time we all had a serious talk about pager abuse. Or rather, it's time some of us gave a serious talk about pager …
Page: 1 2
25
 
I think I've finally nailed almost the last of the engine bugs in my slowgoing project, and once again it was a little …
0
 
I've been working for a little while now on a library I plan to submit to digitalBYOND, along with an article …
6
Load, save, and reuse temporary maps for unlimited worlds
5
 
I'm working somewhat on PlunderMine 4K now, with the aim of getting it in on time but I won't be heartbroken if I …
10
 
It occurs to me that there's really no simple built-in way to keep client.eye from overstepping the edge of the map …
10
 
Just thought I'd share this with everyone. This is a copy of the scripts I'm using on my page for Scream of the …
Page: 1 2
27
 
I'm not sure where else to post this, so I guess this'll have to do. Besides, I think this definitely falls into a …
3
0
 
I thought it'd be interesting to share my experiences and discoveries so far from the 4K Challenge, and see how others …
13
 
I'm likely going to try to put together more than one submission for the BYONDscape 4K Challenge 2002, so I hit on the …
2
 
A small batch of requests: list.Insert() and list.Swap() atom.mimic: References a turf; an area or turf with this set …
0
 
I don't want to cut out diagonals entirely, but I do want all mobs to be unable to move on diagonals when an obstacle …
Page: 1 2
21
 
Just to give everyone a heads-up on what happened to that brief singalong thread (and a couple that came after it): …
0
 
Ain't-It-Cool News reports that SciFi has decided not to air Farscape season 5, meaning that after the end of season 4 …
11
 
Just to give an update on the collision math progress without expanding the already huge scary math thread (since this …
1
 
I finally tried out Mozilla this weekend, and I'm really liking it--mostly. There seems to be a dearth of themes and …
2
Page: 1 2 3 ... 7 8 9 10 11