Search found 247 matches

by jalih
Wed Apr 17, 2019 8:41 pm
Forum: Off topic
Topic: Don't waste hours on micro-optimizing, just choose better algorithm
Replies: 1
Views: 763

Don't waste hours on micro-optimizing, just choose better algorithm

I stumbled upon coding challenge on Rasberry Pi forums about calculating fibonacci number with million digits. I chose to use 8th programming language as it directly supports big numbers (I am lazy!). My first version was simply naive iterative version of fibonacci, it took 2.8 hours to complete, bu...
by jalih
Mon Apr 01, 2019 10:45 am
Forum: Tutorials
Topic: Let's build a Dungeon Crawler with Hollywood-MAL!
Replies: 20
Views: 3191

Re: Let's build a Dungeon Crawler with Hollywood-MAL!

Hi Allanon, Sounds like really interesting and fun project! I nowadays program mostly in 8th programming language which is like Forth on stereoids but have been thinking about fixing my old game framework for Hollywood. The 8th programming language is not really that well suited for games (lack of h...
by jalih
Tue Mar 06, 2018 6:18 pm
Forum: GL Galore
Topic: GL Galore rocks!
Replies: 18
Views: 8935

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: 6
Views: 3486

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: 4991

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: 4777

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: 1922

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: 4391

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: 3248

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: 1874

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