Posts

Showing posts with the label shield bearer

GitHub Releases for Shield Bearer and Bee-Flat

I've been focusing on my full time job, but I wanted to make a quick post to say that I made releases for Bee Flat and Shield Bearer .  They are for my Game Off 2019 Build of Bee Flat and my JS13K Games 2019 Build of Shield Bearer .  I hope to someday be able to return to those projects and make them better.

JS13K 2020 Game Jam Day 23

Image
 *Sigh*  It happened again!  Oh, well.  Let's just see how much I can get done before the deadline.  If I don't finish this one, I'll add it to the pile of games to finish:  right next to Shield Bearer. I've been brainstorming a bit on how I could do a menu.  I feel like I should treat a menu like Levels themselves:  the graphics will be drawn on the world, Ratio-Vision will capture that one section and render it, and all the inputs will be driven by a menu controller object.  In fact, I've been brainstorming of a way to handle controls as well:  I feel like there needs to be some sort of abstraction layer so I'm not checking the Unicode for each key, I just have to make sure that a player or controllable object implements certain actions from this controller object.  I'll call this Master Controller!  Yeah, it's not as original as Ratio-Vision, but I wanted a simple name that perfectly describes its functions. I want Master Co...

Are you coding, son?

 Sadly, I've just been coding stuff for my job: very boring websites and no games.  I'm sorry that I lied about coding on the 7th of March 2020.  Things got pretty hectic during the pandemic!  Now, I want to get ready for JS13K games 2020 !  So, let's work some more on Daemon to re-familiarize us with how to make games in HTML5! I haven't been actually coding, but I've been brainstorming on what to do about how many pixels I should try to make each cell on my grid.  I eventually had the thought that it was the wrong question to ask.  What I eventually came up with was a way to force a certain aspect ratio for a canvas that would be used to draw the sections of the map/world as my "camera".  I call it Ratio-Vision! Ratio-Vision is an object with functions to normalize the display between different screen sizes.  One of the problems I found out with my games was that they would play differently depending on the size of my screen.  Shield B...

Game Off 2019 Results

Image
Hey!  I know it's been a while, but I've been pretty busy with the Holidays. Anyway, I had some time to check out how Game Off 2019 went.  Here's the results and I found Bee Flat on Page 7 .  I captured them below There were 236 entries and the score was out of 5.  So, overall the game was placed just below half the entries.  Which, is pretty good given that the game was incomplete when I submitted it.  Yeah, next time I'll try to actually submit a finished project.  I might pull a No Man's Sky and complete the game, but I'll do that later.  I still have Shield Bearer to finish as well.  However, I want to actually start a project that isn't bound to some weird theme from a competition. I want to build a Mega Man X fan game.  I've been watching videos that JKB Games have put out on their fan game called Mega Man X: Corrupted .  I'm a bit worried about that game since it runs on Flash and every browser is ditching it at t...

More Game Off 2019 Prep

Hey, I just wanted to give a quick update as to what I've been up to recently.  I bought a Unity Book Bundle from Humble Bundle.  It had a Cookbook for Unity 2018, and had some videos on how to develop games using Unity and C#.  I don't know if I'll use it for the Game Off or not.  I will have to read into more, though. Jedulz also told me about glitch.com .  It is a collaborative web app developer tool, and that's pretty neat.  It runs a little bit like Google Docs.  However, it seems like it only works with the three Website Languages: HTML, CSS, and JavaScript.  Which is great, if I wanted to create another game like Shield Bearer that you can play from the browser.  Since we have so many languages to choose from for this Game Jam, I'm having a difficult time figuring out which one I want to use.  I also love learning new programming languages, too!  Which is what is making this decision so hard: go with the tried and true...

JS13K Games 2019 Day 32 (Final)

It's the final day to upload Shield Bearer before the deadline.  Well, more like the final 6 hours.  Let's see what I can do. I wanted to get that collision with the Backscatter Buster shots and the spiders going, so I immediately jumped into the playerProjectile's update function.  I added a for loop to go through the array of enemies and check for collisions.  If there was a collision, mark the projectile for dead and kill the spider.  The collision is good, and the score is increasing!  Now I just need to make the spiders a bigger threat by having them fire at the Bearer every second after they have stopped! In Orion's Revenge, I created Enemy Ships  that could shoot at the Player Character no matter where the Player's Ship was on the screen.  I want to do something like that for the spiders.  To implement something like that, I created the enemyProjectile class.  If the enemy is a spider, I want it to fire a projectile from the c...

JS13K Games 2019 Day 31

Image
Oh, boy!  It's 4:53pm right now and I have only about 14 hours to finish my game.  Hopefully, I can get something playable by then. My first goal was to finish the collisions with the Backscatter Buster shots.  I have them moving, but they're only affected by the walls.  It's been a while since I did collision checking, so I had to think about it.  I decided to create a separate function called collisionCheck to check for collisions between two objects.  It would be cleaner, and smaller, to have this check be in a function that I can reuse.  So, what is the algorithm that I should use? What does it mean when two objects collide?  I drew it out, and I think checking the corners on one object to see if they are within the bounds of the object.  I think that will work for a majority of cases, but probably not all of them. As I was eating dinner, I was thinking about objects that overlap each other but their corners don't touch.  Th...

JS13K Games 2019 Day 30

Hmm...less than 34 hours to complete Shield Bearer for the contest.  Hopefully, tonight will be just like yesterday. Okay, let's get a Heads Up Display (HUD) going to display the player's current score and their Health Bar.  I wanted to get the score going first, so I looked up how to draw text using the HTML5 canvas context .  I then read up on the JavaScript classes , because I wanted to know if I could create a static class just to display the score.  I can: if I add the word "static" before the function in the class, it becomes a static function that can be called right from the class without creating an instance of that class.  I gave it a static draw() function, and made a few const variables to hold the color that I wanted for the text.  I then added it to my main draw() function to get the score to draw on the Canvas.  I had to change the x and y variables around to fully display the text, but I got it in an area that I like. Now, we need a...

JS13K Games 2019 Day 29

First of all, I need to give a shout out to my friend jedulz for helping me get Shield Bearer to be drawn on the HTML5 Canvas!  I was having trouble getting the height and width to be correct until he sent me this pull request to fix drawing to the Canvas .  Now that I can see what is going on, I can start solving some of the issues I'm currently having with my game.  I changed the Bearer from being drawn by strokes, to just a filled rectangle so I could see it better.  I'm hoping I can get some sprites going before the deadline. The first issue I sent out to tackle was that the Bearer would get stuck traveling to the left of the screen.  Jedulz suggested to me that it might be caused by moveLeft, moveRight, stopLeft, and stopRight functions.  I didn't like using them in the first place, because they kept messing with the dx.  So, I stepped back and ask myself this question: what are the keyup and keydown events trying to tell my game?  The orig...

JS13K Games 2019 Day 28

Image
I'm back to work on my game!  Well, I'm actually kinda working on both mine and my friend's game for the competition.  I don't mind.  It gives me two places to try ideas.  Anyway, I just pulled off a manual merge to my fork of jedulz's entry.  That was a bit weird to do, but I'm glad GitHub gave me instructions on how to create the branch and pull the merge request.  Then, I just used Atom text editor to push the merge on the branch and then merge that branch onto master. Today, I mostly helped out jedulz and his entry .  He was using a big green square for his plant, bush, or whatever his purple food was growing on. So I went ahead and drew him this plant: Now, his game looks like this: Which, I think is a little better looking than that square. The only time I had today was spent learning how to use the canvas.  I think I found something really cool, though.  Actually, I found a lot of cool things with drawing images on th...

JS13K Games 2019 Day 26

Wow!  My brain is coming up with a lot of ideas for Shield Bearer tonight (12:27am on 9/7/2019)!  I just came up with a good idea: variable jumping height!  How do I implement that in my game?  In Jedulz's entry , he uses a variable called dy for change in the y direction.  He then has a gravity variable that will increase the dy, because it is negative to send the player upwards, and then the player falls to the ground when dy is positive.  I'm thinking, on a "keyup" event for the Up Arrow or W key, we set dy to zero if dy is less than zero.  That way the "downward force" of the gravity starts working immediately after releasing Up Arrow or W key.  Also, I came up with having that if condition because I don't want the player to be able to release the Up Arrow or W key at any time to restart accelerating to the ground. I wanted to get my "game over" state set up for later.  I'm thinking I'll have a health counter or something.  When...

JS13K Games 2019 Day 25

Ah!  I got it!  The name for the Bearer's laser cannon will be the "Backscatter Buster"!  It's freaking PERFECT!  Backscatter is another word for reflection, which will be how the cannon works: it fires a projectile that can hit a wall and reflect back at you.  It also contains the word "back", which was the theme of the competition !  I was a little worried about calling it a Buster, though.  It is also what they call Mega Man's, X's, and Zero's arm cannons.  However, Buster is an actual term in the dictionary that means a person or thing that can break/destory/overpower something.  That's probably why their cannons are named "Mega Buster", "X-Buster", and "Z-Buster" respectively: they can't just copyright or whatever the word Buster, since you can't really copyright a single word.  At least, that's what Quora is telling me . So, I've never really used the HTML5 Canvas before, if it wasn't ...

JS13K Games 2019 Day 24

Between work and everything I have to do after work, I've had no time to really sit down and work on Shield Bearer.  It might be a game that I might never finish for this competition.  However, even if I don't finish it in time for the competition, I'll try to finish it some day. I did have time to check in on my friend and coworker 's entry for the JS13K Games Competition.  He's got a red square that will be a porcupine later, and the goal is to collect food (the white dots) while avoiding enemies (the blue square).  It's a pretty good start.  I did find an issue where the porcupine could walk off the screen moving left or right, and it would clip through the floor on landing from a jump.  I saw where I could add some code to fix that, so I did.  Hey, this is a friendly competition!  After looking up how to collaborate on GitHub , I managed to set it up so that I can push commits to my copy of his repo  (called a Fork) and make pull reque...

JS13K Games 2019 Day 21

I've been trying to find out how to fix that height bug in my HTML5 Canvas.  I got really close using vh in my CSS , but that gave me the window.innerHeight issue of being too big.  Maybe, I could use fullscreen with the HTML5 Canvas , but I'll have to see how it works on mobile.  I've tested it on Chrome for Android and it works!  It also works for Firefox on the computer! However, that was all I could do for today.  I'll have to save experimenting with going Full Screen for later.  I really want to know what the screen size becomes when you go full screen.  Does it use the resolution of the device, or does it do something else?  I really need to find a solution that uses the device's full screen.

JS13K Games 2019 Day 20

Life just kept me away from the keyboard, so I'm really going to have to kick this in high gear if I want to have a working project by the end of the competition. I do have some good news, I got FireFox installed for testing and I found a really good snippet of code: jfriend00's docReady code will allow me to have a "$('document').ready(function(){});" without having to add jQuery.  Remember, I have to keep my game under 13K in a zipped folder. My test to see if docReady would work, was to get the Canvas to resize to the available browser screen size.  I found a w3School webpage on window's innerheight and innerwidth , but those would be WAY TOO BIG for the screen.  I then tried document.body.clientWidth and document.body.clientHeight, but I got the same result.  As I was playing around with Chrome's Developer Console, I found document.body.offsetWidth and document.body.offsetHeight; which, gave me the window's Height and Width that were curre...

JS13K Games 2019 Day 11

Image
Yeah, I actually did some work after a week of not working on it!  Yay, me!  Alright, here's what I've done so far... I actually got started on the actual code that will drive my game.  I now have a basic index.htm file that is used to play the actual game!  I also did a little experiment... Here I have two zip files: one with the htm and css files in one directory that I've called flat, and another with the css in a sub-directory that I've called tree.  As anyone would have guessed, the one with the sub-directory is bigger.  So, in order to conserve as much data as I could, I've decided to keep all the source files in one directory.  I've checked the rules , and there is nothing in them that says I can't do that.  It's just a really bad procedure to do so, because usually you would want to keep your files organized.  It also helps when you have a ton of source files to sort through: all your html code is in the current directory, all th...

JS13K Games 2019 Day 10

Don't worry!  You're not missing anything!  I just didn't do any work on this for about a week.  I hope no one who manages Developers sees this and goes "There!  That's why we have crunches!", "Developers are lazy!",  or something.  My real job has been really hectic lately.  Plus, if I have to choose between losing this competition and keeping my paying job: I'm keeping my paying job.  This was just something to do for fun and to break up the monotony of stuff I have to do for my job.  Anyway, I did do some work on Shield Bearer! I completed setting up my repository for Shield Bearer !  I haven't wrote any actual code yet for the thing, but I did start planning out what all needs to be done.  I brainstormed what needs to be done in order to "ship" the game.  Those are things needs to be done in order for me to have a game that I could zip up and submit to be judged by the competition experts.  Without them, I got nothin...

JS13K Games 2019 Day 3

Sadly, I didn't do much with Shield Bearer today, either.  However, I did read the rules  of the competition, and it does look like I can work on Shield Bearer while helping my co-workers with their game.  It even says that I can submit as many games as I want.  So, if they're encouraging multiple uploads by a single developer or group of developers, then they should anticipate having a one game go against another game by the same developer(s). Well, at least I don't have to worry about Shield Bearer being mothballed until the end of the competition.  I think it would be a pretty cool concept to explorer!

JS13K Games 2019 Day 2

Life got in the way, today.  I was away from the keyboard and didn't have any time to work on my code.  This blog post is also going to be late, as well. Anyway, my coworkers came up with their own idea for the JS13K Games Competition , and they seem to be inviting me to join their team.  I'll have to look at the rules to see if it is legal for me to do my own game while helping another team with their game.  I'm sure it wouldn't be, since that could mean that I could do something like get in first and second place.  Yeah, I want to check over the rules before I continue more on Shield Bearer.  I'll probably return to it someday. I decided to spend the last few minutes of today setting up a GitHub.io Page .  It also gave me a chance to test to see if Git for Windows was installed on my desktop.  It was pretty easy process, and I managed to get it up and running pretty quickly.  Check out my GitHub.io Page !  I got nothing to show on...

JS13K Games 2019 Day 1

Image
Finally, the competition has started!  This year's theme: Back .  Wait...what?!?  Back?!?  I was hoping for something a little more...specific.  Something like Cyberpunk, Medieval Fantasy, Space, or something besides a random word from the dictionary. So I sat down and thought about the word "back" and what it could mean.  Back could mean to physically move backwards, a throwback to a different era, to go back in time, to undo a step taken, the body part or the spine, to backup or reinforce, or to return where you began.  Then I looked at the definition of back that was posted, and it said pretty much what I thought of and more.  That was a pretty good waste of my time! Now that I had this big list of what "back" could mean, what should my game be about?  How should what is the game play?  In the words of Yahtzee Croshaw, what is my game's primary loop ? Well, I don't want to make my game about time traveling.  I have this we...