New function: draw_array()

Ideas for Game Editor evolution.

New function: draw_array()

Postby Game A Gogo » Tue Sep 27, 2011 2:35 pm

Currently, drawing images with for loops and putpixel and painfully CPU demanding, limiting our (Maybe mostly mine...) creativity in games.
Imagine having great effects like gradual fuzziness being drawn very quickly with codes!

Perhaps allow us to draw a whole array at once
Code: Select all
draw_array(unsigned int Width,unsigned int Height, unsigned char Red,unsigned char Green, unsigned char Blue, unsigned char Alpha)

Red,Green,Blue and Alpha would be arrays

exemple would be:
Code: Select all
unsigned char IMG[4][128][128];

of course, I can create a function in global code that would do this, but the CPU processing is very painful.
Like I noticed distance(x1,y1,x2,y2); takes almost half the CPU processing needed than doing sqrt(pow(x2-x1,2)+pow(y2-y1,2));
so having a GE function would most likely increase performance!
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: New function: draw_array()

Postby SuperSonic » Tue Sep 27, 2011 10:35 pm

That would be cool :D
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
Posts: 1444
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: New function: draw_array()

Postby lcl » Fri Sep 30, 2011 6:11 pm

That'd be very useful! :)
User avatar
Posts: 2286
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 271 Give a positive score

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest