Recent

Author Topic: [Game] Mathematic Operations 0.1  (Read 8833 times)

lainz

  • Guest
[Game] Mathematic Operations 0.1
« on: August 31, 2011, 03:27:06 pm »
The classic brain training operations game.

It has 4 operations '+' '-' '*' '/'. The time start automatically when you run the game. You have 90 seconds to complete the operations as much as you can.

It requires:
* BGRABitmap
* BGRAControls

Download .exe for windows:
http://db.tt/2MSueRr

Download source:
(Attached)

It's my first game.

In my defense I am not IT professional. ::)

ToDo:
* The code needs to be better structured.
* Random numbers in options buttons sometimes are duplicated.
« Last Edit: August 31, 2011, 03:31:13 pm by lainz »

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: [Game] Mathematic Operations 0.1
« Reply #1 on: August 31, 2011, 07:56:37 pm »
I wanted to try but I cannot install BGRABitmap.  I tried version 4.6.1 and 4.7.1 and both gaves error in BGRAFilters, line 209:
Code: [Select]
/media/disk/v1/Lazarus_Qt/BGRA/BGRABitmap/bgrabitmap4.6.1/bgrabitmap/bgrafilters.pas(209,45) Error: Can't determine which overloaded function to call
What version do you recommend me or how to solve it ?

Thanks
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

lainz

  • Guest
Re: [Game] Mathematic Operations 0.1
« Reply #2 on: August 31, 2011, 08:25:24 pm »
I wanted to try but I cannot install BGRABitmap.  I tried version 4.6.1 and 4.7.1 and both gaves error in BGRAFilters, line 209:
Code: [Select]
/media/disk/v1/Lazarus_Qt/BGRA/BGRABitmap/bgrabitmap4.6.1/bgrabitmap/bgrafilters.pas(209,45) Error: Can't determine which overloaded function to call
What version do you recommend me or how to solve it ?

Thanks

I'm using the bgrabitmap svn / bgracontrols git.

I think that bgrabitmap doesn't works fine in FPC 2.5.1. I'm using Lazarus SVN and FPC release (Win32).

circular

  • Hero Member
  • *****
  • Posts: 4221
    • Personal webpage
Re: [Game] Mathematic Operations 0.1
« Reply #3 on: September 09, 2011, 11:15:37 am »
I've tried your game Lainz. It's funny.

I noticed that the numbers at the bottom can be the same. See attached screenshot. To avoid this, you can compute each number until it is different from others. For example :

Code: [Select]
For N := 1 to 5 do
  For I := 1 to 100 do
  Begin
    ComputeValueOfNumber(N);
    If ValueDifferentFromThoseOnTheLeft(N) then Break;
  End;

By the way, it would be great to have a visual representation of the numbers. You can do this with Canvas2D for example, by applying translation and rotation to some object representing unit.
« Last Edit: September 09, 2011, 11:18:11 am by circular »
Conscience is the debugger of the mind

fredycc

  • Sr. Member
  • ****
  • Posts: 264
Re: [Game] Mathematic Operations 0.1
« Reply #4 on: September 11, 2011, 04:40:51 am »
 :) Beautiful interface lainz.

Regards.

lainz

  • Guest
Re: [Game] Mathematic Operations 0.1
« Reply #5 on: September 27, 2011, 05:42:37 pm »
The game is now available with BGRAControls package (git) in 'testbgracontrols' project.

Patches are welcome.

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: [Game] Mathematic Operations 0.1
« Reply #6 on: September 27, 2011, 07:41:33 pm »
The game is now available with BGRAControls package (git) in 'testbgracontrols' project.

Can you provide an URL from where to download this version?
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

lainz

  • Guest
Re: [Game] Mathematic Operations 0.1
« Reply #7 on: September 27, 2011, 08:46:36 pm »
The game is now available with BGRAControls package (git) in 'testbgracontrols' project.

Can you provide an URL from where to download this version?

you need git to download this:
git://bgracontrols.git.sourceforge.net/gitroot/bgracontrols/bgracontrols

 

TinyPortal © 2005-2018