After 8 months of work, I am proud to present to you my best scratch project to date... Welcome to Arena X, a two player game where the objective is to beat your opponent. Lower the other players health by firing your gun at them. Last man standing wins. Maps: There are currently 3 maps to choose from. The default is map 1, but you can use the left arrow key to switch to map 2 or map 0. More maps coming in later updates, Mechanics: 1: Your gun fires in the direction you last moved in 2: If your bullet hits a block, it gets deleted. 3: your gun has to reload to 10 power before firing again 4: your gun takes 1 second to reaload Controls: Player one controls: WASD to move, F to fire Player two controls: Arrow keys to move, space to fire. Enjoy!
Backstory: Since quitting scratch, I wanted to finish all of the big projects that I poured time into to code. This is the most advanced project I have ever made in scratch. All code by me, and thanks to griffpatch for inspiring this project. This is over a year in the making, so I hope you enjoy! :) How does it all work? MAPMAKING: A more in depth description of how the map works can be found in my project 9 x 9 grid. Basically, a list holds the ids of the map. the id is just what type of block goes in what space. Then, a separate sprite reads the IDs and clones a block to match what type of block the list says goes in that space. The Sprite prints from left to right, and up to down like you would read. Hit boxes: OH BOY THIS TOOK FOREVER TO COME UP WITH! For each player, there is a variable called J that describes the position of the sprite on the map. If the ID of the spot on the list that is J equals 2 (a block the player cant move in,) the move will be reversed along with the J so instantaneously, you dont even see it.