Author Topic: 15 days for Halloween code challenge  (Read 9689 times)

0 Members and 1 Guest are viewing this topic.

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
15 days for Halloween code challenge
« on: October 13, 2018, 08:50:58 am »
Hi
 beautyful and active QB64 community
what do you think about a 15 days challange to code something about Halloween recurrence?
each coder can choose among
 an animation,
an one level game (like tetris or google's Trex),
a story in game mode,
a point and shooting,
an educational in theme (math with monsters, potions in alchemy, dictate halloween words)

No allowed mods of another coder's program! In the while the same idea can be coded in a way very far from those already posted.

Good thinking

I wait for feedback.


Programming isn't difficult, only it's  consuming time and coffee

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: 15 days for Halloween code challenge
« Reply #1 on: October 13, 2018, 01:34:53 pm »
Hi TempodiBasic,

Animation, you say? Well, I have a very primitive editor for black and white animation .... so when it's time .... but I'm such a so great graphic, that others end up with a onrush of laughter under the table ...

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: 15 days for Halloween code challenge
« Reply #2 on: October 14, 2018, 04:29:59 pm »
Hi Petr
Thank dor your feedback
I think that black and white can be a good point to start for Halloween animation, don't you?

Programming isn't difficult, only it's  consuming time and coffee

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: 15 days for Halloween code challenge
« Reply #3 on: October 15, 2018, 12:49:33 am »
Here is my SCREEN 0 ghost animation.

Code: QB64: [Select]

I dare anyone to optimize it!

OK, Here's a bat...

Code: QB64: [Select]
  1. a$ = "^^0^^"
  2. b$ = "VV0VV"
  3.  
  4. FOR i = 25 TO 1 STEP -1
  5.     LOCATE i, 38
  6.     PRINT a$;
  7.     _DELAY .2
  8.     LOCATE , 38: PRINT b$;
  9.     _DELAY .1
  10.     LOCATE , 38: PRINT SPACE$(5)

Pete :D

I'm not only a QB Forum owner, I'm also a client!
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: 15 days for Halloween code challenge
« Reply #4 on: October 15, 2018, 11:45:00 am »
Here's a few more bats, probably need Windows for sound.

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: 15 days for Halloween code challenge
« Reply #5 on: October 15, 2018, 04:02:58 pm »
Pete,

It may not be the most efficient method, but it does the same thing, and a few bytes less...

a$ = "^^0^^"
b$ = "VV0VV"

FOR i = 25 TO 1 STEP -1
    LOCATE i, 38
    PRINT a$;
    _DELAY .2
    LOCATE , 38: PRINT b$;
    _DELAY .1
   CLS
NEXT
« Last Edit: October 15, 2018, 04:06:28 pm by johnno56 »
Logic is the beginning of wisdom.

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: 15 days for Halloween code challenge
« Reply #6 on: October 15, 2018, 04:18:07 pm »
bplus,

The flight path of those bats look oddly familiar... I cannot quite put my finger on it... Never the less, still a great effect...
I tried to convert the 'wav' to 'ogg' but still no sound... Oh well... Still 'looks' good...

J
Logic is the beginning of wisdom.

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: 15 days for Halloween code challenge
« Reply #7 on: October 15, 2018, 05:03:03 pm »
Hi Guys
here the screenshot of the first two challanger

Pete
 [ You are not allowed to view this attachment ]  

Bplus
 [ You are not allowed to view this attachment ]  

Waiting other challengers I thank Pete and Bplus.

As soon as I'll post my code....
yesterday I have been in war with CONST and _RGB so I cannot finish my little idea.
« Last Edit: October 15, 2018, 05:20:48 pm by odin »
Programming isn't difficult, only it's  consuming time and coffee

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: 15 days for Halloween code challenge
« Reply #8 on: October 15, 2018, 07:50:33 pm »
I think we should end the contest now, while BPlus has a lock on second place!
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: 15 days for Halloween code challenge
« Reply #9 on: October 16, 2018, 03:44:11 pm »
OK while we are waiting for TempodiBasic and others to finish their Halloween treats here is a puzzle. Count the number of times BAT appears in this Word Search, remember 8 directions to check...

Code: QB64: [Select]
  1. ABBBBBATBTAABTABTBBB
  2. TTTTAATATTTBTATABTAA
  3. BBAATTTBBTTAABBAAATT
  4. AATBAAAABTTBATBABAAT
  5. ABATTBATBTTTATTTTBTT
  6. BBTBATABTAAAAATTTTBA
  7. BBBATBAABTTTTBBBBABA
  8. TABABTTTABAATABTATBT
  9. TABBTTBBBBTATBTTTTBT
  10. TBAABTBBTAABBTTTAATT
  11. BAABBTTTAAABTBATBATA
  12. ATBBBABAABTBABTABTBB
  13. TTTTAABAAAAATTATBBBA
  14. TABTBAABABBABBAABBAA
  15. TBATTABABTTTATATTTBT
  16. BTBTTTTTBBBATTABAABB
  17. BBBTAABTBBATTAATAABT
  18. TTATBATTATBATATBBABT
  19. TTTBBBBBTBTATABTTBBA
  20. TBABBAATATTABTBATBBA
  21.  

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: 15 days for Halloween code challenge
« Reply #10 on: October 16, 2018, 08:35:07 pm »
Here's what I found in my Halloween bag:
Code: QB64: [Select]
  1. KTIREKITRATECCCRTIAKIRTTTTRRAR
  2. CTKRAAKCAIERIECITCRTTCTRKRITCT
  3. TTCARTTACIKKIKTRERETIKCTCICRER
  4. ERRTTATTTCTCTKIETAITTRKKCIECET
  5. AIEATREAIRRIRITRTTTTAKTIEREKTR
  6. ATTRATIECTREATTITARETRICKTIATI
  7. TTTRERTRTIRTRICKCAEKRITITTKARR
  8. TRRIRRETTTRICKTATEAITCCETARTIC
  9. RIATTERTKARATTTIRTATRTCRCRTKRE
  10. TETCATRTAETREATKTRICKKTREATRCI
  11. KTRRTRTCTETRTEKAATCTCIECTRKTCT
  12. TKKTTEIRAITTIEERERRITCCTTRRERR
  13. CATATRICKKCTKTETIRRTERTKTRCRTA
  14. TTTERCATTTKTITRKTAERTEERRTAERE
  15. RCIAKERRATARKRRRRCCTCRTIRTETKK
  16. TTRACRRCRCTEIRATCCREETRKTKTCRR
  17. EEIRITKTCTCARCRTTTKTITTTIRRRCK
  18. IIEETKETEARTTATRTRTRTRECTETEET
  19. ITREIREETACETECAITKIRKTKTKARTR
  20. CRRRTTIRITERTIRERRKATTCTRIRKAR
  21.  

Use your Word Search code to see how many TRICKs and how many TREATs, I have.
« Last Edit: October 16, 2018, 09:14:24 pm by bplus »

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: 15 days for Halloween code challenge
« Reply #11 on: October 17, 2018, 05:20:57 am »
Hi boys and girls
I remember to QB64's community that it lasts 13 days to the end of posting....

Good Coding

Programming isn't difficult, only it's  consuming time and coffee

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: 15 days for Halloween code challenge
« Reply #12 on: October 21, 2018, 02:20:30 pm »
Quote
Hi boys and girls
I remember to QB64's community that
it lasts ten days to the end of challenge of Halloween

Post your code!
Programming isn't difficult, only it's  consuming time and coffee

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: 15 days for Halloween code challenge
« Reply #13 on: October 21, 2018, 05:18:22 pm »
Hi TempodiBasic,

How is your's coming along?

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: 15 days for Halloween code challenge
« Reply #14 on: October 23, 2018, 05:19:54 pm »
It's been a while since I got serious and decided to play around and make a game, so I thought I'd take it upon myself to give this challenge a try. 

Here's what I have so far.  Though it's nothing but the main intro screen, I think it shows a bit of the theme that I'm shooting for, for this little game.

At this point, I'm uncertain if I want to simply make it an enhanced-SCREEN 0 game, or if I want to go ahead and find a nice couple of sprite sets and plug them in to make it more of a graphical game.  I'm thinking with only about a week let to go, I'm just going to make a little screen 0 game and not worry so much about the graphics.

What I'm thinking at this moment is to make it a cross between pac-man and rogue.   Using set mazes and monsters, let the character try to find his way to the exit of the mazes, while trying to gather armor, weapons, money, and -- of course -- not get eat by the monsters.

Mazes will start out simple and steadily increase in difficultly and puzzles as we proceed through them.

Nothing too serious; I just thought I'd have a little fun with this for a bit.  Feel free to steal some/part/all of this if it's of any use in your own projects in the future. 

Game files here (7z archive): https://www.dropbox.com/s/og5ukisj6h8vv3h/Hallowmaze.7z?dl=0
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!