Link Bar

Home | Games | Programming | Tutorials | Donate | Legal (These are mostly empty right now. Placeholders!)

warning code

This website contains adult content.
Showing posts with label Games. Show all posts
Showing posts with label Games. Show all posts

Thursday, March 15, 2012

Day 24: "Hula" Beta Update

New and Improved Hula beta here.  Source code below the jump.

Notes:
  • Fixed levels, thanks to Zach's excellent suggestion.  Now working as intended.
  • Added NPC "The Janitor."  Still no NPCs in the world, though.
  • Finished the introduction blurb, smoothed the transition into the game proper.
  • Refined the "consult device" mechanic; still not quite sure how I want this to work, but it's backburner material for now.
  • Put fish in the world for the player to mine, one per location (except inside the CoW or the Inner Hoop).
  • Added a "hunger" stat:  each action adds 1 hunger, player receives suggestions to eat at 90+ hunger, loses health at 101+ hunger (eating a fish restores all health and removes all hunger).
  • Sneaking through the CoW's armory now provides ten bullets to the player.  I'll make it a one-time thing later, but I'll need infinity bullets for future playtesting.
  • There is now an empty pistol at the starting screen.
  • Note to self:  not quite sure if cover is working like I want it to (even in the rudimentary build I've got at the moment).  Probably not.  Display auxiliary counters to check.
Zach's been encouraging me to look into object-oriented programming, and I've been putting it off because I have so many good ideas for my simple conditionals and so I wanted to just run with them while the creative juices were flowing.  But I am now thoroughly convinced that OOP will make NPCs way the Hell easier to handle, as I've been thinking about just exactly how to handle them without it, and it seems like a terrible exploding brute force problem.  So I'm going to read up on that over the weekend, and we'll see what I've got by Monday.

OK, that's all for now.  Tomorrow:  back to project 2 in TECS.  Ciao!

Tuesday, March 13, 2012

Day 22: "Hula" Open-Source Beta!

I got the "help" button working.  Turns out, back when I had thrown a "}" in at the end (because one was missing), I should have put it before the Help subroutine, because that's where it was missing from.  But I put it in after the Help subroutine, which subordinated it to the Inventory subroutine.  Dammit.

I don't want to admit how long it took me to figure that out.

I also think I've figured out what's causing playerLevel to start out at minus two billion, even though I know by math that it's supposed to start out at zero.  See, the exact player level on a new game is -2,147,483,648.  Recognize that number?  Yup, it's -231, the lowest number that can be displayed in 32-bit number-crunching.  I wanted "XP to next level" to always be twice what it was the last level - which is given by the function:
[LEVEL] = log2(([XP] + 1) / 2) +1
At zero XP, then, you're level zero, because log2 of 1/2 is -1 (and then add one to make it zero).  Take one action, and BAM, you're level one.  Two more actions and you're level two, and so on and so forth.  For some reason, though - probably because of how the logarithm function works under the hood - it's making it (for all intents and purposes) negative infinity.  This could be caused by the fact that I'm calculating the binary logarithm as "log2n = log10n / log102," which is mathematically correct but might be causing the 'puter to throw a fit.  Hmm.

Anyway, that's a headache for another day.  Here's the Hula beta, source code below the jump.  Also, I learned how to make the binary logarithm function here on Stack Overflow, since Microsoft decided to excise it from cmath.  Because who would ever want to take a binary logarithm of something?  Huge dorks and lesser dweebs1, that's who.

Notes:
1.  I swear by the stars that I got this from Strong Bad, but I can't find it right now.

Monday, March 12, 2012

Day 21: "Hula" in development!

...and already in tiny Development Hell!

Alert Readers and long-time fans will recall that, like, three weeks ago, I came up with a cockamamie scheme to make a simple game with the little bit of knowledge that I had at the time.  Of course, like all my ideas, it worked perfectly in my head and then immediately went to Hell as soon as I started trying to make it happen.  Well, now that Noob Game is launched and complete, I figured I could just make a Big Boy Hula (to Noob Game's Playskool) and thereby force myself to make legit versions of all the things I conveniently worked around in Noob Game.  For example, rather than having exactly one NPC per area and governing all aspects of NPC interaction based on player location, I will need to figure out a way to make "real" NPCs which can be present in arbitrary quantities.

I'm some 300-odd lines of code in, after drawing up a little design document over the weekend and coding like one of those typewriter monkeys you hear about in misunderstandings of probability and the infinite.  I've got a game world, experience mostly works (but you start at level minus two billion, which should be zero, and then proceed to level one as intended), and all the buttons work except the "help" button which tells you what the buttons are.  But whatever.  I'm continuing to learn, and that's what counts, right?

Tomorrow, I'll be reading the full chapter 2 from TECS at the temp agency, and either I'll start on the project or I'll tinker around some more in Hula and put up a public beta.  Fun times!

Friday, March 9, 2012

Day 20: "Noob Game" launched!

Early update today, since I stayed up writing my tutorial.  Feels good to be ahead of schedule for a change!  Now if only I can find some work today...

Noob Game can be downloaded on the free right here!  Below the jump is a tutorial on how to write this game (or something like it) all by yourself in C++.  But be warned:  the source code contains spoilers.  Because I know you're super-concerned about those.

GAMES?!

Indeed, games!

This is my central game download page, where you can find all the games I've made.

Noob Game:  This is the first game I ever made all by myself.  It's short & shitty, but it's got all the right elements for a game:  NPCs, dialogue, levels, and quests.  Can you slay the vicious troll of Pro Mountain?  Will you anger the gods and live to tell the tale, venturing forth into the Wild Blue Yonder?  Or will you be whupped soundly by the Noob Trainer and perhaps killed by a guard for attacking a civilian?  YOU DECIDE!  (Note:  the link is to a naked .exe file on Dropbox; your 'puter may turn up its nose at it, but I assure you that there are no viruses).

More coming soon!

Thursday, March 8, 2012

Day 19: A quest! And a world!

So I recoded everything from scratch in a new project called "Noob Game," rather than keep everything in "Hello World."

You start in Noob Camp and can talk to the Noob Trainer, who gives you a quest to take some Noob Shit to Noob Town.  If you keep trying to talk to the Noob Trainer, he tells you to get going.  You can then turn the Noob Shit in to the Noob Civilian, who gives you a gold piece.  Now you're on a first-name basis with the Noob Trainer!  That's some status right there!

The source code is beneath the jump, for anyone who is curious and/or wants to compile and play this pile of a game before I "officially" release it.  There are still a few bugs, like levels don't work right (also, attacking is a lie and does not work), but I have ideas of how to fix them and just wanted to put something up on the blog before midnight.

EDIT:  Uhh... finished the game?  Compiled and released before midnight.  Lots more quest, figured a couple neat new things out, posting a tutorial tomorrow.  Who knows of a nice free place to make .exe files available for download?

DOUBLE-EDIT:  Aaaaand... BAM!


Wednesday, March 7, 2012

Day 18: A game, at last!

It's not much, but I have the rudiments of a game here, now.  Thanks to Zachary's superior tutelage, I now have a game with a functioning victory condition, failure condition, and means of quitting.  You can't save, or talk to anyone, or do anything besides win/lose/quit... but still!  I have something functional here, and now it's just a matter of scaling it up until I get something worth distributing.

For those of you playing along at home, this is how Noob Game works (so far):
#include "stdafx.h"
#include "HelloWorld.h" //this header is empty at the moment, but I have a feeling I'll be using it eventually
using namespace std;
int _tmain(int argc, _TCHAR* argv[]) //this is the main function!
/* If I'm reading it right, the main function is simply an integer (albeit a really, really big one in binary).  What this means is that any possible game state could also be represented as an integer, Library of Babel-style, such that there is a set of integers which in aggregate represent all possible game states.  Whoah. */
{
cout<<"One Man Show"<<std::endl;
cout<<"Welcome to Noob Game.  Enter 1 to win, 2 to lose, or 3 to quit."<<std::endl;
char choiceOne[100];
std::cin.getline(choiceOne,100);
if(choiceOne [0]=='1'){
std::cout<<"You win!  Thank you for playing!"<<std::endl;
}
else {
if(choiceOne [0]=='2'){
std::cout<<"You lose!  Please play another time."<<std::endl;
}
else {
if(choiceOne [0]=='3')[
std::cout<<"You quit!  Fuckin' quitter."<<std::endl;
}}}
std::cout<<"The game is over.  Enter anything to close."<<std::endl;
std::cin.getline(choiceOne,100);
;
return 0;
}
And that's it!  I have extra comments in there & stuff, but I don't really care about that on such a small program.  I compiled it and ran the .exe on my computer many times!  It works!  Well, entering "4" or anything else besides 1, 2, or 3 will simply advance to ending the game, but as far as I'm concerned right now, entering unacceptable input is a failure condition.

I'm working on a replay module right now; I'll probably have to learn something else to make it work the way I want to, since I can't use "goto" any more.  Or at least shouldn't...

Anyway, even that was the result of an embarrassingly long session of poking, prodding, and just trying different things.  I'm going to go back to doing that now; just wanted to share that I've actually got something!  The simple fact that I'm using a program I created myself, no matter how rudimentary, is giving me a bit of a rush.

Monday, February 27, 2012

Day 11: Fetris bug-huntin'.

Before I dive into the "actual" errors, I decided to fix the "pretend" errors (i.e. the errors caused by my human error, like typos).  In addition to the errors I found last week, I found one case of necessary capitalization, one case of extra comma (which caused three other syntax errors in the same line), one case of super-exciting extra "}", and one case of a comma that should'a been a semicolon.

I take solace in the fact that I was able to solve my own syntax errors (which were the larger portion of the errors generated) simply by looking at them.  I said, "Oh, that's obviously what's causing the problem," attempted to compile it once again, and BAM!  Error gone!  There was one case where I put a 1 (one) instead of an l (lower-case L), but... look, they look the same.  I would say to them, "You want an ice cream cone?"  Both of them say, "Yes."  Everything that got more complicated than that, I checked against the original post, and yeah:  did it exactly like he said (except for the one part where I kinda-sorta skipped a line).

I am unlikely to get support from Evil_Greven himself on this, but that's OK.  It wouldn't be a learning experience without like six bajillion hurdles.  My high school chemistry teacher, Dr. Landorf, once gave us a universal problem-solving method.  I forget most of it, but the two parts that stuck with me were:  "A problem is not when you simply have to get from A to B.  A problem is when you have to get from A to B and have no idea how.  Otherwise you merely have a number crunch," and, "When you  can't find the solution to a problem, start at the answer and derive the question."  I couldn't find the list itself on the internet (this was a handout from before the internet was everywhere, and apparently drew from several sources), but I did find a really great joke while I was looking:
A mechanical engineer, an electrical engineer, and a software engineer are in a car that breaks down.  The mechanical engineer says, "Maybe is's a stuck valve."  The electical engineer says, "Maybe it's a dead battery."  The software engineer says, "I know. Let's all get out and get back in again, and see if that fixes it."
BWAHAHA!  Oh, what a groaner!  Love it!  OK, so I've now got it down to three errors:

1>------ Build started: Project: Fetris, Configuration: Debug Win32 ------
1>  main.cpp
1>c:\users\d\documents\visual studio 2010\projects\fetris\fetris\main.cpp(187): error C2440: '=' : cannot convert from 'const char [7]' to 'LPCWSTR'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\users\d\documents\visual studio 2010\projects\fetris\fetris\main.cpp(196): error C2664: 'CreateWindowExW' : cannot convert parameter 2 from 'const char [7]' to 'LPCWSTR'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\users\d\documents\visual studio 2010\projects\fetris\fetris\main.cpp(260): error C2664: 'BitMapObject::Load' : cannot convert parameter 2 from 'const char [11]' to 'LPCTSTR'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>  BitMapObject.cpp
1>  Generating Code...
Much more manageable than the two dozen I had on Friday.  I can handle this.  I think.  I Googled the first error, in accordance with the prophecy (the prophecy is "JFGI") and found this thread, which led me to this other thread., which led me to this excellent article.  The article is called "Making Wrong Code Look Wrong," and the author goes on about the true history of Hungarian notation (which I did not know was a thing until today) and how to be your own best friend with your programming conventions.  Since one of my errors from this very day was an extra "}" nestled amongst some 50 lines of nested "how to make teh bloxxxorz," I really wish that Evil_Greven had followed rule 5:  "Don't put closing braces more than one screen away from the matching opening brace."  It would've been gallons easier to spot that extra brace, had he done so.  But no worries!  I learned a valuable lesson.  And I bookmarked that guy's blog, because it's rad as Hell.


OK, so the guy in thread number two said that I could either switch the compiler settings to multibyte character set, or use unicode strings instead (the recommended option).  I can't find that option after combing through them all, and I don't know how to make it unicode compliant quite yet, so I'm calling it a night.  It's quarter after ten, I have learned some things and done some things, and I'm happy.


For now.

Wednesday, February 22, 2012

Day 8: More book-learning.

Seriously, you guys.  I am thoroughly convinced that making a game takes forever and is impossible.

I got program vectors on the board, and I got NPC sprites on the board near the program vectors, but obviously they won't just go, I have to tell them to go and when to stop and blah blah blah.

I need to learn more programming, is what I'm saying.

So I looked up the section on vectors for more precise instructions, and it tells me to write things like "playerPath(variant handle, int flags, ...)" and "itemPath(variant handle, int flags, ...)" and expects me to know how to use RPGCode already (which borrows from programming languages I also don't know).  Fine.  I know when I'm in over my head, so I went to the RPGCode section to find something on "make sprite follow path vector."  This section is written by Occasionally_Correct, who you may remember from that useful tutorial I read on Day 4.  But the topic headings look like this:

  • Language Features
  • Basics
  • Program Flow
  • Creating Functions
  • Scope
  • Error Handling
  • Reserved Variables and Constants
  • Function Reference
  • Object Oriented Coding
  • Old vs. New
  • Methods and Using
  • Overloading Operators
  • Copy Constructors
  • Polymorphism

OK.  So.  None of those is on assigning an NPC to a path vector.  And in case you can't tell, this is not how I learn things.  I don't do well with things like "basics" and "principles" unless what I'm learning is something simple and limited, like playing cards, and I can immediately do a bunch of trial and error.  You get two through ten, then these three "face" cards (King beats Queen beats Jack beats Ten, and so on), and an Ace which can be high or low or both depending on the game.  That's it.  That I can learn with basics an' shit.  This is like nailing Jell-O to a wall:  you tell me something and I listen, but it's boring, and when I finally understand the second boring thing then I've already forgotten all about the first boring thing.  I can never learn exciting things this way, because I can't remember all those boring things all at once.  I need to start with an exciting thing, pre-formed and ready for dissection, and just use it first.  Then when whatever it does isn't good enough for me any more, I learn one boring piece of that exciting thing at a time, and tweak it into oblivion until I get what I want out of it (or at least have a more robust understanding of what I can/can't get out of it).  That way I can do something exciting, even if I'm doing it poorly, but I have practical knowledge straight out the gate and a way to branch out.  Then when I've amassed enough exciting things (or at least enough facets of the one exciting thing), that's when I'll grasp the basics in a broad-based way.

I want to be clear here that I'm not saying the guide is bad.  It's actually very good, but it doesn't fit me.  It's like a well-made tuxedo that's two sizes too small:  I can't fit it on and it looks like crap if I force it, even though it's evident that serious craftsmanship went into its design and manufacture.  What I'm saying is, this guide's start point is my end-point.  This guide wants to go backwards through my learning curve.  The cheek!


It's like I want the internet, but I have a textbook.  Yes, I can use the textbook; but the internet would work so much faster!  Whatever.  If this were easy, there's be zillions more shitty games out there.  There's nothing else really to do at this point, since I can't execute the other game features I want without learning everything about coding.  I guess I ought to keep working on the first game, then.  So fiiiiine, I'll reeeeead the tutooooorial, and probably like three others too.  Even though they put me to sleep because they start with things I don't care about and work up, rather than starting with things I do care about and working out.  Although I suppose it would be really hard to write a guide centered around "what I care about."

So that's what I've been doing today.  Found another good tutorial by this guy Marz, so hopefully that should mean "game updates" and not "learning updates" tomorrow.  I don't think you guys wanna hear about what variables and functions and arguments all are, anyway.

Tuesday, February 21, 2012

Day 7: Two steps forward, one step back.

I figured out how to do graphical and waypoint vectors, the other two kinds of vectors besides collision and programming.  I couldn't quite figure out how to get vector intersection (where your character is opaque when its collision box is outside of the vector, and can go in front of or behind it) instead of frame intersection (where your character is always behind, as though the object is "above" your character); the user's guide mentions their existence and then tells you to click an option that is not actually represented in the user interface.  I bet I'm going to feel really, really dumb when I do finally find that sucker.

On the plus side, I found out how to load programs upon entering a board.  You see, under the board's properties, there's a little section that allows you to load a program to activate upon entering the board.

I got the structure of a board intro here.  I'm angry at vectors right now, so I'll add NPCs & shit tomorrow.

Today's just one of them "do one thing" days, I guess.

Monday, February 20, 2012

Day 6: Taking things in a new direction...

So Saturday evening, after mailing books to prisoners & teaching seniors to use Facebook, I was walking home thinking about game stuff.  I thought, "I should see if I can make something game-ish with what I've got now," since the toolkit comes with a battle system.  It would be good practice!  And I thought, "Hmm... I could do that torus world thing I wanted to do, keep things nice and simple."

Oh!  Hey!  I could do it like a ring world, just one continuous strip.  Play around with how big I can practically make the boards.  Ugh, now all I can think about is Halo.  No way I'll be able to make something like that with this.

Fuck it, make everyone cats.  That'll do it.  Even the aliens:  small, medium, large, and extra-large.  They're, uhh, directed by a coven of witch-cats.  They're the Coven Cat Fleet.  Yeah.  And the human resistance relies on... Sergeant Scritches.  OK, so Sergeant Scritches goes off on this ring world, and he has to, like fight guys.  With a gun.  He can also use nunchuks, but they're terrible.  I don't know.  But he has to find a bunch of... hoops jump through, like... no, fuck it, just find the hoops and literally jump through them and magic happens.  That's enough to learn how to make the event happen, you can make it fancy later.

OK, so you travel ring world, you kill the Coven Cats, you find better nunchuks, and... I dunno, gain the ability to dual wield.  How can you heal?  Cats eat fish.  Mine for fish.  Wait, that's taken, isn't it?  Look, maybe he came up with that, but you can't copyright turning people into cats.  Or shooting barrels for lutefisk.

What'll I call it?  Something like Halo, but definitely not Halo.  Oh.  Oh, yeah.

Hula.

OK, so I made a little sketch:

A quick sketch after making a little mock-up of the original Halo box art.

I gave myself too much room just to write "Hoop-Jumping Revolved," so I added "It Done Did" and it just kinda stuck.  I played around more in GIMP, too.  I'm still in my finger-paint stage, but soon I'll have some nice, starry backgrounds to load my tilesets over...


Mm-mm.  That's some good GIMP practice, right there.

There was a point there where my screen looked like this:

Ingredients:  Kittens, Samus, Chief.  Put in blender.
Use "chop" setting for chunky, purée for smooth.

Before I get too far on this, though, I need to make a decision.  Green or orange?

Sgt. Scritches can dress for many occasions.

I mean, I like green and all.  But orange is the color of awesome.  Maybe if I make it darker?  I don't know.

Also, because I think everything needs a minimalist poster:

Saturday, February 18, 2012

Conversation with an Industry Insider!


Dear My Adoring Public,
This past week, I had a conversation with my friend Zach Lome, who is awesome and a really cool guy.  He has also worked on Real Life video games in the past, and lent me his insight during a conversation we had recently.  I'm sharing that insight with you, My Adoring Public, both for your benefit and so that I can remember it later.  Cheers!

T:  OK, so I accept that I will have to start everything over at least six times on this project.  But what would you recommend I learn more about first, now that I have the game running?  Should I build more world, work on combat, make menus and items, set levels…  If the whole team had to work on one thing at a time, what would they tackle first?

Z:  The first thing to tackle in game design is just that:  the design of the game.  Step one, write down (no programming!) how you want the mechanics to work.  Step two, create tools that let you implement your design.  Step three, use your tools to generate the scenario the user interacts with.  Step four, figure out whether or not the mechanics you designed are fun and engaging.  If you write a lot of flexibility in your game engine, you should be able to tweak variables and info without having to do a lot of extra coding.

T:  OK, I wrote two pages in Word about what I want there to be buttons for and how to interact with things, so that’s at least a start on the design document.  Step two is where you lose me, I have no idea how to get started on the “create tools” part, but step three is exactly what I want to do to those tools and I can picture a sort of tech demo in my head.  I’ll worry about step four after I have something at all functional.  I guess right now I need a clearer idea of what actual work I’m going to be doing in step two, so I know how much detail to use in step one.  What should I be Googling?

Z:  [REDACTED FOR GOVERNMENT SECRETS.]

T:  HOT CHA!

Z:  doo hoo hoo,hello hello!  This will be much easier. I can type faster and [REDACTED FOR PUBLIC HEALTH BENEFIT.] <_<


Z:  okay so when I said 'make tools' that's really more of a build-from-the-ground-up thing. Since you're using RPG Maker that's sort of… done already.  the problem is, I've never used RPG Maker, so I'm not entirely certain how much flexibility it offers in terms of implementing what you want.

T:  rpgtoolkit, actually. Those are two distinct things, it turns out.  I was surprised.

Z:  ah

T:  But yeah, they got forums and everything. And I see from having done the quick-start tutorial what sorts of things there are to do, I just have no idea what part of the game I want to make more of first.  But for when I do eventually make my own game-making engine, that's what I would be doing? Basically coding a program that enables me to edit the game?

Z:  so the way I would suggest doing it is pretty much what I texted: first, figure out how you want the game to be played. Determine every individual action a player can take (pick up an item, drop an item, fight a monster, use an ability on a monster, defeat a monster, recover loot from a monster, talk to an npc, hit an npc, flee from battle, exist in a cutscene, etc.)  Split things up into distinct sections of functionality — don't worry about story or art or music, but consider whether or not you'll need to do particular things with story or art or music (do you want a certain sound effect to be able to play when a text box pops up? make sure you have some way to do that).  And then what I do is just go from easiest to hardest in terms of functionality implementation.  So the easiest is having a guy that walks around.  But to do that there's gotta be the map, so you need to be able to generate a map.  So once you can make a map you have the guy walk around on it… what does walking entail?  There has to be input from the controls, animation, and probably a sound effect  once you have all of those implemented look at how you can extend it — collision detection for instance.

T:  OK. Wow. Crazy. OK, so make more land, make more mans, make more stuffs, make more menus. Yeah, I got the animation and was able to work the controls.

Z:  What kind of things can the user collide into?  Is there a difference between colliding with a wall and colliding with an NPC?  What does an NPC detail?  Let things spiral out of control naturally.  :)  Always focus on functionality though. if you've got a good list of what you want things to end up looking like then you won't suffer from feature bloat.

T:  Right on. OK, well I won't [CENSORED FOR EXTREME OBSCENITY.], but you've given me a lot to work on and think about. Thanks for your help!

Z:  S'all good :)    It's a bit harder in some ways when you're using an already-written toolkit, because you're limited by what the toolkit can do.  But it's also easier because you don't have to know C++ or C# and you don't have to write your OWN toolkits :)  

T:  Right.  I’ll do that later.  For now, I want to learn somebody else’s tools so that I have better ideas when I build my own.

Full Disclosure:  I sent an email to Zach, asking the following:
Dear Zachary,May I post our conversation from the other day to my blog?  I shall redact the parts about [REDACTED FOR PARENTALLY EMBARRASSING INFORMATION].  Well, one of them.  I'll censor the [CENSORED FOR ABSURDLY SPECIFIC PORNOGRAPHY].  For adult content, you see.
He replied:
Oh, absolutely! Feel free to take any ramblings I have and reprint them. You have my explicit permission unless otherwise stated by me during the course of the conversation to repost anything I say.
Feel free to print this out, laminate it, and frame it. As you do.

Friday, February 17, 2012

Day 5: Rocking Hard

I feel good about today.  I figured out some more about "if," "else," "elseif," and nested conditionals.  I doubled the size of the game world again - nay, more than doubled it, but I'm just going to keep track of how many times I double it since that time I said I wouldn't until 1,000 (or 1,024, to be precise).  The first couple days are easy, but those last few days?  Bite me.  Who wants to bet me on when I fall off the ball?  (Pro Tip:  I have pretty good control over when I fall off the ball... but it will probably be before 1,024 boards...)

To keep track, today I'm due for eight boards, and I have eleven.  So here is the whole game world, in all its glory:

I don't need to tell you guys to click for huge any more, do I?

I spent quite some time in GIMP, arranging all those screenies for you, my adoring public.  (Adoring!  ADORING, I SAY!)  Don't expect me to put that kind of effort in every time I've got a significant update - no, I made a separate layer for each board so that I can move all the pieces around like a game of Carcassonne, so updating the world with future boards will be easy as pie.  Which is actually kinda hard, if you ask me.  I mean, you need to make the crust, and have a tin or a baking dish that's at least vaguely pie-shaped, and you need your filling, then the top, and the top has to be pinched around to the crust (unless you're making one of those pies, in which case you can jolly well fuck off!), then you need to bake it at the right temperature for the right time which are interdependent variables, and when it's out it might have to sit...  But then you can eat that pie, and it is delicious.

A video game is a lot like a pie.  It has many pieces that come together into a delicious whole, unless it's a Zelda game for the CD-i, and it's hard to make one unless you know the whole process yourself or a faceless conglomerate hires you to do one monkey-stupid part day-in and day-out until you retire.  Not that I'm cynical or anything.

ANYWAY.  New features:

  • Trespassing upon the farmer's meager field of flowers now gives the option to fight him or converse with him.  Fighting results in the farmer's swift and sure surrender; conversation results in quickly smoothing things over.  (The farmer still complains of further trespasses, whether you trounce him or smooth-talk him.  Deal.)
  • That board (up in the game world) between the farmer's meager field of flowers and the road into the woods?  Yeah, that's the "plains," and it was always there - but in previous iterations it could only be accessed by travelling East from the road (because I didn't set up the board links right), and then you could go further East back to the farmer's meager field of flowers or West whence you came.  Now I know how the Lost Woods was made in the original Legend of Zelda game.  By extension, I now know how to make cube-world, knot-world, and even torus-world.  Inside or outside.  Because I have many skills and powers of a geometer.
  • The plains have their own music!  NOTHING ELSE DOES, except for the title and start screens.
  • Boards in all their 640x480 glory!  Plains 001, Forest 003, Forest 004, Forest 005, Forest 006, Forest 007, and Forest 008.


Bugs:

  • If you try to go from screen A into screen B where the "joint" would cause you to step over a collision vector on screen B (see figure 1), you just kinda... walk... off... into Never Never Land.  I need to not make this a feature of my own proprietary game making software, if I ever get around to doing that.



Figure 1:  Attempting to screen transition from any of the arrows results in travelling off-screen.
By now you should know that you can click for huge.  I'm not telling you any more.

I'll have a bonus "interview" with an industry insider over the weekend, then we'll see what I've done by Monday evening.  I'm thinking... umm... sprite sheets.  Or scenery tilesets.  Something artsy-fartsy to get my mind off of all this programming stuff.  Either that, or more behind-the-scenes programming, where it's easy to make boring progress which is difficult to sex up into an update.  Not that I'm cynical or anything.

Thursday, February 16, 2012

Day 4: When progress doesn't feel like progress...

...you write it down so you can see how far you've come later.

I changed the menu options while poking around in the "start" program.  I still have no clear idea of what it is about where I put that text which makes it begin a game, or why the "cursor" is a finger and not an arrow, or how I could change it to an arrow.  But eventually, I will be familiar with this.

Instead of "Test Game," the top left displays "Practice Makes Perfect."
Starting options now read differently.  Cursor is still a finger.
Click for huge!

Two more boards!  Game world doubled again!  You can even walk from the first one all the way to the last one.  Complete with collision and program vectors, which I can now program to do one thing once, and then do another thing, thanks to Occasionally_Correct's tutorial.  Behold, our meager flower field farmer complains not once, but twice at how the player doth trample upon his flow'ry field:

Click for huge!

Beyond the farmer's flower field, the entrance to the forest.

The road doesn't go very far in this direction...

I also figured out how to edit tilesets... and broke all my boards in the process.  But fixed them!  I also got in some good tutorials on Creating and Using a Sprite Base (six parts in there, so far).

There!  I feel much better, now.  A noob I was, and a noob I remain, but today I still made progress.

Things I still want to do:

  • Move message windows around the screen.
  • Display an image after beginning a new game (with the "start" program?).
  • Make text appear upon that image.
  • Make a message window pop up when appearing on the first board.
  • Make only one button close that window - otherwise the move keys close it!
  • Make the farmer move to the player as part of the trespass program.
  • Give the player the option to talk or initiate combat.
  • Make dialogue options.
  • Make combat.  (UGH.)
  • Make the farmer's door work.
  • Make the farmer's house interior work.
  • Add under vectors to trees.
  • ...something with layers.
It looks so big and scary like that.  And combat is going to blow up into like a million things.  Whatever, I'll still take it one step at a time.

Wednesday, February 15, 2012

Day 3: 100% game world growth!

Today I read more tutorials, but I'm still a ways from knowing how all the different pieces go together.  This was really, really helpful.  I seem to have my work cut out for me.  Surprise?

I did make progress, however!  I cracked open the "start" program, so I now have a slightly sharper idea of what's going on under the hood when I see this on the screen:
Click for huge!
And I even made it say my own thing when you pick "New Game"!

Click for huge!

I made vectors visible to ease testing.  When you collide with the mountains on the North side of the screen, you tell yourself not to go into the mountains.  You can also move with either the mouse or WASD (in eight directions!)

Click for huge!

And I made a whole second screen!  This DOUBLES the size of the game world!  There's even a farmer who complains if you trespass upon his meager field of flowers:

Click for huge!

Why, at this rate of growth, in only ten days I'll have a thousand game boards!  Give or take.  No promises.  Actually, that's not going to happen.

Still, slow and steady wins the race, as they say.  Whoever they are.

Tuesday, February 14, 2012

Day 2: It's alive! ALIVE!

Ha ha, I got it working!  And I feel like a super noob, too.  All I had to do was run toolkit3, the actual program, in administrator mode... and also run trans3 (which does the whole preview thing, from what I can gather) in administrator mode, and end the rundll process which was magically preventing toolkit3 from running my game through trans3.  I guess.  But after poking around the internet and trying fixes, that's the one that worked.

Rather than keep working on the jank-ass slightly-modified demo I was working on, I decided to do everything over more or less how I had done it before.  For practice, you see.  Things went a lot faster the second time through, and I made a few slight improvements as well.  I even got the NPC to ask for my name!  Check it out:

Click for huge!

OK, now that I know how to do all that... let's make MOAR GAEM!

Monday, February 13, 2012

Day 1: Minor Progress, Major Frustration

I feel more frustrated than I feel accomplished right now.  I know, in my head, that the frustration is temporary and the accomplishments are cumulative:  I learned the rudiments of scripting and how to program an event, and I technically have something that ought to be playable (but in a very "we're running the editor" sort of way). See, here's my starting board:


Click for huge!

But I had to qualify that statement about playability because I can't get the game to test.  The very helpful tutorial tells me to click the green arrow to test the game, and I click the green arrow to test the game... and nothing happens.  I tried making the game into an executable file, and it wouldn't run.  Or maybe it ran but did nothing (after several tries at double-clicking it, I found a bunch of processes running in the Task Manager that were suspiciously doing nothing).  Not even the demo game runs.

Y'know what?  Fuggit.  I learned how to script events, place interactable items (of which NPCs are a subset, apparently), and place the player starting location.  Getting something to run is tomorrow's task.  Let's hope my Google-Fu is strong enough...

Sunday, February 12, 2012

Day 0: Lots of Book Learning

It's about 10:30 now, I should be getting to bed soon.  So what have I accomplished today?  I've read many pages of text, and saved many files among various folders.  A whole lot of tedium in the actual doing of it, but it looks like a much more respectable list when I itemize it:

  • I learned how to make the "game" itself.
  • I learned how to make a "board" to walk around on.
  • I learned how to make "vectors" on the board which will denote collision areas.
  • I learned how to make walking animations for characters.
  • I started reading up on how to code scripted events.

That's... phew.  Four things done, and one thing started.


Only a bazillion to go!

So what kind of game will this be, anyway?

After poking around the internet and looking at different ways of making games, I've decided on how the game is going to be.  At least at first.  I had this naïve fantasy of creating a text-based adventure which involved into a text-based adventure with graphics which evolved into a turn-based RPG which blah blah blah, but that unsurprisingly turns out to be more trouble than it's worth.  To strike a balance between "hitting the ground running" and "learning video games from the ground up," I'm going to be using RPG Toolkit to create something that runs about like Chrono Trigger.  I figure that if a finished product ends up looking even that good, I'll be happy.  I'll also work on, ahem, "backwards compatibility" sometimes if I hit a brick wall, and maybe step back to text-based adventures if I'm unsure of how to move forward with my real project but I still want to learn something about video games that day.

OK, so the goals are:

  • A top-down 2-D RPG with turn-based battle mechanics.
  • Battles will take place "in the world" like Chrono Trigger (as opposed to having their own screens, like in Final Fantasy's SNES incarnations).
  • Main focus will be on story - how things go in the world based on how the player resolves conflicts.

This last point is probably the most defining feature of the game.  Sure, the player will be able to kill his/her way through the game; but the main character will pretty much be able to take combat for granted.  "Combat" itself I want to be just one of multiple ways to resolve conflicts; other ways would be avoiding conflict with stealth, or deterring it with crowd control (CC) effects.

To explain this with an example (half for you, half for me), let's say a soldier is standing guard to the drawbridge of the castle we need to enter.  The main character could certainly storm the gates by approaching the soldier with a weapon at the ready.  But a professional soldier might be able to kill one of the main character's companions before he was dispatched.  So the player may also choose to seek an alternate entrance, to attempt to bribe the guard, or - if negotiations break down and combat ensues anyway - to use CC on him for a couple turns until he doesn't feel like fighting any more.

But that's a little far off right now.  At first, I have a feeling I'll be concentrating on things like "can I walk in the world" and "does the man fall down when he has zero HP?"  That's just where I want things to go eventually, but I think I can use successive approximation to bridge just about every gap there is in between.

OK, let's warm up RPG Toolkit and see what kind of damage I can do!

Edit:  You guys, vectors are complicated.