Archiverse Internet Archive
投稿のみ 投稿と返信
前のページ(最近)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
次のページ(過去)
返信[6]
親投稿
Stewart segludian1
along the calculated angle for that column before hitting a wall. In fact you need to figure out where on that block it would hit. From the location on the block you can figure out which column of the block's texture/image to draw. Using the distance you can figure how big to scale it. Then draw the scaled column of the block's image/texture with a ceiling color above and a floor color after.
0そうだね
プレイ済み
返信[5]
親投稿
Stewart segludian1
The player has a field of view. It is how much they can see to the left and right. Normally this is 60° or 90°. The algorithm works on columns. You scan from the players location and angle minus half the field of view to the players angle and location plus half the field of view. For each column you figure out how far a ray would go from the player's location along the calculated angle for the col
1そうだね
プレイ済み
返信[4]
親投稿
Stewart segludian1
Ok, to start with, raycasting like in Wolfenstein-3D or Spooky Maze isn't really 3D, it just looks 3D. For this type of game, the world is a two dimensional grid. Each location on the grid is either one of various wall types or an empty section of floor. Each wall type has a texture/image. Easy so far, I hope. The player is at a point in the game world and is looking in a direction.
0そうだね
プレイ済み
返信[19]
親投稿
Stewart segludian1
DRL3VKQV You are smart, and don't you forget it.
0そうだね
プレイ済み
返信[9]
親投稿
Stewart segludian1
and here is another.
0そうだね
プレイ済み
返信[8]
親投稿
Stewart segludian1
Here is one sprite demo.
0そうだね
プレイ済み
返信[3]
親投稿
Stewart segludian1
please use while/wend or repeat/until instead of goto. It will make your code easier to read and maintain.
0そうだね
プレイ済み
返信[9]
親投稿
Stewart segludian1
NKVEX323
0そうだね
プレイ済み
返信[8]
親投稿
Stewart segludian1
This one controls sprites with a callback function which I prefer.
0そうだね
プレイ済み
返信[7]
親投稿
Stewart segludian1
A little bit of sprite animation and controlling multiple sprites.
0そうだね
プレイ済み
返信[10]
親投稿
Stewart segludian1
What level of programming experience do you have? If this is your first time programming we should start with a "Hello World" program. There are some old 80s BASIC programming books around online. Unfortunately the syntax will be quite a bit different. The programs in the old books would take some work to get running.
0そうだね
プレイ済み
返信[6]
親投稿
Stewart segludian1
And here is one wher you make a sprite and move it around with the d pad or slide pad.
0そうだね
プレイ済み
返信[5]
親投稿
Stewart segludian1
Here is something for buttons.
0そうだね
プレイ済み
返信[3]
親投稿
Stewart segludian1
That is my only sample folder with a key. If you need something specific, let me know.
0そうだね
プレイ済み
返信[17]
親投稿
Stewart segludian1
That one doesn't, but "Find the Exit" which uses the same technique does. It is: K2KYJCS It is also lot longer and more complicated. If you need a key for the simple one let me know.
1そうだね
プレイ済み
返信[4]
親投稿
Stewart segludian1
When you move, you are drawing over top of your player with a space. Try drawing the character after calculating their new location.
1そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian1
Wow, that is a lot of shovels :)
0そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian1
Are you moving too fast? If you don't have a vsync call in your game loop try adding one. Otherwise we will need to see some code to find the problem.
0そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian1
My old sample folder is: Q34443GD
0そうだね
プレイ済み
返信[20]
親投稿
Stewart segludian1
SECXE2KE Have fun, and be sure to get it before I need space for new keys.
1そうだね
プレイ済み