Skip to main content

#30daydeveloper - Day 9 - Introducing 4orner!

Hello! If this is your first time reading about my thirty day developer challenge, click here to go to the first post!

Four corners, or 4orner, is the tentative name I've settled on. And I am proud to present the first version that I am proud to call a working prototype. Obviously everything is still largely a work in progress, but this is the first time where I think that my game has the absolute bare minimum requirements to be called a game.
4orner!
So currently, colored balls spawn in the center of the screen when the timer at the top reaches zero. Then the player must drag the ball to the corresponding corner to increase their score. Once the ball makes contact with the corner, it'll disappear and the current amount left on the timer is added to the total score. Obviously nothing is set in stone and I have a ton of ideas for more content regarding scores like multipliers or bonuses.

So if you've been reading the blog entries in the past, you'd know that I had a problem with getting the trajectory of the ball correct upon mouse release. So the method I settled on is a mixture of the old mouse history velocity method and a directional method.

First, I use the historical positions of the mouse to create a temporary velocity. This way, if you've been dragging the ball for a bit, it'll be faster when you let go. But this led to an issue with sharp turns right before the release of the ball. Therefore, I added a second portion where it'll determine the correct direction the ball should travel in using the position of the mouse during the last two milliseconds. This way, even if you do a sharp turn while dragging the ball, it'll travel in the correct direction upon release.

I still don't know if this method is the most efficient, but it seems to work fine for the interim. Obviously there might be issues with sharp movement that may be faster than the two milliseconds I allotted for, but that seems unlikely.


On a side note, maybe nine days isn't much of an accomplishment to some of you folks out there, but to me this is a huge achievement and I am beyond proud of what I was able to do in such a short amount of time.

Comments

Popular posts from this blog

Jooble

Yesterday, I received an incredibly friendly email from an anonymous person who claimed to have read my blog and "loved it." Of course, because my blog is public and anybody can comment anonymously, I was a bit skeptical of this email. Yet, seeing as how this was the first ever "fan mail" I've ever received, I read the email. It wasn't fan mail, but it was an email from a person who works for a website called " Jooble ." Interested by his genuineness and heartfelt compliments of my blog, I took a quick glance at the website. Here's what he had to say about Jooble: Jooble operates in 45+ countries, so if you would like to find a job in other locations you may try to search jobs in: Argentina , Australia , Austria , Belgium , Belarus , Brazil , Canada , Chile , China Colombia , Czech Republic , Denmark , Spain , Finland , France , Germany , Greece , Hong Kong , Hungary , Italy , India , Indonesia , Ireland , Japan , Kazakhstan , Mexi...

Making a Board Game

Wanted to update my blog with what I've been up to recently. I made a board game and have been working on that full time for the past 3 or so months. The name is still WIP but it's tentatively set as "Our Modern Lives." It's a tile/card based map-building game. The goal is to achieve "Success" and "Happiness" before anyone else can by building your own route. Here are a few pictures of the current build (v1.20 Beta): On a side note, follow me on Instagram for more (semi-frequent) updates!

Left Turns and MoMath

The LED floor puzzle. I went to the Museum of Math the other day. It was a recent addition to the dozens of museums already in existence in NYC, but being a sucker for hands-on museums, I couldn't let this one pass by. While a relatively new museum (opened this December), it still garnered a rather large crowd on Christmas Day. The museum's two floors were packed with mostly parents and their kids. Sometimes it was a bit cramped due to overcrowding and I had to wait for my turn on certain exhibitions numerous times. Overall a pretty negative experience space-wise. Otherwise, it was a pretty decent museum. I'd wait  a bit so they can learn how to deal with large crowds. Many of their attractions were broken when I visited, thus subtracting from the ideal experience. If you're interested, you should definitely stop by, it's worth one visit at least. On a side note, I hope to be blogging more this Winter, so be on the look-out for more posts!