Mr Duckling

*intense breathing*

I just ages writing the code for a video game I was making and in the end it didn’t work so now I have to restart Now
(Also when I finish the working code I’ll tell where you can find it

3 years ago   33 回視聴   1 コマ

    保存

  Mr Duckling

I might make a post about it later

3 years ago   返信
  Mr Duckling

The rest didn’t load

3 years ago   返信
  Mr Duckling

// global varibels

// player movement vars
var s;
var dir;
var scl = 20;

// platforms

var b1x = 230
var b1y = 400
var b1width = 200
var b1height = 40

function setup() {
createCanvas(800, 600);
s = new snake()


}

function draw() {
s.update()
s.show()

//
}

function keyPressed () {

if (keyCode === UP_ARROW) {
s.dir (0,-1)
}else if (keyCode === RIGHT_ARROW) {
s.dir (1,0)
}else if (keyCode === LEFT_ARROW) {
s.dir (-1,0)
}
}

function snake() { //including game stages

this.x = 800

3 years ago   返信
  Mr Duckling

hey can some one help me out
I am trying to implement gravity and collisions but I cant find a way to do so
so if any one knows of to use something like p5 or any other type of JavaScript library can you pls implement for me
heres the code
(also can you make it so when you click up arrow it jumps(also if you steal this code I will come for you))
(btw im going to make another comment were the code will be because the maximum amount of letters you can put in a comment is 1000 and this program is over 1000)

3 years ago   返信
  Mr Duckling

btw i just finished the wip of the basic platform game
i haven't implemented the gravity or the collisions but now im about to do that and it should be done (btw i still haven't completely Finnish the stage design so yeh(also if i want to add other stages for the platform instead of one i would have to implement a teleport system to go to the other stage so yeh that's going to be hard(also this has taken me allmost 100 lines of code and like 3 hours taken out of my life and i have only done like 7% of the game so yeh... this is going to take along time )))

3 years ago   返信

8件すべてのコメントを見る

コメントするにはログインが必要です ログイン

このユーザが投稿した他のアニメ

アプリをダウンロード

アプリでアニメを描いて投稿しよう!


Get it on Google Play