Search found 245 matches

by jalih
Tue Mar 06, 2018 7:18 pm
Forum: GL Galore
Topic: GL Galore rocks!
Replies: 18
Views: 6542

Re: GL Galore rocks!

This small demo with only one moving sprite (the cat) should have more fps. Seems to be an issue of the framework, because for example HollyMan has several moving objects/sprites and runs really smooth with around 20%-24% cpu usage. Ok, the demo has a scrolling playfield but if it doesn't scrolls i...
by jalih
Sun Aug 06, 2017 3:22 pm
Forum: Announcements
Topic: Hollywood plugin for Vim released
Replies: 3
Views: 2300

Re: Hollywood plugin for Vim released

VIM is not an IDE, it is "just" an editor -- but a very powerful one. However, If you do not know VIM and do not attest yourself some kind of nerdyness , you most likely will not fall in love with VIM. However, I will give you a hint why VIM is such an indispensable tool: Why, oh WHY, do those #?@!...
by jalih
Thu Oct 15, 2015 8:10 pm
Forum: Newbie questions
Topic: Prevent a sprite (which follows the mouse) out of a circle?
Replies: 8
Views: 3801

Re: Prevent a sprite (which follows the mouse) out of a circ

@themartian I would like to know how to have an object that rotates around a fixed axis which follow the mouse Not sure, if I understood right... If you need to calculate the angle in a circle (useful, if you want to rotate object towards mouse pointer): x1, y1 ; Center point of the circle x2, y2 ;...
by jalih
Wed Sep 09, 2015 9:23 am
Forum: Wishlist
Topic: return value for iskeydown or waitkeydown
Replies: 6
Views: 3816

Re: return value for iskeydown or waitkeydown

zylesea wrote:I think it would be great if iskeydown and waitkeydown would accept "any" as argument for any key and return the value of the pressed key accordingly.
How would multiple simultaneously pressed down keys get handled? One return value is not enough, you would need a state table.
by jalih
Sun Sep 06, 2015 8:11 pm
Forum: Hollywood bugs
Topic: Add the alternative to CreateKeyDown
Replies: 2
Views: 1441

Re: Add the alternative to CreateKeyDown

Bugala wrote: I am right now looking for something like CreateKeyDown, I just dont know by what name to look it for.
Why not just install event handler and handle "OnKeyDown" or/and "OnKeyUp" events?
by jalih
Tue Sep 01, 2015 6:45 pm
Forum: Newbie questions
Topic: hey there (+ newbie questions)
Replies: 7
Views: 3463

Re: hey there (+ newbie questions)

Arminius wrote: This throws an error "Wrong operator for this type!" in the console. So it'll only take a string here? What did I do wrong?
Error message says it all, you are using "+" operator to concatenate strings (probably due to javascript background). You should be using ".." as concatenation operator.
by jalih
Sat Jul 11, 2015 12:58 pm
Forum: GL Galore
Topic: MakeButton and DoubleBuffer Displays
Replies: 3
Views: 2390

Re: MakeButton and DoubleBuffer Displays

Is it correct, that if I have a DoubleBuffer display I cannot use MakeButton() to create zones for mouseevents? The regular eventhandler responds to mouse events (if set up to do so). But if I include a MakeButton statement, I am told that - 'A BGPIC needs to be active when calling button functions...
by jalih
Sun Jul 05, 2015 11:21 am
Forum: General programming
Topic: Bitmap font support files
Replies: 1
Views: 1366

Re: Bitmap font support files

I have added some useful functionality:

- Calculate size of the text rectangle
- Handle clipping
- Center text inside the rectangular area
by jalih
Wed Jul 01, 2015 5:01 pm
Forum: GL Galore
Topic: GL Galore rocks!
Replies: 18
Views: 6542

Re: GL Galore rocks!

I have added interpolation...

Could you please test this Windows demo and let me know how it performs on your system. On my old Windows 7 computer it runs really smooth.
by jalih
Tue Jun 30, 2015 8:24 pm
Forum: General programming
Topic: HGF updated
Replies: 4
Views: 2585

Re: HGF updated

Just fixed my bitmap font support module...

- added clipping, so now text going out of screen boundaries is handled properly