User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notes:sysprog [2019/03/14 11:42]
bstrong2 [Game implementations]
notes:sysprog [2019/05/01 19:07] (current)
bstrong2 [Game implementations]
Line 72: Line 72:
 maneuver around the obstacles that may cause you maneuver around the obstacles that may cause you
 harm. harm.
 +In the kingdom of Polygonia, The twin nobles
 +Prince Radii and Princess Diameter have been 
 +kidnapped by the Notorious Troll Nunia. Nunia 
 +you may ask? Nunia business. As the only shape
 +able to jump, you must go on a great voyage ​
 +to stop Nunia from enacting his terrible plans, ​
 +rescue Radii and Diameter from a inevitable death,
 +and save Polygonia from plunging into darkness.
 ==Possible Obstacles== ==Possible Obstacles==
-  * walls +  * <del>walls</​del>​ 
-  * spikes +  * <del>spikes</​del>​ 
-  * portals +  * <del>portals</​del>​ 
-  * reversed gravity zones +  * <del>reversed gravity zones(Special level effect)</​del>​ 
-  * pits +  * <del>pits</​del>​ 
-  * Ice/​Oil/​Slick platforms+  * <del>Ice/​Oil/​Slick platforms</​del>​
-Things that need to be figured out for thee impossible game+Things that need to be figured out for thee impossible game. Since we have moar time to figure out the game we will be adding some more awesome things! Here is the order that we plan on implementing things. 
 +  * <​del>​Hit detection</​del>​ 
 +  * <​del>​text indicating death</​del>​ 
 +  * <​del>​Death/​start over</​del>​ 
 +  * <​del>​oil slick, and portal testing</​del>​ 
 +  * <​del>​Set up the map (level 1 in progress)</​del>​ 
 +  * start menu 
 +  * <​del>​level change animation</​del>​ 
 +  * <​del>​Level 2 and level 3 (map setup) in progress</​del>​ 
 +  * End/​beginning cut scene 
 +  * Boss Battle! 
 +  * Multiple sprites for Nunia during boss fight 
 +  * Implement a save file(being able to skip levels) 
 +  * Implement a scoreboard(best times) 
 +  * Circle Nunia as he builds the map as you play! 
 +      -This is done by looping the objects falling out of view on the left side of the screen around to off the edge of the right side of the screen.
-  * Hit detection 
-  * text indicating death 
-  * Death/start over 
-  * End cut scene 
-  * Add a thread for the animation 
Line 99: Line 120:
 + Single screen mouse-click shooter, in the vein of early browser-based flash shooters + Single screen mouse-click shooter, in the vein of early browser-based flash shooters
 +== Shooter game math ==
 +When using a mouse in a shooter game you might wanna use a little math to get your projectile to behave like you want.
 +It's easy to compare the distance of where you clicked to where your character is and divvy up the X and Y however in my instance of the game this made the bullet move faster if you clicked further away. So one way to deal with this is to find the angle of the shot. Using some simple geometry this can be done, SOH CAH TOA, we'll use TOA since we want to
 +change the hypotenuse depending on how fast we want the bullet to move. Tan(Opposite/​adjacent) will give us our angle and from there. Tan(angle) = Sin/Cos you'll have to use sin for y and cos for the x and simply solve from there and you'll get a consistent speed based on your angle and hypotenuse choice. ​
 Will post finalized idea here, working stuff out on paper Will post finalized idea here, working stuff out on paper
 =====DokuWiki wrap plugin===== =====DokuWiki wrap plugin=====
 http://​​_media/​plugin:​wrap_plugin_example2.png http://​​_media/​plugin:​wrap_plugin_example2.png
notes/sysprog.1552578152.txt.gz · Last modified: 2019/03/14 11:42 by bstrong2