Search found 1562 matches

by badidea
Nov 13, 2019 21:59
Forum: Game Dev
Topic: Using Inkscape for game graphics
Replies: 7
Views: 163

Re: Using Inkscape for game graphics

paul doe wrote:I'm currently working on one (uses Cairo; was developing it for the last FreeBasic Compo organized by Lachie), so you wishes might soon come true ;)

I know, the " ;-) " was especially for you. Just checking your progress :-)
by badidea
Nov 13, 2019 18:12
Forum: General
Topic: Squares
Replies: 7230
Views: 436965

Re: Squares

A 1000 abstract doodles before the year of the year must be possible. Can I suggest animated doodles? Change 1 parameter with time? Like this: const SCRN_W = 800, SCRN_H = 600 const as single PI = atn(1) * 4 const as single PI2 = PI * 2 type sgl2d as single x, y end type type sgl3d as single x, y, z...
by badidea
Nov 13, 2019 17:25
Forum: Game Dev
Topic: Using Inkscape for game graphics
Replies: 7
Views: 163

Re: Using Inkscape for game graphics

c-sanchez wrote:I wonder if possible to have BGRABitmap in FreeBASIC :P

I am not familiar with BGRABitmap, but it looks like Cairo (graphics)?

dodicat wrote:Some bitmap bits and pieces.
This works on win 10
...

I see an image with pretty rough circles. What does the 'windows' part do? Except copying it to clipboard?
by badidea
Nov 12, 2019 23:58
Forum: Game Dev
Topic: Using Inkscape for game graphics
Replies: 7
Views: 163

Using Inkscape for game graphics

Ok, this is probably the worst animation of a walking duck. But the images were made with Inkscape which I had used before until a few hours ago. I first followed this tutorial which resulted in this turkey: turtle.svg (file name is a typo). Then I made my own duck drawing(s): duck.svg (it is beauti...
by badidea
Nov 11, 2019 23:13
Forum: Beginners
Topic: How do I use Bload?
Replies: 3
Views: 149

Re: How do I use Bload?

Hi, with this image: https://nr100.home.xs4all.nl/badidea/unimog_first_aid.bmp (48x48 pixels), try: #include "fbgfx.bi" #if __FB_LANG__ = "fb" Using FB #endif dim shared as integer x, y, buttons, res , x1, x2, sense, cursor '--- ScreenRes 640, 480, 32 'changed to 32-bit '--- x = ...
by badidea
Nov 10, 2019 0:59
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 141
Views: 6484

Re: TP-Link HS110

I have updated my power logger: - Works with Windows again - Rolling plots - Auto scaling y-axis Source: https://nr100.home.xs4all.nl/badidea/HS110_power_logger.zip Device IP can be set in variable 'deviceNameOrIp' (line 274 of 'HS110_power_logger_04.bas') Display time can be set in constant 'GRAPH_...
by badidea
Nov 08, 2019 17:51
Forum: Beginners
Topic: Why UBound doesnt take into account 0 reporting array size?
Replies: 6
Views: 188

Re: Why UBound doesnt take into account 0 reporting array size?

Ubound and Lbound are very useful in for...next loops.

Code: Select all

dim as integer value(0 to 3)
for i as integer = lbound(value) to ubound(value)
   print i, value(i)
next
In most cases, where Lbound = 0, we can loop "0 to ubound(value)"
by badidea
Nov 07, 2019 23:37
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 141
Views: 6484

Re: TP-Link HS110

Making some progress. Auto-scale based on data in plots (e.g. last 5 minutes) and line-plots. Now the y-axis numbers are a bit weird. Each plot probably needs a different scaling strategy. * power factor: Always 0 ... 1 * voltage: Rounding up and down (e.g. for plot below: 241 ... 243 V) * power &am...
by badidea
Nov 07, 2019 20:36
Forum: Tips and Tricks
Topic: A circular buffer implementation
Replies: 3
Views: 236

Re: A circular buffer implementation

I really like this idea. I can imagine using this for my own project. I need to replace off screen data with incoming data to replace it. I have a similar method in place already for map data but when it gets more complex I'll want something more robust. This makes me think of how the early side sc...
by badidea
Nov 06, 2019 20:06
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 141
Views: 6484

Re: TP-Link HS110

badidea wrote:More stuff to do:
- Line plots instead of dots
- Rolling plots
- Auto-scale plots
- Test with Windows

Also, the plots are not designed for > 1 hour operation. Working on that. The logging should continue to work.
For now, you can change scaling in 'set_graphs.bas'
by badidea
Nov 06, 2019 16:57
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 141
Views: 6484

Re: TP-Link HS110

@badidea, dowloaded the zip and it compiles ok, but when I run it: "Waiting for connection" and then quits with Error 141. I could not find anywhere in the code where your IP detail is stored. Without thoroughly reading all the code can you explain this please, so I can test it for a long...
by badidea
Nov 05, 2019 22:39
Forum: Tips and Tricks
Topic: A circular buffer implementation
Replies: 3
Views: 236

Re: A circular buffer implementation

Popping added: '-------------------------- Example data type ---------------------------------- type data_type dim as double absTime dim as integer sample declare constructor() declare constructor(absTime as double, sample as integer) declare operator cast() as string end type constructor data_type(...
by badidea
Nov 05, 2019 21:57
Forum: Tips and Tricks
Topic: A circular buffer implementation
Replies: 3
Views: 236

A circular buffer implementation

A circular (or ring) buffer (https://en.wikipedia.org/wiki/Circular_buffer) that allows overwrite (when full, new data overwrites the 'oldest' data). Data is never removed / popped from buffer, only added and contents read. But 'popping' can probably be added; I don't need that. I plan to this for a...
by badidea
Nov 04, 2019 20:22
Forum: Game Dev
Topic: Yet Another Platformer
Replies: 12
Views: 392

Re: Yet Another Platformer

This could be an interesting read for you (if you don't already know it): http://higherorderfun.com/blog/2012/05/ ... atformers/
by badidea
Nov 04, 2019 19:22
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 141
Views: 6484

Re: TP-Link HS110

EDIT: I know it is already 11-05-2019 in Australia , but at the time of writing the US & Europe are still on the 4th ??? Yes, here, now: Mon 4 Nov 20:21:46 CET 2019 The earth still needs to rotate a few hours before we can call it the 5th here. We should reject all scientific evidence and go ba...

Go to advanced search