Search found 355 matches
- May 30, 2017 23:33
- Forum: Community Discussion
- Topic: How should I teach Computer Programming?
- Replies: 10
- Views: 2355
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 ...
- May 28, 2017 9:54
- Forum: Libraries & Headers
- Topic: Object-Oriented GUI Library
- Replies: 79
- Views: 19265
Re: Object-Oriented GUI Library
Thanks for the feedback!Makoto WATANABE wrote:Dear datwill310
I am very interested in the Object-Oriented GUI Library project.
- May 27, 2017 1:32
- Forum: Linux
- Topic: Erasing the Windows logo key
- Replies: 9
- Views: 4897
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 ...
- May 27, 2017 0:46
- Forum: Libraries & Headers
- Topic: Object-Oriented GUI Library
- Replies: 79
- Views: 19265
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 ...
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 ...
- May 25, 2017 16:56
- Forum: Beginners
- Topic: How do I clear an image?
- Replies: 19
- Views: 3139
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 ...
- May 25, 2017 16:13
- Forum: Beginners
- Topic: How do I clear an image?
- Replies: 19
- Views: 3139
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!
- May 25, 2017 15:48
- Forum: Beginners
- Topic: How do I clear an image?
- Replies: 19
- Views: 3139
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...
- May 25, 2017 15:34
- Forum: Beginners
- Topic: How do I clear an image?
- Replies: 19
- Views: 3139
Re: How do I clear an image?
fb.IMAGE buffer, it is a pointer.fxm wrote:What is the type of the pointer "graphic"
- May 25, 2017 15:32
- Forum: Beginners
- Topic: How do I clear an image?
- Replies: 19
- Views: 3139
Re: How do I clear an image?
Yes I have tried using the mask colour but sort of semi-alpha pixels can have pink still in them when I used trans.MrSwiss wrote:2) replace RGBA macro, with pre-set (ULong) Color (&h00FF00FF), aka: magic-pink.
- May 25, 2017 14:59
- Forum: Beginners
- Topic: How do I clear an image?
- Replies: 19
- Views: 3139
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...
- May 25, 2017 13:59
- Forum: Game Dev
- Topic: Large images - speed issues SOLVED
- Replies: 8
- Views: 2000
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...
- May 25, 2017 13:39
- Forum: Game Dev
- Topic: Large images - speed issues SOLVED
- Replies: 8
- Views: 2000
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...
- May 25, 2017 13:28
- Forum: Game Dev
- Topic: Large images - speed issues SOLVED
- Replies: 8
- Views: 2000
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...
- May 25, 2017 12:40
- Forum: Game Dev
- Topic: Large images - speed issues SOLVED
- Replies: 8
- Views: 2000
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...