| |||
Views: 88,494,930 |
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search | 04-28-24 02:53 AM |
|
Guest: Register | Login |
Main - Posts by Kawa |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1806/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
Let's just say that Nintendo are really gonna burn themselves. Probably not fatally as there -is- a market for the DSi, but still... ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1807/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
That's just evil. ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1808/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
How'sabout instead of we give actual arguments and you just scoff, you give arguments in return? ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1809/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
Why did I read that as "inorite"? ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1816/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
Yo Bukkie, gimme a HAND. ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1819/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
So. I ate too much snack nuts just now and my stomach feels kinda funky. Am I gonna die? ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1820/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
Posted by AilureRight! * Kawa farts ...smells nutty. ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1822/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1827/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
If I had a dollar for every time I'd had a good reason to say "I'm a romhacker, not a Wikipedia" I'd have... a whole lotta worthless money. ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1828/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
Well, that'd be a bit of a problem then, cat. Wouldn't it? ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1829/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
The LINE must be drawn HERE! No further! ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1830/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
FIRE is good, but don't be a pyro. ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1832/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
Or, for Opera users, right click the page itself, Block Content, click a dodongo, Done. ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1834/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
God, I loved that game. ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||||||||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1837/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
Part 1First of all, we'll need a form with a tile selection area and a map editing area. Both should be able to scroll freely. The easiest way to do this is by having two AutoScroll-enabled Panels containing two AutoSizing PictureBoxes. Place the two Panels on a new Form, enable AutoScroll for both and position them nicely. Then, add a PictureBox in each, in the top-left corner and set to AutoSize. The tileset panel should be as wide as the tileset (128px in this example) plus some margin for the scroll bar but frankly, we can afford to play it loose for now. Interjection: I showed the draft for this tutorial to Cearn and he insists on using constants for tile sizes. I've decided to compromise -- this tutorial will use size constants, but I'm not updating the final source code archive. So whenever I say "128 pixels wide", that should be read as "eight times the tile size", id est "8 * 16". Now that the UI is in place, we can go over the code. Now, I like to use backbuffers, so we'll go with that. Define two Bitmap and two Graphics objects.
Next up is loading and displaying the tileset. We'll go with a slightly cut Advance Wars tileset, but anything goes, really. In this example, as announced before, the tileset should be 128px wide, most any height. This maps to eight tiles a row. There's some math involved here that we'll get to later. Also note that you can't pull a Graphics object from indexed Bitmaps, so don't just try that.
Now, to select a tile from the tileset, we must remember which tile index was selected. Add a CurrentTile variable to do this, and add the following event handler:
I hear you ask, "Kawa, when the hell are we getting to the mapping part?". Well, how 'bout right now? First of all, we'll need something to store the current map in. For readability's sake, we'll go with a 2D int array.
Next, we'll need something to draw the full map. This only has to happen under few circumstances, such as on load. For any subsequent change, drawing single tiles will suffice. We'll tackle both these tasks in one go.
You should have a black map now, since the Map array defaults to all zero, which is a black tile. So let's get to the fun part!
Hook this up to both the MouseMove and MouseDown events for mapPictureBox. Why both? Because if you only hook it to MouseMove, you have to jiggle the cursor every time you start drawing and if you only hook it to MouseDown, you can't do strokes. That's it. You now have a simple map editing system going. Next time, we'll tackle loading and saving, probably followed by loading the assets from ROM. Download the finished app for this part ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1838/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
^^vv <><> AB Start! ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1839/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
I remember whipping up a tool to automate said process! ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1840/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
No, no he shouldn't. ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1841/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
Custom... template? You mean post layout? ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Kawa |
| ||
CHIKKN NI A BAAZZKIT!!! 80's Cheerilee is best pony Level: 138 Posts: 1842/5344 EXP: 30948976 Next: 714005 Since: 02-20-07 From: The Netherlands Last post: 4500 days Last view: 2635 days |
You can always ask another user if you can use his, and edit some values. ____________________ Wife make lunch - Shampoo Opera - give it a spin Spare some of your free time? <GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered Kawa rocks — byuu |
Main - Posts by Kawa |
© 2005-2023 Acmlm, blackhole89, Xkeeper et al. |
MySQL - queries: 36, rows: 68/68, time: 0.244 seconds. |