Author Topic: Simple Game using three techniques  (Read 13355 times)

FORTRANS

  • Member
  • *****
  • Posts: 1109
Re: Simple Game using three techniques
« Reply #15 on: November 06, 2015, 02:49:07 AM »
Hi,

Must search the bmp file (pix\*.bmp), they are not in the resource.

   Okay, it runs now.

Regards,

Steve

Edit:

   Works with Windows 98 also.

SRN

TouEnMasm

  • Member
  • *****
  • Posts: 1805
    • EditMasm
Re: Simple Game using three techniques
« Reply #16 on: November 06, 2015, 04:52:10 AM »

I have made one with resource
Fa is a musical note to play with CL

0000

  • Member
  • ****
  • Posts: 872
Re: Simple Game using three techniques
« Reply #17 on: November 06, 2015, 06:53:19 AM »

I have made one with resource

 :icon_rolleyes:

I should attach a footnote that my versions of the game are only Windows XP
compatible.

I was never even interested if it works on Vista, 7, 8, 10. And still I am not
interested in that.

If  someone has an issue running any of my versions of the game under
Windows XP I will gladly try to work out the issues.

If there is great need for someone to run my proggies on another flavor
of windows, rewrite it for yourself. You may use all or part of my code to
do so.

I was merely creating a very small game for XP. That meant NOT USING A
RESOURCE SECTION, and merging the remaining sections. Also, doing it in
the manner I had chosen, allows the user to simply replace the bitmaps to
change the look of the game. The program loads the resources at runtime.

The bitmaps must be in a folder named \pix in the games folder. They should
load this way without needing to change the path to them in the code.

This program came about as an experiment in using BitBlt. For all intents and
purposes, the experiments were a success in that regard. There are probably many
other non BitBlt related issues that are beyond the scope of my concern at this
juncture.

Thank you to eveyone who have provided hints, comments, and headaches.

The final versions of the game:



4x4 console final
4x4 windows xp
« Last Edit: July 20, 2018, 04:23:10 AM by zedd151 »

0000

  • Member
  • ****
  • Posts: 872
Better compatibility in this version???
« Reply #18 on: November 07, 2015, 07:29:16 AM »
My last post was a little rude. Sorry 'bout that.

Anywho, here is hopefully a version that *should* be more compatible with
Win Vista, 7, 8, and 10.

Uses a manifest and version control block.

Also the resources are in the resource section.


4x4 compatibility test
« Last Edit: July 20, 2018, 04:25:36 AM by zedd151 »

ZandraWoo

  • Regular Member
  • *
  • Posts: 3
Re: Simple Game using three techniques
« Reply #19 on: November 07, 2015, 01:24:03 PM »
nice game :) :greenclp:

i add some code for mouse select (up,down,left and right) :)

add line 26
add line 160 - 209

sorry for my bad english :<


hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8497
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Simple Game using three techniques
« Reply #20 on: November 07, 2015, 04:48:02 PM »
Z,

the XP version runs fine on my Win7 64.  :t
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

0000

  • Member
  • ****
  • Posts: 872
Re: Simple Game using three techniques
« Reply #21 on: November 14, 2015, 09:09:15 AM »
nice game :)
 i add some code for mouse select (up,down,left and right) :)

Thanks for the nice little addition. I hadn't thought about using mouseclicks to move the pieces.

Works well on XP. Thanks again.

Quote from: hutch--
the XP version runs fine on my Win7 64.

Thanks hutch for the compatibility test.

----------------------------

Now with ZandraWoo's addition, I have a new project to work on
4x4 version 2 coming soon!  :biggrin:


0000

  • Member
  • ****
  • Posts: 872
4x4 version 2
« Reply #22 on: November 16, 2015, 09:15:14 PM »
Here is version 2 with the newly added mouseclick handling included.

Am currently working on another game, tic-tac-toe. stay tuned....


4x4 version 2
« Last Edit: July 20, 2018, 04:29:53 AM by zedd151 »

felipe

  • Member
  • *****
  • Posts: 1367
Re: Simple Game using three techniques
« Reply #23 on: March 31, 2018, 04:39:50 AM »
Nice game  :icon14:, unfortunately i'm very bad on it.  :P

zeddicus

  • Guest
Re: Simple Game using three techniques
« Reply #24 on: March 31, 2018, 04:53:01 AM »
Nice game  :icon14:, unfortunately i'm very bad on it.  :P

It's a nice little game I made intended for the child in all of us.

See I said it also is a very simple game.

Now that you've bumped one of my old threads out of the cobwebs, maybe hutch-- would take note and consider resetting my old password. Haven't had the courage to ask,  fearing to get shot down.   :biggrin:


daydreamer

  • Member
  • *****
  • Posts: 1721
  • building nextdoor
Re: Simple Game using three techniques
« Reply #25 on: April 07, 2018, 10:07:35 PM »
I am sure its possible to do with buttons instead, because Java is many times a wrapper on existing Winapi stuff, I got that exercise make it with Java awt
more fun puzzles than play games that has puzzles builtin is to solve "puzzle" that is program a puzzle with GUI that dont act like you expected it to do and it lacks the needed functions so you need to "emulate" moving buttons
its not asm, but most of it is jumptables thats easy to follow

SIMD fan and macro fan
why assembly is fastest is because its switch has no (brakes) breaks
:P
only in 16bit assembly you can get away with "Only words" :P

0000

  • Member
  • ****
  • Posts: 872
Re: Simple Game using three techniques
« Reply #26 on: April 08, 2018, 01:36:09 AM »
Quote
I got that exercise make it with Java awt

So that's Java, looks very BASIC.  I"ll take a better look at it when I get a computer up and running here.

I  never saw Java code before.

As for buttons,  I did experiment with that early on,  when I thought of creating this little piece of code.

jj2007

  • Member
  • *****
  • Posts: 11551
  • Assembler is fun ;-)
    • MasmBasic
Re: Simple Game using three techniques
« Reply #27 on: April 08, 2018, 01:48:35 AM »
So that's Java, looks very BASIC.

You are not serious :eusa_naughty:
Code: [Select]
public void removeButton(int b){
switch(b){
case 1:
remove(b1);
break;
case 2:

FORTRANS

  • Member
  • *****
  • Posts: 1109
Re: Simple Game using three techniques
« Reply #28 on: April 08, 2018, 03:01:34 AM »
Hi,

   Hey.  I "wrote" a game in FORTRAN.  Luckily the *.exe is too
large for the forum.  Rather "basic" Windows game that does not
update its windows correctly.  Maybe it can be shrunk by zipping
it up...  Never mind, it really is too simple for an experienced lot
of gamers.  FORTRAN is not a language of choice for games
anyway.

Cheers,

Steve N.

0000

  • Member
  • ****
  • Posts: 872
Re: Simple Game using three techniques
« Reply #29 on: April 08, 2018, 07:01:56 AM »
Quote
You are not serious :eusa_naughty:

Of course not,  but compared to assembler it might as well be Chinese. :lol:  :badgrin:

Quote
Hi,

   Hey.  I "wrote" a game in FORTRAN...

Now that sounds like it would be REALLY foreign to me.  :lol:

No matter what language it's in,  game creation is fun. (at least should be)