Creative Coding Week 5
Mid Term Proposal
For my mid term proposal, I think I want to try expanding on a shooter game. First, because I really like games, two, because shooting things are fun, and three, I kind of have the basic framework down to build something on top of. My main attempt is a 3D shooter with a space ship going through space with a 3rd person view, if it's a little too crazy then my backup plan has pretty much the same mechanics but is more of a 2d top down arcade shooter upgraded with cool new features like enimes moving in interesting formations. /* setup web gldraw player ship
place ship in -Z
control player ship with WASD on the XY coordinates
set canvas limits for ship
draw cross hairs
place cross hairs in the Z=0 location
have cross hairs follow mouse XY
have player ship rotate to point to the cross hairs
clicking will shoot projectiles from ship
to the cross hair location towards the positive Z location
draw enemies
they will fly towards the player in the negative Z direction
add collision function
if projectile hits enemies, do damage
if enemies touch player, do damage
use switch function when you grab a power up or armor
use switch function for enemy states if they can take more hits
use a switch function when you destroy enough enemies to get to the boss level
have everything restart if you die
add score counter for each enemy you defeat
add a winning screen when you win */
Art and the API
For the this reading this week, I thought it was pretty interesting how widely used and powerful API's are. I always knew data was really valueable for companies but I never really thought of exactly what that data was. It was always a pretty abstract idea to me, but it makes a lot of sense that it would be oragnized in a way for it to be easily accessed and used by code. In a way API are kinda like classes in where you can take information out of them or how it's owners can put info in which makes it perfect to use with object oriented programming. I thought it was also really interesting how sharing an API is a risky move but at the same time could reap huge benifits like what Twitter.home
while (!deck.isInOrder()) {
print 'Iteration ' + i;
deck.shuffle();
i++;
}
print 'It took ' + i + ' iterations to sort the deck.';