Author Topic: CRASHLANDED (game, survival, building)  (Read 1509 times)

0 Members and 1 Guest are viewing this topic.

Offline MrFreyer

  • Newbie
  • Posts: 34
    • View Profile
CRASHLANDED (game, survival, building)
« on: June 16, 2019, 08:07:10 am »
Hi @ all,
in the last 2 days i've programmed a little game, out of fun... :D

Okay, it's poorly written, have no frametime-calculation, no loop performance optimization, no customize possibilities (e.g. keyassignment), no sounds and just ASCII graphics... but hey, it was fun to write it.

And here is the code. Nothing more resources are needed. Works with QB64 1.3

Code: QB64: [Select]
  1. sourcecode deleted, please see EDITEDIT (sourcecode in post no 7)
  2.  

Nevermind the REM{ and REM}. It's just for my Notepad++, so that I can fold and expand codesections.

Have Fun!


EDIT:
The post turns my postet code from screenwindow.width to screenwindow.WIDTH (Line 10)... but it should be okay.

EDITEDIT:
Please download the sourcecodefile. In the embeded code, in this post, were a lot of ASCII symbols missing!
* Crashlanded v1.0.bas (Filesize: 67.06 KB, Downloads: 154)
« Last Edit: June 18, 2019, 07:12:02 am by MrFreyer »

FellippeHeitor

  • Guest
Re: CRASHLANDED (game, survival, building)
« Reply #1 on: June 16, 2019, 08:10:15 am »
Quote
Nevermind the REM{ and REM}. It's just for my Notepad++, so that I can fold and expand codesections.

Nice move!

Offline MrFreyer

  • Newbie
  • Posts: 34
    • View Profile
Re: CRASHLANDED (game, survival, building)
« Reply #2 on: June 16, 2019, 08:17:45 am »
Nice move!

Looks like this then.

EDIT:
I also like different color (like on picture 2)
Neue Bitmap.bmp
* Neue Bitmap.bmp (Filesize: 3 MB, Dimensions: 1366x768, Views: 232)
Neue Bitmap.bmp
* Neue Bitmap.bmp (Filesize: 3 MB, Dimensions: 1366x768, Views: 244)
« Last Edit: June 16, 2019, 08:32:35 am by MrFreyer »

Offline RhoSigma

  • QB64 Developer
  • Forum Resident
  • Posts: 565
    • View Profile
Re: CRASHLANDED (game, survival, building)
« Reply #3 on: June 16, 2019, 08:28:27 am »
Indeed, i use '~~~ as fold open marker and '~~~~~ as close marker in my setup.
« Last Edit: July 14, 2019, 02:05:51 pm by RhoSigma »
My Projects:   https://qb64forum.alephc.xyz/index.php?topic=809
GuiTools - A graphic UI framework (can do multiple UI forms/windows in one program)
Libraries - ImageProcess, StringBuffers (virt. files), MD5/SHA2-Hash, LZW etc.
Bonus - Blankers, QB64/Notepad++ setup pack

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: CRASHLANDED (game, survival, building)
« Reply #4 on: June 16, 2019, 12:51:20 pm »
Hi Mr Freyer

I found your example very instructive seeing also how both old style BASIC both new structured style BASIC can be embedded for more power results!

I have found an error...
see line 1038 of your code posted here above

Code: QB64: [Select]
  1. 1038   _PRINTSTRING (TILEX(player.x), TILEY(player.y)), ""
well  I have added this at the end of line to see my location
Quote
CHR$(3) '

now I can appreciate better your work!
Cool!
Programming isn't difficult, only it's  consuming time and coffee

Offline MrFreyer

  • Newbie
  • Posts: 34
    • View Profile
Re: CRASHLANDED (game, survival, building)
« Reply #5 on: June 16, 2019, 02:50:18 pm »
I found your example very instructive seeing also how both old style BASIC both new structured style BASIC can be embedded for more power results!

I have found an error...
see line 1038 of your code posted here above

Nooooooooooooooooooo!!! In the embeded code of my first post, lots of ASCII symbols are missing! :o
I should attach the sourcecodefile to a post, to prevent this catastrophic convert!

EDIT:
I will upload the sourcecode in 2 Minutes...
« Last Edit: June 16, 2019, 11:18:09 pm by MrFreyer »

Offline MrFreyer

  • Newbie
  • Posts: 34
    • View Profile
Re: CRASHLANDED (game, survival, building)
« Reply #6 on: June 16, 2019, 03:04:19 pm »
Here is the sourcecode with the needed ASCII icons.

EDIT:
And a screenshot of how the screen was mentioned to look like

EDITEDIT:
I attached the sourcodefile to my initial post.
Neue Bitmap.bmp
* Neue Bitmap.bmp (Filesize: 1.42 MB, Dimensions: 810x613, Views: 273)
« Last Edit: June 18, 2019, 07:14:39 am by MrFreyer »

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: CRASHLANDED (game, survival, building)
« Reply #7 on: June 16, 2019, 05:49:10 pm »
Thanks now I can appreciate in the whole of structure! Finally I can eat! :-)
Fine
Programming isn't difficult, only it's  consuming time and coffee

Offline Virtusoroca

  • Newbie
  • Posts: 24
    • View Profile
Re: CRASHLANDED (game, survival, building)
« Reply #8 on: June 01, 2020, 03:02:45 am »
Im enjoying this game a lot! :) almost building the rocket so I can escape 2020! Thanks @MrFreyer for that. Very nice