How To Make Sprites

This page is powered by a knowledgeable community that helps you make an informed decision. There you click MC paint,or just paint. I'm not big in video/image edition but maybe there is a filter or program that can automatize transforming the green background into transparent, bitwise is only transforming the uniform chroma color 0x00FF00FF into 0x00000000, or. Reading your post, I was unclear exactly what you were asking. if you want to make giants or something, yeah it wont happen. Set up your own scenes with text, mail them, save them or print them. Several of the pygame examples (like "chimp" and "aliens") have been updated to use the sprite module. 3 update was a great big door swinging open for 2D game developers, with many new tools and ways to approach 2D game development in this already powerful engine. This simple method includes my ultimate guide. Well avoid using the console as the. 5sec~2sec) After a short moment I want to make the sprites invisible again. Get the latest from WonderHowTo on Facebook , Twitter , Pinterest , and Flipboard Master your Smartphone. Drag the WHEN GREEN FLAG CLICKED and SET EFFECT TO blocks into the Scripts Area. Sensing blocks can be added to the sprite as Wall Sensors in order for the sprite to complete missions. Note: If you have a clear vase and want the water to remain clear, use a clear soda, like Sprite or 7-Up. "Use Events to Make the Sprite Jump" is part of the "Platform Game" activity from CS First, one of the many Google initiatives focused on computer science education. You can tell it to move, turn, and check whether it has bumped into another sprite. Best Answer: A sprite is like a mob (moveable object block). Draw your tile. Club Deadspin. Nothing happens if it was already instanced, but if the tile map is an asset reference, it is cloned to make a unique instance. Here are three ways to do that, using a little arrow graphic. Note that in this sketch, I want about the same height but a tad wider. Adjust the heat to avoid splatter, allow the Kielbasa to cook in the Sprite, and stir occasionally. I will show you how to animate your 2d sprite in a 7 different action movements step-by-step. Ever wondered how use CSS Sprites in your own web projects? Today, Tom Green (our resident Adobe expert) is going to walk through how to create CSS sprites in Fireworks and then put them to use in Dreamweaver. Shake and enjoy my friend because it taste great and goes down smooth. I decided to whip up a batch to show you just how easy this Chex snack mix is to make. Sensing blocks can be added to the sprite as Wall Sensors in order for the sprite to complete missions. Compression without sacrificing quality. Sprites are red streaks of light that appear in very quick bursts that can easily be chalked up to a trick of the eye. Then you’ll need a sprite: a pixel art character, animated and in different stances. Fill in all the basic colors (preferably with the lightest. Step 2: Creating Panels Open a new window in MS Paint and draw a single rectangle. Now you need to get some real Pokemon Sprites. The ‘Sprite Editor’ as well as the ‘Sprite Texture Type’ are new to Unity 4. The grid is the thing that tells the player "You're not in an actual worldYou're just walking around on a bunch of tiles. naturelover87 wrote: I don't know how to make my sprite jump forward. This article describes how to create a sprite sheet using the HTML5 Photoshop Sprite Sheet Creator script in Adobe Photoshop which combines multiple Photoshop layers into a single image. It will be built around advanced image deforming, bone and curve manipulation, and lots of other completely new features to help game creators make the most impressive visuals as easily as possible. We'll miss being home to millions of wonderfully weird and original videos, creators, and fans. Make your offerings to Saint Gygax, then gird yourself for this harrowing list of the most controversial and notorious RPGs ever published. In this experiment I use this to put armor on the sprite. # Draw all the spites all_sprites_list. Sprite Maker allows you to capture a 3D model and make a sprite of it. If you are used to working in 3D, Sprites are essentially. A web page with many images can take a long time to load and generates multiple server requests. Or you will get different lighting for your sprite in different angles. The sugar in the soda will make the blossoms last longer. Let's make a. With these updates we can create our Coin Tap Game; let's give it a try!. The Austin-Healey Sprite Mark II and MG Midget – 1961 to 1964. For example a gun in case you want to make a weapon. Enjoy! Enjoy! For many of us, Super Mario Brothers was the first game that made us drop our jaws in gaming excitement. To make it easier for you to experiment with sprite creation, you can use one of the pixel editor tools listed below. Just select a shade darker on your color palette. No fiddling in Photoshop, no manual assignment of CSS styles, no long-winded setups, SpritePad makes creating spritemaps as easy as writing your next e. Makes the tile map asset pointed to by this component editable. I can try to give some tips. #FilteredFuture. Note: If you have a clear vase and want the water to remain clear, use a clear soda, like Sprite or 7-Up. Be ware in which order your sprites get painted and group sprites to reduce the amount of draw calls. Make it longer than it is wide. Note that in this sketch, I want about the same height but a tad wider. And thanks for your time. Started by greg886 May 29 2013 02:33 PM. If a sprite is hidden, Scratch won't detect when it touches other sprites, but you can still move a hidden sprite's position on the Stage, so it's in a different place when you show it again. A sheet is basically an image file with a bunch of images, representing one (or several) animation sequence. The solution for this scenario is called image sprites, which combine several small images into one image so that the web page can display significantly faster. Click on the image to enlarge. The point of series this is to have a lot of cool animation running in Sprite Kit for a non game UI. How to create animated sprites off of a sprite sheet in GameMaker. Once you have found a sprite right click on it and click save as image and then put it into a file that is easy to locate. I use a program,Pro Motion, to make the sprites, but that program does not support 3D. TexturePacker creates multiple image and data files if not all sprites could be packed into a single texture. In the script example below a new Sprite is displayed when the button is pressed. A sprites sheet (or sprite strip) is a single image file containing multiple other images, for example animation frames. Reguirements: Graphic Program that can handle layers and transparency. Every sprite will be 24x24 pixels. You may want to make a retro video game or help with making the graphics for one. Make a game with colored squares for all the sprites and try out different screen resolutions and sprite sizes until it feels right. It is not uncommon for games to have tens to hundreds of sprites. Note: It also returns false, if the sprite’s texture is null or if the given position is invalid. Why make sprites if there are programs to make frames with guides and everything for mugen,im aware of this because that program was made to take advantage of the HD properties of mugen 1. Having a look over Slant, I could have the courage to make a top 5 software used for creating your own sprites. x: The left-to-right place on the LED screen where the sprite will start out. Using our unique software you will be creating stunning Graphics Tiles Artwork quickly and easily. Macromedia Flash 8 Pro Tutorial- How To Make A Sprite Animation. No matter how much gravy. Understanding how to use image sprites. The pictures must have a transparent background (sprite) so that when the pictures move in my application the background picture does not change. But I do not know how to create these sprites. Take cubes out of tray and put into your sprite! You'll taste the difference as you slurp!. I'm making a detective game and I want my player to see the hidden sprites in the room only when they press space bar for a short moment. well if you go to google image or any other prite sharing websites neimad is a great sprite maker and go to scratch i has a program to make the sprte move and you can make a game on there. I have composited my sprites to build a monster truck with customizable bumpers, cabs, spoilers wheels etc. Several methods to remedy this after cooking only mask the flavor. Fill in all the basic colors (preferably with the lightest. The information here is sourced well and enriched with great visual photo and video illustrations. Listen or download How To Make Sprite Soda Gum music song for free. I'm making a detective game and I want my player to see the hidden sprites in the room only when they press space bar for a short moment. SpritePad is your free and easy-to-use web app for creating CSS spritemaps. One will need three broadcasts for this screen:. How to make homemade Sprite using nothing but soda water, lemon juice, lime juice, and simple syrup by Drinks Made Easy. Photo by Megan Peterson Step 5. cobble them together from pieces of existing sprites). Create pixel art, game sprites and animated GIFs. I've also tweaked the lighting and rendering properties a little. Title screens usually consist of one backdrop (the title and design) and a sprite (the "start" button). I was wondering what was used in this game to make all the cool sprites. A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community. The grid is the thing that tells the player "You're not in an actual worldYou're just walking around on a bunch of tiles. Before the animation, we'll. Now, let's look at the reverse – you’re mixing a higher flash, heavier fuel into a base fuel (gasoline) that’s lighter, more volatile and burns at a much lower flash temperature. ) Please support me by checking out my game HERE. Always remember to put When Flag Is Clicked in order for the script to work. For classical front view games there's not this much to take into account. Save+Import has 'pure white' backgrounds. This means you can't zoom them very easily. How make lean with Nyquil has become a popular subject because many adults are trying to get its pleasure in different ways and with different flavors. Go through Google image search and type in something you think you’d want to make in Perler bead form. The greatest thing you can do when making a grid of tiles, is to make it look like it doesn't exist. There aren't "blobs" of pixels (like when you hold down the mouse button and make a curve), and there's no anti-aliasing on the lines (like you get when you draw a character, color it, then shrink it down to sprite size). Drag the WHEN GREEN FLAG CLICKED and SET EFFECT TO blocks into the Scripts Area. The sugar in the soda will make the blossoms last longer. Just like Coke, Fanta, Seven-Up, Dr Peppers, etc. It would be located in the barrel of the weapon. Sprite sheets are used in all kinds of software and are commonly used in web development for framed animation. The picture I started with was relatively small to begin with, so it doesn't make a huge difference with this sprite, but if you're shrinking down from a pic that's like 800 pixels tall (right after you scan it in, you might get a pic that size), it'll be more noticable. Prepare and use them for your animations. Take the glass and rub the edge on a lemon, then dip the rim in sugar. Macromedia Flash 8 Pro Tutorial- How To Make A Sprite Animation. Tutorials » Tips for Putting Together a Sprite Sheet Hello, and welcome to my tutorial. We are drawing more than one sprite on the canvas now, so instead of clearing the canvas when we render a sprite we need to we need to clear the canvas at the beginning the game loop. Listen or download How To Make Sprite Soda Gum music song for free. Anyways, the guy in the video uses sprites that he had previously done, so I never got a chance to see how he did them, however I do believe he is using photoshop to make the sprites. Complicated backgrounds can make it difficult to "cut out" the image of the thing we want from the rest of the picture. Sprites are meant to be mobile. A pixel art hobbyist's guide to creating 2D game sprites in the style of Capcom's 'Street Fighter' series using quick and easy shortcuts. In modern web design, buttons are used not only on forms but also as visual aids that draw attention to important elements of the page. Remember, you can delete sprites with the scissors located on the toolbar. Animations are critical to a fun experience though, so it's really important that we implement it. Theres a difference between Copy+Pasting a Sprite and Save+Importing a sprite. You can then use scripts to make your backdrops and sprites change and move. Figuring out how to make the score display on the main window is part of Lab 14. For years, I've been using a game creation program that used a language strikingly similar to C++ and that used a visual map editor where I could drag and drop terrain, objects, sprites, etc. If for some reason you would like this thread re-opened, please report this post and leave a message why. Photo by Megan Peterson Step 5. An editor for creating sprite sheets from existing sheets or from frames. Every time I make my sprite sheet and try to make an animated sprite in TGB. Add the sprite texture to your project as normal, with Type: "Sprite" and Sprite Mode "Single" (will not work if set to Multiple). Click on the "Create a Sprite" icon at the top of the Game Maker page and then select "Load Sprite" to pick a selection from the Game Maker catalog. keydown - respond to a keyboard key. How to build a game like Flappy Bird with Xcode and SpriteKit matt in Game Development , Software Engineering When I heard about Flappy Bird for the first time, the hype was already in its final phase: developer Dong Nguyen had decided to pull the app from the stores in “ 22 hours from now “. Adjust your zoom to 100 percent. Y can be anywhere from 0 to 56, X should be 0 to 11 (It draws to every eighth pixel). The point of series this is to have a lot of cool animation running in Sprite Kit for a non game UI. daniel120 Guest. Finally Javascript is used to move the ascii version of the sprite in steps to create the animation. Balancing the sweet and sour flavors in a homemade Sprite will customize the beverage to suit your palette. Go to Pokemonelite2000. Then you'll need a sprite: a pixel art character, animated and in different stances. As the topic is an art form all opinions presented are subjective. You will locate a sprite by finding a game and then clicking on it and then scrolling down to find the sprites from their game that you want to use. as far as i know, there's no way to make the game use bigger sprites, so you'll need to make smaller sprites, if that's possible. Title screens usually consist of one backdrop (the title and design) and a sprite (the "start" button). This way your web pages make fewer HTTP requests. However PaintDotNet is FREE and it is EASY to use. Create Sprite. As for all Paradox games, Hearts of Iron IV is moddable to a great extent. The popular taste of Sprite can be simulated with all natural ingredients you may already have in your kitchen. Skip to main content. sprite in your own game. It only needs seconds: Drag & drop your images onto the grid and have it immediately available as one PNG + CSS code. Make your offerings to Saint Gygax, then gird yourself for this harrowing list of the most controversial and notorious RPGs ever published. The ball will always bounce back when hitting the wall to the appropriate direction. After selecting the background with the Quick Selection Tool,. Remember, you can delete sprites with the scissors located on the toolbar. Creating a 2D Sprite Drawing your first sprites to the screen. Outline the highlights of your sprite with a color lighter than the base colors, but darker than the highlights to create shadows. Now, let's look at the reverse – you’re mixing a higher flash, heavier fuel into a base fuel (gasoline) that’s lighter, more volatile and burns at a much lower flash temperature. Then you’ll need a sprite: a pixel art character, animated and in different stances. A web page with many images can take a long time to load and generates multiple server requests. Or, you can just edit it manually if you know how; it's plain-text. I'm not a good artist, so I can't make my own sprites or my own backgrounds. Below is an example of a simple script for a platformer sprite. Hello, we provide concise yet detailed articles on "Lean Choices: How To Make Lean With Nyquil Sprite And Jolly Ranchers" topic. Either will. Download Stella - Atari 2600 Emulator for free. Each "layer" is composed of multiple sub-layers. When you download the picture of white tubby(In the infobox above),you want to right click on it,and then hover over the button "open with". How to move and turn a sprite. make up your own storylines with them. Many thanks to all of our many beta testers. Creating a 2D sprite and getting it displayed on the screen is a very quick and painless process using the XNA framework, so let's get started!. And that's actually all we need to make a moving game sprite! Make sure you've Grouped (Command-G) all the parts properly in the Layers panel, keeping your work neat and consistent. The following code is C#. A sheet is basically an image file with a bunch of images, representing one (or several) animation sequence. For the actual upscaling process, I'd recommend Photoshop. It only needs seconds: Drag & drop your images onto the grid and have it immediately available as one PNG + CSS code. if you want to make giants or something, yeah it wont happen. An image sprite is a collection of images put into a single image. So I was wondering if anyone knew a program that you can easily make good looking sprites. If you've ever wanted to write a script that could make your sprite flash a different colour or turn them transparent in Unity, there's an easy way. Every sprite will be 24x24 pixels. But of course, unless you're working in SVGA, a sprite this huge is probably not going to be used (it'd take up way too much of the screen). How to display Sprite/image in c++? pavan7544. This is harder to do with a complex sprite sheet because the sprites can be different sizes and are often placed randomly throughout the image to make the best use of space. Front or side view. The Diagnostics power allows the sprite to evaluate the inner workings of an electronic device. Remember that this is but one way to create new sprites, and we have just started out. If you want to flip or mirror, set the corresponding variable to -1. But, the OR, AND, and masked sprite types completely destroy the background. Make sure you save your file before doing the next part Step 3. You draw an outline and then fill in the squares. After selecting the background with the Quick Selection Tool,. How can I make a moving sprite in a platforming game with Game maker 8? I am making a platforming game using Kirby superstar ultra sprites. actually the spr_indicator is just a sprite and the level object sprite changes to spr_indicator when the level is newly unlocked. I just finished the paper 2d tutorials on youtube, except for the very last video. It also supports recording and capturing particle effects and animations and creates a sprite sheet for those. With these graphics, you can create an infinite number of special effects for web pages and simple computer games. Understanding how to use image sprites. webgl animation / cloth animation / keyframes animation / skinning / blending animation / skinning / morph animation / multiple camera camera / array camera / cinematic camera / logarithmicdepthbuffer clipping clipping / advanced clipping / intersection clipping / stencil decals depth / texture effects / anaglyph effects / ascii effects / parallaxbarrier effects. A sprite sheet is a bitmap image file that contains several smaller graphics in a tiled grid arrangement. Is each sprite in the sprite sheet drawn by hand, then put together. We’d suggest this is a class level variable as it will be required in your draw method as described below: Sprite Render. XORed sprites, by virtue of the logic of XOR, can be erased merely by being redrawn at the exact same place. s: Monochrome background. 3 update was a great big door swinging open for 2D game developers, with many new tools and ways to approach 2D game development in this already powerful engine. You can use sprites to make your websites load faster, by decreasing the number of HTTP requests your users have to make. How do you make homemade sprite soda? I have to make homemade sprite soda for chemistry. To make it easier for you to experiment with sprite creation, you can use one of the pixel editor tools listed below. Image Sprites. Ever wondered how use CSS Sprites in your own web projects? Today, Tom Green (our resident Adobe expert) is going to walk through how to create CSS sprites in Fireworks and then put them to use in Dreamweaver. For The King of Fighters XIII on the PlayStation 3, a GameFAQs message board topic titled "Do you guys know how they make those hand-drawn sprites?". image_xscale and image_yscale If you set them to 1, you get the correct orientation. # Draw all the spites all_sprites_list. Page 1 of 2 1 2 Next > Davis the Gamer Banned. 2D Video Game Character Animation has never been easier. And so, as the title says, how do I make larger sprite? Please give me detailed description, please. Where did you make the sprite? On most of the programs people use there is an option for background colour. By compiling several graphics into a single file, you enable Animate and. png sprites works because you use pixels to peep onto a restricted area of a larger image. Drop water in to the tray until full. ‎Sprite Pencil is the fastest and easiest way to create and edit sprites and pixel art on the go. Without animation, sprites could be simple images that are rendered with ctx. like everything else, an assload of practice shows. Rotate the content, the characaters that you want to render as the sprites. Animations are critical to a fun experience though, so it's really important that we implement it. make the parts of the character, rig the bone structure and make the character stand on the exactly same place. Sprites, Images, and Pixels. It allows you to play all of your favorite Atari 2600 games again!. Spriter 2 is being built from the ground up to offer a new level of flexibility and ease of use for 2d game animation. For now, you will just make two elements of your collage transparent. I used Manga Studio 5 believe it or not. From this big sprite we can see how all the armor goes and everything. Load the image that the sprite should draw on the screen (recall, needs to be in project's src/Sprites/ directory. Still Spirits Turbo Yeasts have been developed for this purpose. A sprites sheet (or sprite strip) is a single image file containing multiple other images, for example animation frames. To make a Pokemon Sprite, first make sure you have the program 'Paint' and get that up. I use Curvy 3D to make game sprites [example sprites] Animation is made by making copies of the objects and posing them side by side. I want to repeat this image to fill the whole background, so that it looks like this in the end:. In 3d terms, sprites are often painted on "billboards", so that even in a 3d enviornment, they always face the camera. -Depending upon how well you draw, you can use graph paper as a template for pixels. draw(screen) The Group class that all_sprites_list is a member of has a method called draw. In this tutorial, you will learn how to create a base sprite. That often isn't the case with UI. Create pixel art, game sprites and animated GIFs. Save yourself some money and make your own! Just as delicious an none of the extra ingredients the soda companies add. If you use the sprite's X velocity in the counter pattern then you can make your sprite float from side to side as well. We will see how to draw each of five frames one after the other and after we have drawn the last frame, loop back to the first. It also supports recording and capturing particle effects and animations and creates a sprite sheet for those. In this tutorial, you will learn how to create a base sprite. You can tell it to move, turn, and check whether it has bumped into another sprite. This method loops through each sprite in the list and calls that sprite's draw method. The best way to make sure your colors will fit with the SF3 ones are to reference the colors from the original SF3 sprites. I'm decent at drawing, I just don't know /how/, is there some specific program the sprites and all the fansprites are drawn in? I want to make things of this kind of quality. Making fresh lemon-lime soda at home is less expensive than purchasing name brand soda at retail prices. Page 2 of 2 < Prev 1 2. Just a quick video describing how I make sprite art using gimp. How to make a sprite comic (for the noobies) Discussion in 'Fan-Comics' started by Davis the Gamer, Aug 13, 2005. And we know how high in sugar a soda can be. In this lesson, HTML5 canvas is used to read the sprite's pixel data which is then converted to grayscale. Hurt butts should be vacated elsewhere immediately. Disclaimer: This is a guide to different styles of sprites, not the way they are formatted in an image. Take the glass and rub the edge on a lemon, then dip the rim in sugar. Piskel, free online sprite editor. So why make a tile that does? So then we come to the more "complex" grass tilesThe ones that have tons of dots in them. The MMORPG Maker XB Character / Sprite Generator can be used to generate character and sprite sheets for your RPG or MMORPG online game. Fortunately, someone already made a plugin for making sprite sheets, you can download it from here. Update 2/1/14: I have updated this tutorial for Sprite Kit to celebrate the launch of the second edition of the Platformer Game Starter Kit, which is fully updated for Sprite Kit. How to Build a Simple Button with CSS Image Sprites The button is one of the most common elements in the world of the web. It is not uncommon for games to have tens to hundreds of sprites. Create a new LED sprite pointing to the right. After you obtain the medication you want to use about 2-4 oz of syrup mixed with a 12 or 20 oz can or bottle of sprite. A sprite is a single graphic image comprised of pixels that are usually used within games to represent characters, locations, items, and other various objects. To make the alcohol in the first place, you have to ferment special sugars such as dextrose/glucose or Still Spirits Turbo Sugar. A sprite usually refers to a 2d collection of pixels that represents an on-screen entity. Sprite Renderer You're sprite is contained in a component called the Sprite Renderer. ) Please support me by checking out my game HERE. background, characters, impact objects and so on. We will learn the very basics of character animation using my favorite pixel art. This is mah simple guide to making "Franken!Sprites" This just means using diffrent parts from diffrent sprites to make your own and / or edit others. Games to be created using Construct2. Club Deadspin. Given a sprite sheet, I can code game as per the requirements. I use Curvy 3D to make game sprites [example sprites] Animation is made by making copies of the objects and posing them side by side. Create a new LED sprite pointing to the right. How to Animate a Sprite Sheet Using GIMP. Page 2 of 2 < Prev 1 2. SpritePad is your free and easy-to-use web app for creating CSS spritemaps. A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community. both smooth and snap will work I just want the view centered on it Edu Shola , Jul 3, 2016. How do you make good looking sprites? I've been working with scratch and I want to make good looking sprites for my games. Each request will contain the overhead of HTTP headers (including cookies) and the connection's latency. Program: paint. The other is to make a sprite flash invisible for a set amount of time. By default, RPG Maker expects a sprite sheet of a group of characters, which is something I can do when I make more characters. Most of these weapons can be made from the four vanilla tool materials, and each type of weapon has different properties that help with combat in certain situations, such as extended reach, damage bonuses, etc. How to Make Vanilla Ice Cream. You can also use larger empty spaces to show where one section of your sheet ends and another begins. I know the program sonik sprites and I tried it, drawing on the sprites works , but for some reason I don't get a lot of colors to work with, acording to the description of the program on sonic retro it can also import picture , but I don't know how to do that there, it has to do with scripting. Ever wondered how use CSS Sprites in your own web projects? Today, Tom Green (our resident Adobe expert) is going to walk through how to create CSS sprites in Fireworks and then put them to use in Dreamweaver. Prepare and use them for your animations. Yeah, I know that one's marked 2006, but the character didn't exist before 2006, and that's probably the oldest sprite I have, due to the fact that out of hatred and depression, I'd destroy everything I created simply because it didn't meet my brutal standard. Sprite HR5-WH Shower Filter, White - Showerhead Water Filters - Amazon. Well first before anything else draw your sprite or know what you want to make if you are using a base. This will create a reference to a sprite sheet. The following code is C#. Sprites are a popular way to create large, complex scenes as you can manipulate each sprite separately from the rest of the scene. You can see the snack mix I made last Halloween here. This allows for greater control over how the scene is rendered, as well as over how the players can interact with the scene. To make it easier for you to experiment with sprite creation, you can use one of the pixel editor tools listed below. Warning - it is addictive! The sweet and salty combination is hard to resist! If you like this recipe be sure to try Cupid's Crunch Chex Snack Mix, Winter Fun Chex Snack Mix or Leprechan Chex Snack Mix. Macromedia Flash 8 Pro Tutorial- How To Make A Sprite Animation. You can even communicate between. I use white as my alpha color. We usually make unsweetened oat milk, that way we can use it to make savory or sweet recipes, but if you like your milk sweet, add any sweetener you want gently until the milk is sweet enough for you. Go back to the resource manager and click import. We are drawing more than one sprite on the canvas now, so instead of clearing the canvas when we render a sprite we need to we need to clear the canvas at the beginning the game loop.