Comments (13)
I haven't gotten them to work.
from cigar-client.
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.
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.
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.
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.
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.
you can take your time Mr.Agarian .
from cigar-client.
-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.
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.
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.
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.
@RevengePlayz Just join https://discord.gg/TJpz8a and PM me from there.
from cigar-client.
I think I'll just close this for the time being.
from cigar-client.
Related Issues (20)
- How To Add zoom in/out to your client ? HOT 10
- I NEED HELP!!! HOT 2
- HELP! HOT 1
- where's mobile support HOT 2
- Skins - Hats HOT 1
- map sectore issue!! HOT 1
- Some of the skins don't render.
- which one exactly?? HOT 1
- when is the new protocol ?? :"))) HOT 1
- What is the more efficient client? HOT 1
- how to use wss
- curly brackets needed!
- (Spanish) Cambiar el leaderboard HOT 10
- Mobile client HOT 2
- (Spanish) Como se agrega party? HOT 5
- Border and Sectors HOT 3
- (spanish) como agregar hats? HOT 6
- Issue closed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cigar-client.