Archiverse Internet Archive
投稿のみ 投稿と返信
前のページ(最近)
1 2 3 4 5 6 7 8
次のページ(過去)
返信[16]
親投稿
Stewart segludian
Disregard my previous message. I didn't compare it to the original. It is the goto instead of return calls as stated earlier.
0そうだね
プレイ済み
返信[15]
親投稿
Stewart segludian
You are updating x, and y variables but not using spofs to update the sprite's position onscreen. If you are getting a syntax error, please tell us the line number and error message.
0そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
What you want to do is use page flipping. This lets you draw lines on one page then show it all at once when you are done drawing that frame. It gets rid of the flicker that way. Attached is a small example that rotates a triangle. The gpage call is the important part.
1そうだね
プレイ済み
返信[4]
親投稿
Stewart segludian
you can also type SAVE "Program Name" from the runtime/evaluation screen. That's the old skool way.
0そうだね
プレイ済み
返信[3]
親投稿
Stewart segludian
Sorry to hear you lost all that code.
1そうだね
プレイ済み
返信[4]
親投稿
Stewart segludian
You should always declare variables before use. You should also turn on option explicit to catch use of undeclared variables too. It catches a lot of bugs easily. Do you not use DIM for some reason?
0そうだね
プレイ済み
返信[7]
親投稿
Stewart segludian
So, is that like a motion comic then? Sounds cool I will look forward to it.
0そうだね
プレイ済み
返信[4]
親投稿
Stewart segludian
1そうだね
プレイ済み
返信[13]
親投稿
Stewart segludian
Here is a sample with text in an array and some sprite collision. Hope that helps. Keep up the good coding!
0そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
Hopefully the attached code will help.
1そうだね
プレイ済み
返信[3]
親投稿
Stewart segludian
Attached is some example code.
1そうだね
プレイ済み
返信[6]
親投稿
Stewart segludian
If I remember, it was about $10. If you want to make an rpg, I would recommend something like an rpg maker instead unless you already know how to program in basic already. Otherwise you have a long learning curve ahead, and should aim for a game like tic tac toe or pong first.
2そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
It would be a ton of work. If you stay 2d, it should be possible. Good luck!
0そうだね
プレイ済み
返信[3]
親投稿
Stewart segludian
it is used to read text from the command line, and save it to a variable. from there you can parse it and respond appropriately. If you are reading a whole line of text look up line input instead. A small bit of sample code is in the attached screen shot.
0そうだね
プレイ済み
返信[4]
親投稿
Stewart segludian
for each ray find the closest intersecting solid block, and what pixel column it intersect's with. then draw the column of pixels for that block scaled bigger or smaller based on distance. For now just colo the ceiling and floor a solid color. All this gets slow very quickly. I am sure there are plenty of c code tutorials around the internet. May be old dos code, beware.
1そうだね
プレイ済み
返信[3]
親投稿
Stewart segludian
You may want to go look up ti85calc's spooky maze on smilebasicsource. If I remember the game has a raycasting library. But basically you would have a map array with block codes. you would also have an x, y position and rotation of the character, and a way to map that to your block array. Using trig send out virtual rays from angle - field of view to angle plus field of view. You find intersecting
1そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
look into the INPUT command
0そうだね
プレイ済み
返信[4]
親投稿
Stewart segludian
There is python + pygame, and scratch if you want to code games.
0そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
Nice, is that the Mandelbrot and Julia set?
1そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
So, are you just trying to read a full line of text? If so you will want to look at linput. example: linput s$ Of course breakimg that up into individual words would be your job. In your case you probably want to break things up when you switch between alphabetic characters and white space (spaces, tab, return, etc.). Translation is another can of worms, search/replace isn't enough. Good luck.
0そうだね
プレイ済み