Blade Edge

Computer software | Video production | My life in general

Blade Edge main header

Done for the day!

November 17th, 2005 · 12 Comments · Software

Transposed from Gaiiden’s Scroll

Sweet, a solid 5 hours of work and I’ve completed all the tasks I listed in my previous entry. The three bugs and the first three tasks took me only an hour to get through. I was right about the first bug – the code I was using to determine if the mouse had been clicked on the map was buggy. I was doing

%tile = $gameMap.map.getTileLayer($TILE_SYSTEMS_LAYER).pickTile(%worldPosition);
if(%tile)
	$gameMap.addPlanet(%tile, %type);

Therefore if %tile were to equal “0 0” or “0 1”, which is the first column of the map, the statement would evaluate to false. Henceforth

%tile = $gameMap.map.getTileLayer($TILE_SYSTEMS_LAYER).pickTile(%worldPosition);
if(%tile !$= "")
	$gameMap.addPlanet(%tile, %type);

This is the way it should be done to properly evaluate a bad return to %tile.

The second bug was also a stupid n00b mistake. When I went to store the ring count I did

setWord(%tileInfo, $TILE_INFO_RING_COUNT, %ringCount);

BZZZZZZTTTT!!! Wrong-o. I assumed that setWord would take %tileInfo and modify it within the function. Stupid me never realized that – hey, this is a local variable I’m passing in. How the hell is it supposed to be modified? It wasn’t until I looked it up in the docs and saw it used in an example that I slapped my head and groaned. Here’s the way it should be done

%tileInfo = setWord(%tileInfo, $TILE_INFO_RING_COUNT, %ringCount);

Simple fix, stupid bug. But such is the case with most bugs…

The third bug took a bit longer to track down than the other two but it was a simple fix as well. I was just passing the wrong variable to a function. That’s what you get when you name variables %type and %tileType and keep forgetting which is which.

After running through the first two tasks (as I thought, task #3 was solved with the bug fixes) working out how I was going to do the territory shading and implementing it took up the majority of my time today. I had already set up the map with a layer beneath the systems for setting shaded tiles, so it was just a matter of adding the tiles and the interface with which to do it. I managed to keep it all in a single function, GameMap::setTileTerritory. The sole purpose of this function is to add a shade of the proper color beneath a planet or special system. Here are the results:


Placing a planet on the map creates a territory shade beneath the planet as well as the 4 adjacent squares. This is what happens in -game, which is why the extra territories don’t have any systems automatically created for them


Here we’ve selected the empty system brush and filled in the territory. If we hadn’t done this, upon loading the map in the game those territories would have existed, but since no empty systems were created, they wouldn’t have been shown


Holding the Ctrl key you can left-click to add more territories of a selected planet color, or right-click to remove territories of any color. You can’t, however, remove a territory if a planet still occupies that system. The empty systems were also added manually, Ctrl-left-click only adds the shade, you’ll see why later


Pretty! Here’s a map with all 5 planets placed and their territories defined. Since there are only 4 players per game, any fifth planet is treated as a neutral player. Also, not all the tiles in the map need to be assigned a territory as they are here


Finally, here’s some special systems thrown on for some spice. Notice how the territory shade remains? Yes, players can control special systems in their territory, which is why Ctrl-click only adds and removes the shade.

Well, that does it for me today. My ToDo list for tomorrow:

  1. Implement the Clear Map and Fill Map buttons
  2. Implement brush shapes
  3. Modify bottom editor panel – shrink it width-wise to remove all that empty space between Map Sizes and Map Name from some removed features
  4. Remove the New Map button. New maps are now created by selecting a new map size
  5. Implement map saves
  6. Implement map loads
  7. Implement help text

If I can get that all done tomorrow I will have finished the map editor!!

Until tomorrow…

Tags: ··

12 Comments so far ↓

  • NetBet Casino Login

    Gäste können aus einer Vielfalt zeitgenössischer Gerichte
    wählen, die aus frischen Zutaten zubereitet werden, darunter auch täglich wechselnde Spezialitäten des Chefs.
    Im und um das Casino Amsterdam Centrum herum bietet das hauseigene Restaurant
    ,,The Global Kitchen‘‘ ein erstklassiges kulinarisches Erlebnis.
    Während des verlängerten Osterwochenendes werden zusätzlich Unterhaltung, Snacks
    und die Chance, €1.000 in bar zu gewinnen, geboten. Besonders bei speziellen Events sollte auf einen angemessenen Dresscode im
    Casino Amsterdam Centrum geachtet werden! Diese Turniere
    finden an verschiedenen Tagen statt, mit Buy-Ins, die von erschwinglichen €50 bis zu High-Stakes-Optionen von €2.000 reichen, zuzüglich Entry Fees.
    Für die Teilnahme an diesen Events ist eine Online-Reservierung erforderlich.

    Da diese Informationen sich vor allen an deutschsprachige Spieler richten, empfehlen wir als Alternative auch das große Slots Angebot in den besten deutschen Online Casinos.
    Die niederländischen Casinos bieten zudem oft spezielle Events und Turniere an, die das Spielerlebnis
    abwechslungsreicher gestalten und eine besondere Atmosphäre schaffen. Eine lokale Spezialität ist das Spiel “Punto Banco”, eine Variante des Baccarat.
    Niederländische Spieler schätzen besonders das
    amerikanische Roulette und verschiedene Poker-Varianten, darunter Texas Hold’em.
    Besonders beliebt sind die Casinos in Städten wie Amsterdam, Rotterdam und Utrecht,
    die eine breite Auswahl an Spielen anbieten.

    References:
    https://online-spielhallen.de/izzi-casino-freispiele-alles-was-sie-wissen-mussen/

  • cashwin bonus code

    So findest du zum Beispiel mit Book of Ra von Novomatic
    einen der bekanntesten Automaten überhaupt. Das Spieleangebot bei Löwen Play besteht aufgrund der Regelungen rund um die deutsche Glücksspiellizenz
    ausschließlich aus Slots. LöwenPlay weist darauf hin, dass es wiederkehrende Aktionen gibt, bei denen nicht nur Einzahlungsboni, sondern auch Freispiele
    auf dich warten. Leider konnten wir nur eine Aktion ausmachen,
    bei der du die Chance auf weitere Freispiele hast.
    Willst du alle 150 Freispiele kassieren, musst du mindestens 100 € einzahlen. Wie viele Freispiele du in der Echtgeld-Spielothek tatsächlich erhältst, hängt vom Einzahlungsbetrag
    ab.
    Das Unternehmen Löwen Play digital GmbH ist ein staatlich zugelassener Anbieter
    für virtuelle Automatenspiele. Greentube,
    Play’n GO, Pragmatic Play und Hölle Games gibt es ebenso zu entdecken wie Slots der hauseigenen Marke Lionline.
    Ich habe insgesamt noch Zahlungsmethoden wie Skrill, Neteller oder Apple Pay vermisst, aber alles in allem bietet
    Löwen Play gute Zahlungsbedingungen. Maximal sind
    gemäß der deutschen Regulierung aktuell 1.000€ im Monat einzahlbar.
    Löwen Play gehört zu den Klarna Spielotheken und bietet euch
    zahlreiche weitere Zahlungsmöglichkeiten an.

    References:
    https://online-spielhallen.de/lapalingo-casino-auszahlung-alles-was-sie-wissen-mussen/

  • Australia online gaming

    Popular methods at Australian online casinos include credit/debit cards, e-wallets like PayPal and Skrill, cryptocurrencies, and bank transfers.
    These bonuses are appealing as players can retain their winnings from a no deposit bonus, though a deposit might be required before cashing out.

    No deposit-free spins allow players to try games without making a deposit,
    while regular free spins usually come in welcome packages.

    Playing at low bets is the way to go if you are a newbie to online
    gambling. Alternatively, you can make transactions in cryptocurrencies, which some of the best Aussie casinos accept.
    Therefore, go only for trustworthy casino sites like the ones we have picked for you.
    No matter how lucky you are, if you sign up with a rogue casino, you can have a
    disappointing experience.

    References:
    https://blackcoin.co/minimum-deposit-casino-sites-with-payid/

  • Australian online gaming

    Kinbet offers tools like daily, weekly, or monthly deposit limits, as well as self-exclusion via customer support.
    Gambloria is a 2025 online casino and sportsbook packed with thousands of pokies, a wide range
    of live dealer tables, and a fully integrated sports betting section covering
    local and international events. The casino focuses on pokies first, backed by a 3,000+ game catalogue, a multi-stage
    welcome package, and a gamified VIP system that rewards regular play.

    Spinight Casino does not currently provide a no-deposit bonus, but it
    does have a sizeable welcome package. On paper, it looks like a strong option for Aussie players who
    want flexibility, especially with crypto payments and mobile play.

    These tournaments add an extra layer of competition to the usual gaming experience,
    providing thrilling opportunities to climb leaderboards and win bonuses,
    free spins, and cash prizes. Potion Spells stands out with its magical theme, offering unique
    gameplay mechanics and a variety of bonus rounds that keep players engaged​.

    Recently added games such as Potion Spells, Aztec Magic Bonanza, and The
    Dog House Multihold are creating a buzz among players. When it
    comes to recommended games at Clubhouse Casino, the platform offers a
    robust collection that caters to every type of player, making it a favorite
    in the Australian online gaming scene.

  • best online casino australia

    Each game supplier out there has its own idea of
    what online pokies should look like. In the table below you
    find some of the most popular casino game providers in Australia
    and also see how many casinos are connected with them.

    Find the best Australian crypto casinos and deposit with Bitcoin, Ethereum,
    Litecoin USDT, Doge Coin and more.
    For example, let’s say you lose $100 playing pokies and you qualify for a 10% cashback bonus.
    For example, you could get a free chip to use on your favourite
    games without spending any money as soon as you create a new account.

    The games we played and the platforms we’ve tested are safe and legit,
    so let’s dive into the action. Most sites will highlight that
    they accept Australian dollars on the homepage
    and you should confirm that they do before depositing any money.
    However, there are laws that regulate online gambling sites from being physically
    based in Australia. In short, the best online casino experience for Aussies can be found here.

    Initiated in 2019, Aussie Play tailors its offerings to adept Australian casino enthusiasts.
    This platform isn’t just a chip off the old block; it’s a full house where
    the quintessential Aussie punter can find both a fair dinkum
    game and a fair go. These international providers, known for their global presence and innovative titles, include the likes of
    Microgaming and NetEnt, delivering a gaming experience that’s hard
    to beat. This kingdom of chance is powered by top-drawer game smiths like Betsoft and Yggdrasil,
    ensuring a regal gaming experience. It serves up
    a variety of roulette games, capturing the essence of what many Aussie punters
    seek—a game of chance that’s as unpredictable as the Outback weather.

    References:
    https://blackcoin.co/bay-casino-your-ultimate-guide-to-online-gaming/

  • Australian Online Casino Login

    You can then start gambling with ETH without identity checks.

    Lucky Block is a great anonymous Ethereum casino, where you can sign up in seconds using an email,
    Telegram/Google account, or Wallet Connect. The
    game portfolio is also massive, with 10,000+ titles from 70+ providers.
    You can join this VPN-friendly casino with just an email,
    social media account, or MetaMask wallet. BTC
    gambling has become incredibly popular, and it’s easy to see why.

    Lucrative welcome offers followed by an unrivaled 10-tier VIP
    loyalty program perpetuate value over the long haul.
    Fast crypto withdrawals, responsive customer service, and
    multi-platform compatibility cement it as a secure and reputable option. As additions around live dealers and payment channels continue, this aesthetic-rich
    gaming portal shows future promise. Lucrative sign-up bonuses continue through
    ongoing reload matches, free spin awards and
    cashback deals. Regular promotional offers like
    free spins, cashback deals, and prizes give you plenty of reasons
    to stay active in the long run.

    References:
    https://blackcoin.co/winspirit-casino-login-australia-quick-access-to-premium-gaming/

  • vhembedirect.co.za

    online betting with paypal winnersbet

    References:
    vhembedirect.co.za

  • pridestaffing.us

    casino mit paypal einzahlung

    References:
    pridestaffing.us

  • quickfixinterim.fr

    online pokies paypal

    References:
    quickfixinterim.fr

Leave a Comment