Posts

FarmVille Clicker is Open Source now!

I opened FarmVille Clicker sources http://xp-dev.com/svn/MaxSmile -FarmVilleClicker/

What is the most difficult job you can think of?

to be killer If sky is blue how does it feel O_o ??

Lightening Bolts on C#

Image
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace LighteningBoltsCS {     public partial class DemoForm : Form     {         public DemoForm()         {             InitializeComponent();         }         private Pen pen;         private Graphics g;         private Random random = new Random();                 private void DemoForm_Paint(object sender, PaintEventArgs e)         {             g = e.Graphics;             pen = new Pen(Color.White);             int cnt = 2;             for (int i = 0; i < cnt && checkBox1.Checked; i++)                 fracture(checkBox1.Left, checkBox1.Bottom, button1.Left, button1.Top, 4);             for (int i = 0; i < cnt && checkBox2.Checked; i++)                 fracture(checkBox2.Left, checkBox2.Bottom, button1.Left + button1.Width/2, button1.Top, 4);             for (int

Lightening Bolts on C++

void line(double x1,double y1,double x2,double y2) {     Iw2DDrawLine(CIwSVec2((int)x1,(int)y1),CIwSVec2((int)x2,(int)y2)); } void fracture(double ax,double ay,double bx,double by,int k) {     double bxax=(bx-ax)/5;     double byay=(by-ay)/4;     double cx=ax+bxax;     double cy=ay+byay;     double dx=bx-bxax;     double dy=by-byay;     double dsv=sqrt(bxax*bxax+byay*byay);     double ndc=atan2(dy-cy,dx-cx+0.01);     double ex,ey;     if (IwRand()%2) {         ex=cx+cos(-M_PI/3+ndc)*dsv;         ey=cy+sin(-M_PI/3+ndc)*dsv;     } else {         ex=cx+cos(M_PI/3+ndc)*dsv;         ey=cy+sin(M_PI/3+ndc)*dsv;     }     if (k>1) {         fracture (ax,ay,cx,cy,k-1);         fracture (cx,cy,ex,ey,k-1);         fracture (ex,ey,dx,dy,k-1);         fracture (dx,dy,bx,by,k-1);     } else {         line (ax,ay,cx,cy);         line (cx,cy,ex,ey);         line (ex,ey,dx,dy);         line (dx,dy,bx,by);     } }

'cos what's the use?

'cos what's the use? Answer here

FarmVille Clicker

Image
Current version DOWNLOAD  Current version is v3.03. Changed the size of the net again. Аpplication can check updates itself ;) Problem with file share hosting solved! History Once upon a time, my wife invited me to play a game on facebook... it was Zynga's FarmVille  :) So, after a while of playing, our farms expanded and we noticed it was becoming monotonous. Imagine, even a small farm like 10x10, harvesting (100 clicks), then plowing (an additional 100 clicks) and then finally, seeding (yet another 100 clicks more) - totalling 300 clicks! One day my wife said to me: "You are a lazy C++ programmer! Can't you do anything with this?". That day, I created the first beta version. It wasn't very complicated and it didn't click very well, like it does today, but it worked. My wife is a graphics designer and has a lot of free time ;) - she made for me, this cool design, which is almost the same as todays third version of the program. How it works It is