Skip to content

Instantly share code, notes, and snippets.

View janeoa's full-sized avatar
🦐
йа-креведк

Asset Malik janeoa

🦐
йа-креведк
  • Kazakhstan
View GitHub Profile
@janeoa
janeoa / main.go
Last active June 27, 2021 00:35
Tappable Circle does not appear but is tappable
package main
import (
"image/color"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/canvas"
fatih "github.com/fatih/color"
@janeoa
janeoa / code4.js
Created February 24, 2021 16:33
breakout
class brick {
constructor(x, y) {
this.x = x;
this.y = y;
}
destroy(){
this.x = 10000000;
this.y = 10000000;
}
draw(){
@janeoa
janeoa / index.js
Created February 23, 2021 13:56
asdf
var ball = {
x : 150, y : 200,
dir : {
x: 1, y:1
}
}
var wall = {x: 400, y:400}
var score = 0;
@janeoa
janeoa / index.js
Created February 22, 2021 16:07
pong на одного игрока
var wall = {
x : 400,
y : 400
}
var player = {
x : 0,
y : 0,
width : 10,
height : 60
var pos = [0,0]
var dir = [1,1]
var vel = 5
let bou = [600, 400]
class Ball {
constructor() {
this.x = random(bou[0]);
this.y = random(bou[1]);
this.diameter = 80;