Search found 3270 matches

by BasicCoder2
Oct 27, 2018 17:42
Forum: Game Dev
Topic: Pong Paddles
Replies: 4
Views: 528

Re: Pong Paddles

I hate playing it so I don't. Is there any type of game you like or have liked playing? Watching the balls bouncing around reminded me of a pinball machine. https://www.lifewire.com/top-free-online-pinball-games-1983775 Actually I see you have played with the idea https://www.freebasic.net/forum/vi...
by BasicCoder2
Oct 27, 2018 8:56
Forum: Game Dev
Topic: Pong Paddles
Replies: 4
Views: 528

Pong Paddles

This is an example where the angle that the ball leaves the paddle is controlled by where it hits the paddle. The top paddle is controlled by the A and D keys. The bottom paddle is controlled by the left/right arrow keys. ' ' Use keys A and D for top paddle and left/right arrow keys for bottom paddl...
by BasicCoder2
Oct 24, 2018 1:52
Forum: General
Topic: A bigger font
Replies: 23
Views: 869

Re: A bigger font

Joshy, Replaced my example with your version. I also used multiput to speed things up #include "multiput.bi" screenres 1280,480,32 sub printText(x as integer, y as integer, txt as string, fg as ulong, bg as ulong,mag as integer) if screenptr()=0 then return ' no screen var n = len(txt) : i...
by BasicCoder2
Oct 23, 2018 0:39
Forum: General
Topic: A bigger font
Replies: 23
Views: 869

Re: A bigger font

edit: implemented D.J.Peter's code screenres 640,480,32 'D.J.Peter's version sub printText(x as integer, y as integer, txt as string, fg as ulong, bg as ulong,mag as integer) if screenptr()=0 then return ' no screen var n = len(txt) : if n<1 then return ' no chars n shl=3 ' nPixels = nChars * fontwi...
by BasicCoder2
Oct 22, 2018 19:36
Forum: Projects
Topic: Cubeeater [GAME]
Replies: 6
Views: 603

Re: Cubeeater [GAME]

I would suggest border detection is important? Here is my take on your idea. screenres 640,480,32 color rgb(0,0,0),rgb(255,255,255):cls type RECTANGLE as integer x as integer y as integer w as integer dx as integer dy as integer h as ulong c as integer a end type function testCollision(s1 as RECTANG...
by BasicCoder2
Oct 21, 2018 23:07
Forum: Projects
Topic: Cubeeater [GAME]
Replies: 6
Views: 603

Re: Cubeeater [GAME]

When my cube touches the bottom line it jumps to a lower y-position (upward). Is this a bug or a feature? Maybe check for out of window bounds? do getmouse mx,my if mx<>-1 and my<>-1 then 'out of map detectection with user ' if .x + .size > 640 then setmouse mx-.size,my ' if .y + .size > 480 then s...
by BasicCoder2
Oct 15, 2018 21:02
Forum: Game Dev
Topic: Retro style 3D graphics
Replies: 6
Views: 1017

Re: Retro style 3D graphics

Thanks Joshy that seemed to help.
by BasicCoder2
Oct 15, 2018 19:58
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 19905

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Jan 2019), 300 $ 1st prize

BasicCoder2, your idea sounds very cool. Hope you can flesh it out. The game was just going to be a simple platform game with a simple FB back ground story, no dialogue or multipaths as such. Essentially an attempt at a platform game with the FB theme as an extra. I am stalled at the moment but hop...
by BasicCoder2
Oct 15, 2018 19:10
Forum: Game Dev
Topic: Retro style 3D graphics
Replies: 6
Views: 1017

Re: Retro style 3D graphics

@BasicCoder2 for simple image/sprite scaling (without rotation) I posted other faster codes also. Joshy Thanks for this other option Joshy I have tested it below. Now all I need to do is figure out how to stop the bushes having the shakes. '#include "multiput.bi" #include "fbgfx.bi&q...
by BasicCoder2
Oct 15, 2018 5:12
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 19905

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Jan 2019), 300 $ 1st prize

BasicCoder2: So what if all you code is Tetris? It was badidea that said his game would have Tetris blocks in it not me. All I pointed out was that Tetris is an example of an easy simple program to code but also a very clever idea for a fun game. In other words the hard bit was the idea the easy bi...
by BasicCoder2
Oct 14, 2018 22:47
Forum: Projects
Topic: Sort of overselling this as a project... Arkanoid physics toy
Replies: 6
Views: 728

Re: Sort of overselling this as a project... Arkanoid physics toy

The problem I had with it was the size of the screen (window). Have you looked as this thread? Much nicer to use the mouse instead of the keys to move the bat. https://www.freebasic.net/forum/viewtopic.php?f=15&t=21663&hilit My version had no physics involved but I think some use the positio...
by BasicCoder2
Oct 14, 2018 21:48
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 19905

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Jan 2019), 300 $ 1st prize

@paul doe, I have used video to capture and trace a simple walking action as was used in this demo, https://www.freebasic.net/forum/viewtopic.php?f=15&t=22633 https://i.postimg.cc/Y0pPXvt3/demo-Platform-Game.png However I was talking about lots of animations of a freeBasic horse. Walking, runnin...
by BasicCoder2
Oct 14, 2018 20:07
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 19905

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Jan 2019), 250 $ 1st prize

@paul doe, How many, if any, of those who have put their hands up for the competition can do that? Get actors or horses to act out the moves to "trace". You can be the greatest programmer in the world and yet not be able to write a computer game, beyond the actual game engine itself, by yo...
by BasicCoder2
Oct 14, 2018 6:10
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 19905

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Jan 2019), 250 $ 1st prize

Lachie Dazdarian wrote, "You know, like a FreeBASIC horse fighting C++ robots." That is kind of an obvious thought but how do we draw the animated horse? Perhaps all the agents can be robots (easier to draw) with the language's logo so we know which is which? Maybe start the game with the...
by BasicCoder2
Oct 13, 2018 21:48
Forum: General
Topic: How to make glitter paint
Replies: 10
Views: 456

Re: How to make glitter paint

Sorting a sample I see the algorithm used produces the full brightness range of a base color. So the algorithm needed will return a random brightness value of a base color. screenres 640,480,32 dim as ulong colors(0 to 38) colors(0)=RGB(171,51,99) colors(1)=RGB(107,0,35) colors(2)=RGB(255,150,199) c...

Go to advanced search