Search found 276 matches

by jalih
Mon Aug 14, 2023 9:23 pm
Forum: Off topic
Topic: Good learning game project idea
Replies: 1
Views: 4157

Good learning game project idea

If someone is looking for a nice game programming project idea, I can recommed creating a 2048 game. Make it work on desktop and mobile platforms and animate moves. Here is a video of my version written in 8th programming language. It works on desktop and mobile platforms.
by jalih
Sun Jun 25, 2023 9:59 am
Forum: Newbie questions
Topic: Confused About Tables
Replies: 11
Views: 3548

Re: Confused About Tables

I think Hollywood constants are just values, so you cannot do that and need to use something like: Const #TEXT_COL = $000020 Const #DECO_COL = $F08000 Const #PAPER_COL = $F0F0F0 Const #OPTS_LOCOL = $0050A0 Const #OPTS_HICOL = $D02020 PALETTE = {#TEXT_COL, #DECO_COL, #PAPER_COL, #OPTS_LOCOL, #OPTS_HI...
by jalih
Sat Jun 17, 2023 1:14 pm
Forum: Showcase
Topic: SDL Raycasting demo
Replies: 1
Views: 4141

Re: SDL Raycasting demo

If anyone is interested in helping me change the code from SDL to OpenGL to see if it is faster, more than happy to share the code. I guess you have done the obvious optimization for tutorial code and draw wall slices directly from texture using hardware acceleration instead of drawing pixel by pix...
by jalih
Mon May 08, 2023 6:03 pm
Forum: Code snippets area
Topic: A*Star in Hollywood
Replies: 5
Views: 4680

Re: A*Star in Hollywood

There is an excellent old article about realtime pathfinding by Swen Vincke inside the Game Developer Magazine, June 1997.
by jalih
Mon Apr 24, 2023 6:37 pm
Forum: Showcase
Topic: Converting SDL2 Tutorials from Parallel Realities
Replies: 19
Views: 9957

Re: Converting SDL2 Tutorials from Parallel Realities

Have you tested performance on a Raspberry Pi 4? Does Hollywood support kms/drm driver with Linux versions, so programs can run hardware accelerated without X11? How is your collision detection done? I use a collision map and a few collision points to test tilemap collisions. With enemies and game o...
by jalih
Sun Apr 23, 2023 7:10 pm
Forum: Showcase
Topic: Converting SDL2 Tutorials from Parallel Realities
Replies: 19
Views: 9957

Re: Converting SDL2 Tutorials from Parallel Realities

Debug prints inside the main game loop are also real performance killers.
by jalih
Mon Apr 17, 2023 4:33 pm
Forum: Code snippets area
Topic: Sudoku solver, ported from Python
Replies: 4
Views: 3387

Re: Sudoku solver, ported from Python

It seems to me that you are missing the point here. The Python article is about programming style and finding algorithms. The Sudoku solver is just one part, which is needed for the Sudoku generator. If it was about speed, the author would certainly not have chosen an interpreter language. We are i...
by jalih
Sun Apr 16, 2023 8:22 pm
Forum: Code snippets area
Topic: Sudoku solver, ported from Python
Replies: 4
Views: 3387

Re: Sudoku solver, ported from Python

I tested the Python version you linked with "the world hardest Sudoku" and result was: root@DietPi:~# time python3 sudo.py Difficulty: Hard 8 1 2 7 5 3 6 4 9 9 4 3 6 8 2 1 7 5 6 7 5 4 9 1 2 8 3 1 5 4 2 3 7 8 9 6 3 6 9 8 4 5 7 2 1 2 8 7 1 6 9 5 3 4 5 2 1 9 7 4 3 6 8 4 3 8 5 2 6 9 1 7 7 9 6 ...
by jalih
Sun Apr 16, 2023 7:51 pm
Forum: Code snippets area
Topic: Sudoku solver, ported from Python
Replies: 4
Views: 3387

Re: Sudoku solver, ported from Python

Have you tested performance? I wrote a simple Sudoku solver for the 8th programming language. I used bit presentation, so I could use bitwise operations and some bit tricks. It could be made faster by finding singles or hidden singles instead of just selecting empty cell but that would need some ext...
by jalih
Mon Mar 27, 2023 7:41 pm
Forum: Hollywood bugs
Topic: Round() Differs in AROS and OS3 Versions
Replies: 6
Views: 1678

Re: Round() Differs in AROS and OS3 Versions

I think the most sensible default would be to always round .5 up and add another function to change the rounding mode if needed.