GithubHelp home page GithubHelp logo

game-project's Introduction

The Game Project 2a โ€“ Game character

Use p5 drawing functions such as rect, ellipse, line, triangle and point to draw the different states of your game character.

Write the code so that your character appears inside the box for each state.

IMPORTANT: For each box the variables gameChar_x & gameChar_y are set to the bottom center of the box. You must combine these variables with arithmetic to determine the position of each shape that you draw. This will later allow you to adjust the position of your game character.

Each state is worth two marks:

//standing front facing = 2 //jumping facing forwards = 2 //walking left = 2 //walking right = 2 //jumping left and jumping right = 2

0 marks = not a reasonable attempt 1 mark = attempted but it's messy or lacks detail 2 marks = you've used a selction of shape functions to create your game character

WARNING: Do not get too carried away. If you're character takes more than 5 lines of code to draw then you've probably over done it.

** Only submit your sketch.js **

game-project's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.