Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
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

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189

Kawa
Posted on 05-09-09 04:44 PM, in anyone have a dsi? Link | Quote | ID: 106733


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
Posted on 05-09-09 04:47 PM, in anyone have a dsi? Link | Quote | ID: 106735


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
Posted on 05-09-09 06:08 PM, in anyone have a dsi? Link | Quote | ID: 106741


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
Posted on 05-09-09 08:29 PM, in MyBrute Link | Quote | ID: 106746


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
Posted on 05-17-09 09:46 PM, in 1-letter Swap Link | Quote | ID: 107041


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
Posted on 05-17-09 09:56 PM, in board2 Town Square: Typos leave me bothered Link | Quote | ID: 107050


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
Posted on 05-17-09 10:01 PM, in board2 Town Square: Typos leave me bothered Link | Quote | ID: 107053


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 Ailure
But you should survive just fine as long you ventilate enough.
Right!

* 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
Posted on 05-18-09 06:24 PM, in The NEW General Project Screenshot / Video Thread EX Omega Supreme++ Link | Quote | ID: 107142


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
click for bigger

____________________
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
Posted on 05-18-09 08:34 PM, in board2 Town Square: Typos leave me bothered Link | Quote | ID: 107165


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
Posted on 05-18-09 08:40 PM, in KCS May '09 Link | Quote | ID: 107170


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
Posted on 05-18-09 08:41 PM, in 1-letter Swap Link | Quote | ID: 107171


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
Posted on 05-18-09 08:47 PM, in 1-letter Swap Link | Quote | ID: 107174


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
Posted on 05-19-09 06:08 PM, in I can't wait to bomb some dodongos! Link | Quote | ID: 107251


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
Posted on 05-19-09 06:16 PM, in Jetpack (DOS) Link | Quote | ID: 107253


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
Posted on 05-19-09 07:09 PM, in Kawa's Map Editor Creation Tutorial Link | Quote | ID: 107261


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 1


First 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.


public partial class Tutorial : Form
{
-> private const int TileSize = 16;
-> Bitmap TilesetBackbuffer, MapBackbuffer;
-> Graphics TilesetGraphics, MapGraphics;


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.


public Tutorial()
{
InitializeComponent();
-> TilesetBackbuffer = new Bitmap("tileset.png");
-> TilesetGraphics = Graphics.FromImage(TilesetBackbuffer);
-> tilesetPictureBox.Image = TilesetBackbuffer;
}


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:


Graphics TilesetGraphics, MapGraphics;
-> int CurrentTile;


private void tilesetPictureBox_MouseClick(object sender, MouseEventArgs e)
{
// Note: eight tiles per row in the tileset.
CurrentTile = ((e.Y / TileSize) * 8) + (e.X / TileSize);
this.Text = "CurrentTile: " + CurrentTile.ToString();
}


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.


int CurrentTile;
-> int[,] Map;
-> int MapWidth, MapHeight;

tilesetPictureBox.Image = TilesetBackbuffer;
-> MapWidth = 10;
-> MapHeight = 10;
-> Map = new int[MapWidth, MapHeight];
-> MapBackbuffer = new Bitmap(MapWidth * TileSize, MapHeight * TileSize);
-> MapGraphics = Graphics.FromImage(MapBackbuffer);
-> mapPictureBox.Image = MapBackbuffer;


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.


private void DrawTile(int x, int y, int tileNo)
{
Rectangle sourceRect = new Rectangle((tileNo % 8) * TileSize, (tileNo / 8) * TileSize, TileSize, TileSize);
Rectangle destRect = new Rectangle(x * TileSize, y * TileSize, TileSize, TileSize);
MapGraphics.DrawImage(TilesetBackbuffer, destRect, sourceRect, GraphicsUnit.Pixel);
}

private void DrawFullMap()
{
for (int x = 0; x < MapWidth; x++)
for (int y = 0; y < MapHeight; y++)
DrawTile(x, y, Map[x, y]);
}


mapPictureBox.Image = MapBackbuffer;
-> DrawFullMap();


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!


private void mapPictureBox_MouseMove(object sender, MouseEventArgs e)
{
int x = e.X / TileSize;
int y = e.Y / TileSize;

if (x < 0 || x >= MapWidth || y < 0 || y >= MapHeight)
return;

if (e.Button == MouseButtons.Left)
{
Map[x, y] = CurrentTile;
DrawTile(x, y, CurrentTile);
mapPictureBox.Refresh();
}
}


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
Posted on 05-19-09 07:29 PM, in Cute image thread #546257 Link | Quote | ID: 107262


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
Posted on 05-20-09 06:10 PM, in Jetpack (DOS) Link | Quote | ID: 107317


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
Posted on 05-20-09 06:20 PM, in Contra One-Level Demo Link | Quote | ID: 107318


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
Posted on 05-20-09 09:36 PM, in board2 Town Square: Typos leave me bothered Link | Quote | ID: 107325


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
Posted on 05-20-09 09:45 PM, in board2 Town Square: Typos leave me bothered Link | Quote | ID: 107327


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
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189


Main - Posts by Kawa

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.254 seconds. (348KB of memory used)
MySQL - queries: 36, rows: 68/68, time: 0.244 seconds.