Search found 355 matches

by datwill310
May 30, 2017 23:33
Forum: Community Discussion
Topic: How should I teach Computer Programming?
Replies: 10
Views: 1244

How should I teach Computer Programming?

Hi all, I guess this is more of a question for a community such as StackExchange, but I would like to have an idea on how to teach the basics of computer programming to somebody. Of course, I'm all for self-learning; this is and still is the main way I learn and develop as a programmer. However, me ...
by datwill310
May 28, 2017 9:54
Forum: Projects
Topic: Object-Oriented GUI Library
Replies: 79
Views: 9945

Re: Object-Oriented GUI Library

Makoto WATANABE wrote:Dear datwill310

I am very interested in the Object-Oriented GUI Library project.

Thanks for the feedback!
by datwill310
May 27, 2017 1:32
Forum: Linux
Topic: Erasing the Windows logo key
Replies: 9
Views: 2121

Re: Erasing the Windows logo key

The windows key, and the "menu" key are quite useless in my opinion. I don't really know who had the idea first to add them around. To the contrary, the keys for jumping to start and end of line are ultimate for the productivity, but they often are in blue on keyboards (Fn, you know when ...
by datwill310
May 27, 2017 0:46
Forum: Projects
Topic: Object-Oriented GUI Library
Replies: 79
Views: 9945

Re: Object-Oriented GUI Library

Hi just a little message saying that this project has not died yet, it's just that I will be busy with other projects for the next several months now (yes, I will finish that game I've been talking about!), so the OGL will be pretty much in a sort of hibernation. Does anybody find use out of it? Or ...
by datwill310
May 25, 2017 19:17
Forum: Game Dev
Topic: Update???
Replies: 6
Views: 1473

Re: Update???

I will try to update in the next following months. Having troubles juggling my interests and work, will make a big move in the near future that will hopefully allow me to have a better life balance. I don't think there are some major games I missed, thought. Although I missed to update the website ...
by datwill310
May 25, 2017 16:56
Forum: Beginners
Topic: How do I clear an image?
Replies: 19
Views: 1363

Re: How do I clear an image?

How do I make an image all one colour when there are lots of colours within the image (therefore I can't use paint), and without being slow (using line and drawing rectangle over entire image which gets slow with large ones, and doesn't work with my example because it's like drawing a rectangle in ...
by datwill310
May 25, 2017 16:13
Forum: Beginners
Topic: How do I clear an image?
Replies: 19
Views: 1363

Re: How do I clear an image?

A Sub clearing an image: Sub CLR_IMG(ByVal pimg As Any Ptr, ByVal wth As Long, ByVal hgt As Long) Dim As ULong clr = &h00FF00FF For y As UInteger = 0 To hgt For x As UInteger = 0 To wth Put pimg, (x, y), clr, PSet Next Next End Sub Thanks for the help MrSwiss!
by datwill310
May 25, 2017 15:48
Forum: Beginners
Topic: How do I clear an image?
Replies: 19
Views: 1363

Re: How do I clear an image?

Perhaps try with: dim as ulong ptr row = cast(ulong ptr, cast(ubyte ptr, graphic)+sizeof(fb.IMAGE)+y*graphic->pitch) Thank you :) it works! My approach is slow though :|, at least when I run it (I'm dealing with very large images, thousands of pixels). Do you know of anyway to clear the screen whic...
by datwill310
May 25, 2017 15:34
Forum: Beginners
Topic: How do I clear an image?
Replies: 19
Views: 1363

Re: How do I clear an image?

fxm wrote:What is the type of the pointer "graphic"

fb.IMAGE buffer, it is a pointer.
by datwill310
May 25, 2017 15:32
Forum: Beginners
Topic: How do I clear an image?
Replies: 19
Views: 1363

Re: How do I clear an image?

MrSwiss wrote:2) replace RGBA macro, with pre-set (ULong) Color (&h00FF00FF), aka: magic-pink.

Yes I have tried using the mask colour but sort of semi-alpha pixels can have pink still in them when I used trans.
by datwill310
May 25, 2017 14:59
Forum: Beginners
Topic: How do I clear an image?
Replies: 19
Views: 1363

How do I clear an image?

Warning: noob question alert. How do I make an image all one colour when there are lots of colours within the image (therefore I can't use paint), and without being slow (using line and drawing rectangle over entire image which gets slow with large ones, and doesn't work with my example because it's...
by datwill310
May 25, 2017 13:59
Forum: Game Dev
Topic: Large images - speed issues SOLVED
Replies: 8
Views: 872

Re: Large images - speed issues

Another Tip: reduce Color to 8bit (aka: palette), to gain more speed ... (reduction of IMG size to 1/4, compared to 32bit Color) Most every improvement comes at a price ... You're right about the speed improvement o_O, however, the costs are too high for me to take this route: 1. 8-bit does not hav...
by datwill310
May 25, 2017 13:39
Forum: Game Dev
Topic: Large images - speed issues SOLVED
Replies: 8
Views: 872

Re: Large images - speed issues

UPDATE! I have found the issue. It was not with drawing the stage graphic. It was to do with drawing the background. Just tried playing without drawing the background with large image and everything runs smoothly! I use this statement to draw the background onto the graphic: put graphic, (0, 0), bac...
by datwill310
May 25, 2017 13:28
Forum: Game Dev
Topic: Large images - speed issues SOLVED
Replies: 8
Views: 872

Re: Large images - speed issues

The size of the stored image shouldn't affect the speed of the put statement used as you say you do. Do you mean it scrolls slow? Do you scroll it with the keyboard? Try this and see how fast it moves. 1. Scrolling is affected by this, but I really notice the speed difference with moving my main ch...
by datwill310
May 25, 2017 12:40
Forum: Game Dev
Topic: Large images - speed issues SOLVED
Replies: 8
Views: 872

Re: Large images - speed issues

Thanks guys and will experiment! EDIT: :/ hmm, speed is not improving. This is making me think something else is wrong... When I use a 1024 wide stage graphic, speed is pretty fast, jumping straight up and landing on the same platform takes approx. 0.95 seconds . When I use a 3072 wide stage graphic...

Go to advanced search