Push the boulder

The place for codemasters or beginners to talk about programming any language for the Spectrum.
Post Reply
MrPixel
Microbot
Posts: 170
Joined: Sat Mar 24, 2018 7:42 pm

Push the boulder

Post by MrPixel »

No one remembers the Myth of Sisyphus, but i decided to make a (poorly drawn) version of the boulder. unfortunately, it's crap. i'm posting to show why and how i can improve it. my goal is to make a slanted mountain and a stick figure representing the poor man. i might add some controls, maybe some music.
Image

""Edited by admin
User avatar
R-Tape
Site Admin
Posts: 6353
Joined: Thu Nov 09, 2017 11:46 am

Re: Push the boulder

Post by R-Tape »

Would be a good endless button masher game.
User avatar
Kweepa
Manic Miner
Posts: 311
Joined: Sat Feb 03, 2018 6:14 pm
Location: Albuquerque, New Mexico

Re: Push the boulder

Post by Kweepa »

If it's for the crap game compo, you are done!
I made a slight edit to decrapify 10%:
Image
User avatar
R-Tape
Site Admin
Posts: 6353
Joined: Thu Nov 09, 2017 11:46 am

Re: Push the boulder

Post by R-Tape »

Very cool BTW, is that all done with PLOT & DRAW? Must have been a colossal pain in the arse if so.
User avatar
Kweepa
Manic Miner
Posts: 311
Joined: Sat Feb 03, 2018 6:14 pm
Location: Albuquerque, New Mexico

Re: Push the boulder

Post by Kweepa »

No, I just used paint.NET. :(
User avatar
MatGubbins
Dynamite Dan
Posts: 1238
Joined: Mon Nov 13, 2017 11:45 am
Location: Kent, UK

Re: Push the boulder

Post by MatGubbins »

https://www.youtube.com/watch?v=U46Yo_6z_F4

Skip to about 16.00 if you get bored of the building and just want to see the final result.
MrPixel
Microbot
Posts: 170
Joined: Sat Mar 24, 2018 7:42 pm

Re: Push the boulder

Post by MrPixel »

it's for here. i want to add buttons and such but the Inkey$ command is confusing.

the name of the game is Push Fatty push. your goal is to push the boulder to the top, only to see it roll back down. every push to the top gets you 1 point. accumulate 10 and the game restarts.
hikoki
Manic Miner
Posts: 576
Joined: Thu Nov 16, 2017 10:54 am

Re: Push the boulder

Post by hikoki »

I see potential for a Dung Beetle game with lots of judo and poo collecting. Sisyflush
MrPixel
Microbot
Posts: 170
Joined: Sat Mar 24, 2018 7:42 pm

Re: Push the boulder

Post by MrPixel »

I need a reference for the Inkey$ command and moving sprites.
User avatar
PeterJ
Site Admin
Posts: 6854
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Push the boulder

Post by PeterJ »

MrPixel wrote: Fri Jun 08, 2018 5:43 pm I need a reference for the Inkey$ command and moving sprites.
Read the Spectrum BASIC manual as people have suggested many times. That has plenty of examples of responding to key presses. Don't forget the Spectrum does not have Sprites. The basic principle in BASIC is to move you character, then blank out the previous position. Again, there is a good clock example in the manual. If you want to learn BASIC there is IMHO no better tutorial.

Also study game listings from the magazines of the day. Change them, improve them and see what happens. Also, that book I previously suggested is a good choice.

You seem to be starting loads of different projects. Try just sticking with one or two and learn the ropes. Most of all, have fun
hikoki
Manic Miner
Posts: 576
Joined: Thu Nov 16, 2017 10:54 am

Re: Push the boulder

Post by hikoki »

"ZXBASICMANUAL"

One sample to try with BasinC

5 LET x=10: LET y=10: PRINT AT y,x;"A"
10 IF INKEY$="o" AND x>0 THEN LET x=x-1: PRINT AT y,x;"A "
20 IF INKEY$="p" AND x<31 THEN PRINT AT y,x;" A": LET x=x+1
30 IF INKEY$="q" AND y>0 THEN LET y=y-1: PRINT AT y,x;"A";AT y+1,x;" "
40 IF INKEY$="a" AND y<21 THEN LET y=y+1: PRINT AT y,x;"A";AT y-1,x;" "
50 GO TO 10
60 REM worldofspectrum.org/forums/discussion/comment/657846/#Comment_657846
Post Reply