Giter Site home page Giter Site logo

how abt the mini map about cigar-client HOT 13 CLOSED

agarian avatar agarian commented on July 19, 2024
how abt the mini map

from cigar-client.

Comments (13)

Agarian avatar Agarian commented on July 19, 2024 2

I haven't gotten them to work.

from cigar-client.

Agarian avatar Agarian commented on July 19, 2024 1

Here's what I've found:

  • The handle drawing function at the top is not needed, as the border drawing can be a function on it's own.
  • The vars minX, minY, maxX, maxY are non existant, or just lost in the simplified code.
  • Using window.v72.dimensions is nowhere near the correct way to add this in.
  • I'm not familiar with window.v72.beforeDraw, so I'm not sure what that does.
  • drawBorders should be changeable by a checkbox/option, easy enough to implement.
  • The draw() function should be in a function that renders all that appears on the screen (still need to find it).
  • Funny bug with the stats menu, it appears at the top left corner of the screen instead of centered.

from cigar-client.

Agarian avatar Agarian commented on July 19, 2024 1

At this point, I've managed to find all the old functions and vars from the old client, yet I still can't get this feature to work, I don't have high hopes for it too be honest.

from cigar-client.

Agarian avatar Agarian commented on July 19, 2024

That option is already in my client dude...

EDIT: I see what you mean, since you have a v72 client of your own (pretty cool). I'm absolutely unsure where to start, mainly due to the fact that the code is compressed/simplified, so I really have no reference to old functions or variables from older clients. So I will look into this, but don't get triggered if I can't do it lol

from cigar-client.

SAV-404 avatar SAV-404 commented on July 19, 2024

i actually was trying with this code which it didn't work..i don't know why

var drawBorders = true;
function startScript() {
handleDrawing();
}

function handleDrawing() {
window.v72.beforeDraw = function() {
try {
draw();
} catch(e) {}
};
}
function draw() {
minX = window.v72.dimensions[0];
minY = window.v72.dimensions[1];
maxX = window.v72.dimensions[2];
maxY = window.v72.dimensions[3];
if (drawBorders == true) {
ctx.save();
ctx.strokeStyle = "#000";
ctx.lineWidth = 20;
ctx.beginPath();
ctx.moveTo(minX, minY);
ctx.lineTo(maxX, minY);
ctx.lineTo(maxX, maxY);
ctx.lineTo(minX, maxY);
ctx.closePath();
ctx.stroke();
ctx.restore();
}
}
take a look on the game code if you need to : https://github.com/SAV-404/V72-Client/blob/master/html/agar.io.js

from cigar-client.

Agarian avatar Agarian commented on July 19, 2024

I know what hex color codes are, though I'm on mobile, so I can't really look into the code right this instant.

from cigar-client.

SAV-404 avatar SAV-404 commented on July 19, 2024

you can take your time Mr.Agarian .

from cigar-client.

SAV-404 avatar SAV-404 commented on July 19, 2024

-The minX, minY, maxX, maxY vars are in the game code,look: window.v72.dimensions= [-7071.067811865476, -7071.067811865476, 7071.067811865476, 7071.067811865476];.
may in the line 13

  • i agree with you about window.v72.beforeDraw :) .

-using if else statement are enough to make a changeable option.

  • the stats menu...,i'm really lazy to fix it ;-; .

i fixed a lot on this client( the one i have)...i made a skin's shop looks like the original game shop (not really but yea)...i was bored about the disappearance of the cell's round line so i had to make it visible even when the cell get bigger (no more disappearance)...easy stuffs like zoom/hidegrid options...but these god damned borders won't work...i hope you could help.

thanks for helping !!!

from cigar-client.

Agarian avatar Agarian commented on July 19, 2024

Just know that window.v72.dimensions is not those vars. I have found the actual vars here
I thought you should know, premium skins don't work on that client.

from cigar-client.

SAV-404 avatar SAV-404 commented on July 19, 2024

yea thanks for the information!!!...and all agario's skins are working on that Client cz of the script in skin.js

from cigar-client.

RevengePlayz avatar RevengePlayz commented on July 19, 2024

Hey, i really need help @Agarian could you please add me on discord Revenge#5285 so we can chat there i have a few problems which im really struggling on.It would be the best if you could do this as soon as possible and if you dont have discord sign up here: https://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwj8ktm95-nYAhXrK8AKHaAdASIQFggpMAA&url=https%3A%2F%2Fdiscordapp.com%2F&usg=AOvVaw2mEPm0IN1VJOrjVGlu_Eqi
Thanks Revenge

from cigar-client.

Agarian avatar Agarian commented on July 19, 2024

@RevengePlayz Just join https://discord.gg/TJpz8a and PM me from there.

from cigar-client.

Agarian avatar Agarian commented on July 19, 2024

I think I'll just close this for the time being.

from cigar-client.

Related Issues (20)

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.